diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7cef353ad090..39a8ecca506c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -7,4 +7,3 @@ # java-vertexai has maintainers /java-vertexai/ @googleapis/vertex-java-sdk @googleapis/cloud-sdk-java-team -/java-logging/ @googleapis/cloud-sdk-java-team @googleapis/cloud-java-team-teamsync 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/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 66156690454b..cf49aadcb6ea 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.78.0" + ".": "1.79.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eb36d7ecba4..8fbe5e46f857 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,38 @@ # 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) diff --git a/changelog.json b/changelog.json index 635a76e8c928..e6d074f91041 100644 --- a/changelog.json +++ b/changelog.json @@ -1,6 +1,920 @@ { "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": [ { @@ -1100712,5 +1101626,5 @@ "createTime": "2023-02-03T16:27:23.198Z" } ], - "updateTime": "2026-02-10T00:48:47.035Z" + "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 c185d195b83e..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 + 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 + 1.79.0 ../google-cloud-pom-parent/pom.xml @@ -24,1424 +24,1438 @@ com.google.analytics google-analytics-admin-bom - 0.94.0 + 0.95.0 pom import com.google.analytics google-analytics-data-bom - 0.95.0 + 0.96.0 pom import com.google.area120 google-area120-tables-bom - 0.88.0 + 0.89.0 pom import com.google.cloud google-cloud-accessapproval-bom - 2.85.0 + 2.86.0 pom import com.google.cloud google-cloud-advisorynotifications-bom - 0.73.0 + 0.74.0 pom import com.google.cloud google-cloud-aiplatform-bom - 3.85.0 + 3.86.0 pom import com.google.cloud google-cloud-alloydb-bom - 0.73.0 + 0.74.0 pom import com.google.cloud google-cloud-alloydb-connectors-bom - 0.62.0 + 0.63.0 pom import com.google.cloud google-cloud-analyticshub-bom - 0.81.0 + 0.82.0 pom import com.google.cloud google-cloud-api-gateway-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-apigee-connect-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-apigee-registry-bom - 0.84.0 + 0.85.0 pom import com.google.cloud google-cloud-apihub-bom - 0.37.0 + 0.38.0 pom import com.google.cloud google-cloud-apikeys-bom - 0.82.0 + 0.83.0 pom import com.google.cloud google-cloud-appengine-admin-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-apphub-bom - 0.48.0 + 0.49.0 pom import com.google.cloud google-cloud-artifact-registry-bom - 1.83.0 + 1.84.0 pom import com.google.cloud google-cloud-asset-bom - 3.88.0 + 3.89.0 pom import com.google.cloud google-cloud-assured-workloads-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-auditmanager-bom - 0.2.0 + 0.3.0 pom import com.google.cloud google-cloud-automl-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-backupdr-bom - 0.43.0 + 0.44.0 pom import com.google.cloud google-cloud-bare-metal-solution-bom - 0.84.0 + 0.85.0 pom import com.google.cloud google-cloud-batch-bom - 0.84.0 + 0.85.0 pom import com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.82.0 + 0.83.0 pom import com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.82.0 + 0.83.0 pom import com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.82.0 + 0.83.0 pom import com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.82.0 + 0.83.0 pom import com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.82.0 + 0.83.0 pom import com.google.cloud google-cloud-biglake-bom - 0.72.0 + 0.73.0 pom import com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.79.0 + 2.80.0 pom import com.google.cloud google-cloud-bigqueryconnection-bom - 2.86.0 + 2.87.0 pom import com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.81.0 + 0.82.0 pom import com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-bigquerymigration-bom - 0.87.0 + 0.88.0 pom import com.google.cloud google-cloud-bigqueryreservation-bom - 2.85.0 + 2.86.0 pom import com.google.cloud google-cloud-billing-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-billingbudgets-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-binary-authorization-bom - 1.83.0 + 1.84.0 pom import com.google.cloud google-cloud-build-bom - 3.86.0 + 3.87.0 pom import com.google.cloud google-cloud-capacityplanner-bom - 0.7.0 + 0.8.0 pom import com.google.cloud google-cloud-certificate-manager-bom - 0.87.0 + 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 + 3.89.0 pom import com.google.cloud google-cloud-chat-bom - 0.48.0 + 0.49.0 pom import com.google.cloud google-cloud-chronicle-bom - 0.22.0 + 0.23.0 pom import com.google.cloud google-cloud-cloudapiregistry-bom - 0.3.0 + 0.4.0 pom import com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.82.0 + 0.83.0 pom import com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.48.0 + 0.49.0 pom import com.google.cloud google-cloud-cloudquotas-bom - 0.52.0 + 0.53.0 pom import com.google.cloud google-cloud-cloudsecuritycompliance-bom - 0.11.0 + 0.12.0 pom import com.google.cloud google-cloud-cloudsupport-bom - 0.68.0 + 0.69.0 pom import com.google.cloud google-cloud-compute-bom - 1.94.0 + 1.95.0 pom import com.google.cloud google-cloud-confidentialcomputing-bom - 0.70.0 + 0.71.0 pom import com.google.cloud google-cloud-configdelivery-bom - 0.18.0 + 0.19.0 pom import com.google.cloud google-cloud-connectgateway-bom - 0.36.0 + 0.37.0 pom import com.google.cloud google-cloud-contact-center-insights-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-container-bom - 2.87.0 + 2.88.0 pom import com.google.cloud google-cloud-containeranalysis-bom - 2.85.0 + 2.86.0 pom import com.google.cloud google-cloud-contentwarehouse-bom - 0.80.0 + 0.81.0 pom import com.google.cloud google-cloud-data-fusion-bom - 1.84.0 + 1.85.0 pom import com.google.cloud google-cloud-databasecenter-bom - 0.5.0 + 0.6.0 pom import com.google.cloud google-cloud-datacatalog-bom - 1.90.0 + 1.91.0 pom import com.google.cloud google-cloud-dataflow-bom - 0.88.0 + 0.89.0 pom import com.google.cloud google-cloud-dataform-bom - 0.83.0 + 0.84.0 pom import com.google.cloud google-cloud-datalabeling-bom - 0.204.0 + 0.205.0 pom import com.google.cloud google-cloud-datalineage-bom - 0.76.0 + 0.77.0 pom import com.google.cloud google-cloud-dataplex-bom - 1.82.0 + 1.83.0 pom import com.google.cloud google-cloud-dataproc-bom - 4.81.0 + 4.82.0 pom import com.google.cloud google-cloud-dataproc-metastore-bom - 2.85.0 + 2.86.0 pom import com.google.cloud google-cloud-datastream-bom - 1.83.0 + 1.84.0 pom import com.google.cloud google-cloud-deploy-bom - 1.82.0 + 1.83.0 pom import com.google.cloud google-cloud-developerconnect-bom - 0.41.0 + 0.42.0 pom import com.google.cloud google-cloud-devicestreaming-bom - 0.24.0 + 0.25.0 pom import com.google.cloud google-cloud-dialogflow-bom - 4.90.0 + 4.91.0 pom import com.google.cloud google-cloud-dialogflow-cx-bom - 0.95.0 + 0.96.0 pom import com.google.cloud google-cloud-discoveryengine-bom - 0.80.0 + 0.81.0 pom import com.google.cloud google-cloud-distributedcloudedge-bom - 0.81.0 + 0.82.0 pom import com.google.cloud google-cloud-dlp-bom - 3.88.0 + 3.89.0 pom import com.google.cloud google-cloud-dms-bom - 2.83.0 + 2.84.0 pom import com.google.cloud google-cloud-dns - 2.82.0 + 2.83.0 com.google.cloud google-cloud-document-ai-bom - 2.88.0 + 2.89.0 pom import com.google.cloud google-cloud-domains-bom - 1.81.0 + 1.82.0 pom import com.google.cloud google-cloud-edgenetwork-bom - 0.52.0 + 0.53.0 pom import com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.80.0 + 0.81.0 pom import com.google.cloud google-cloud-errorreporting-bom - 0.205.0-beta + 0.206.0-beta pom import com.google.cloud google-cloud-essential-contacts-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-eventarc-bom - 1.84.0 + 1.85.0 pom import com.google.cloud google-cloud-eventarc-publishing-bom - 0.84.0 + 0.85.0 pom import com.google.cloud google-cloud-filestore-bom - 1.85.0 + 1.86.0 pom import com.google.cloud google-cloud-financialservices-bom - 0.25.0 + 0.26.0 pom import com.google.cloud google-cloud-functions-bom - 2.86.0 + 2.87.0 pom import com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.39.0 + 0.40.0 pom import com.google.cloud google-cloud-geminidataanalytics-bom - 0.12.0 + 0.13.0 pom import com.google.cloud google-cloud-gke-backup-bom - 0.83.0 + 0.84.0 pom import com.google.cloud google-cloud-gke-connect-gateway-bom - 0.85.0 + 0.86.0 pom import com.google.cloud google-cloud-gke-multi-cloud-bom - 0.83.0 + 0.84.0 pom import com.google.cloud google-cloud-gkehub-bom - 1.84.0 + 1.85.0 pom import com.google.cloud google-cloud-gkerecommender-bom - 0.4.0 + 0.5.0 pom import com.google.cloud google-cloud-gsuite-addons-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-hypercomputecluster-bom - 0.4.0 + 0.5.0 pom import com.google.cloud google-cloud-iamcredentials-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-iap-bom - 0.40.0 + 0.41.0 pom import com.google.cloud google-cloud-ids-bom - 1.83.0 + 1.84.0 pom import com.google.cloud google-cloud-infra-manager-bom - 0.61.0 + 0.62.0 pom import com.google.cloud google-cloud-iot-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-kms-bom - 2.87.0 + 2.88.0 pom import com.google.cloud google-cloud-kmsinventory-bom - 0.73.0 + 0.74.0 pom import com.google.cloud google-cloud-language-bom - 2.85.0 + 2.86.0 pom import com.google.cloud google-cloud-licensemanager-bom - 0.17.0 + 0.18.0 pom import com.google.cloud google-cloud-life-sciences-bom - 0.86.0 + 0.87.0 pom import com.google.cloud google-cloud-live-stream-bom - 0.86.0 + 0.87.0 pom import com.google.cloud google-cloud-locationfinder-bom - 0.9.0 + 0.10.0 pom import com.google.cloud google-cloud-logging-bom - 3.25.0 + 3.26.0 pom import com.google.cloud google-cloud-lustre-bom - 0.24.0 + 0.25.0 pom import com.google.cloud google-cloud-maintenance-bom - 0.18.0 + 0.19.0 pom import com.google.cloud google-cloud-managed-identities-bom - 1.82.0 + 1.83.0 pom import com.google.cloud google-cloud-managedkafka-bom - 0.40.0 + 0.41.0 pom import com.google.cloud google-cloud-mediatranslation-bom - 0.90.0 + 0.91.0 pom import com.google.cloud google-cloud-meet-bom - 0.51.0 + 0.52.0 pom import com.google.cloud google-cloud-memcache-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-migrationcenter-bom - 0.66.0 + 0.67.0 pom import com.google.cloud google-cloud-modelarmor-bom - 0.25.0 + 0.26.0 pom import com.google.cloud google-cloud-monitoring-bom - 3.85.0 + 3.86.0 pom import com.google.cloud google-cloud-monitoring-dashboard-bom - 2.86.0 + 2.87.0 pom import com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.78.0 + 0.79.0 pom import com.google.cloud google-cloud-netapp-bom - 0.63.0 + 0.64.0 pom import com.google.cloud google-cloud-network-management-bom - 1.85.0 + 1.86.0 pom import com.google.cloud google-cloud-network-security-bom - 0.87.0 + 0.88.0 pom import com.google.cloud google-cloud-networkconnectivity-bom - 1.83.0 + 1.84.0 pom import com.google.cloud google-cloud-networkservices-bom - 0.40.0 + 0.41.0 pom import com.google.cloud google-cloud-notebooks-bom - 1.82.0 + 1.83.0 pom import com.google.cloud google-cloud-notification - 0.202.0-beta + 0.203.0-beta com.google.cloud google-cloud-optimization-bom - 1.82.0 + 1.83.0 pom import com.google.cloud google-cloud-oracledatabase-bom - 0.33.0 + 0.34.0 pom import com.google.cloud google-cloud-orchestration-airflow-bom - 1.84.0 + 1.85.0 pom import com.google.cloud google-cloud-orgpolicy-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-os-config-bom - 2.86.0 + 2.87.0 pom import com.google.cloud google-cloud-os-login-bom - 2.83.0 + 2.84.0 pom import com.google.cloud google-cloud-parallelstore-bom - 0.47.0 + 0.48.0 pom import com.google.cloud google-cloud-parametermanager-bom - 0.28.0 + 0.29.0 pom import com.google.cloud google-cloud-phishingprotection-bom - 0.115.0 + 0.116.0 pom import com.google.cloud google-cloud-policy-troubleshooter-bom - 1.83.0 + 1.84.0 pom import com.google.cloud google-cloud-policysimulator-bom - 0.63.0 + 0.64.0 pom import com.google.cloud google-cloud-private-catalog-bom - 0.86.0 + 0.87.0 pom import com.google.cloud google-cloud-privilegedaccessmanager-bom - 0.38.0 + 0.39.0 pom import com.google.cloud google-cloud-profiler-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-publicca-bom - 0.81.0 + 0.82.0 pom import com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.67.0 + 0.68.0 pom import com.google.cloud google-cloud-recaptchaenterprise-bom - 3.81.0 + 3.82.0 pom import com.google.cloud google-cloud-recommendations-ai-bom - 0.91.0 + 0.92.0 pom import com.google.cloud google-cloud-recommender-bom - 2.86.0 + 2.87.0 pom import com.google.cloud google-cloud-redis-bom - 2.87.0 + 2.88.0 pom import com.google.cloud google-cloud-redis-cluster-bom - 0.56.0 + 0.57.0 pom import com.google.cloud google-cloud-resourcemanager-bom - 1.86.0 + 1.87.0 pom import com.google.cloud google-cloud-retail-bom - 2.86.0 + 2.87.0 pom import com.google.cloud google-cloud-run-bom - 0.84.0 + 0.85.0 pom import com.google.cloud google-cloud-saasservicemgmt-bom - 0.14.0 + 0.15.0 pom import com.google.cloud google-cloud-scheduler-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-secretmanager-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-securesourcemanager-bom - 0.54.0 + 0.55.0 pom import com.google.cloud google-cloud-security-private-ca-bom - 2.86.0 + 2.87.0 pom import com.google.cloud google-cloud-securitycenter-bom - 2.92.0 + 2.93.0 pom import com.google.cloud google-cloud-securitycenter-settings-bom - 0.87.0 + 0.88.0 pom import com.google.cloud google-cloud-securitycentermanagement-bom - 0.52.0 + 0.53.0 pom import com.google.cloud google-cloud-securityposture-bom - 0.49.0 + 0.50.0 pom import com.google.cloud google-cloud-service-control-bom - 1.84.0 + 1.85.0 pom import com.google.cloud google-cloud-service-management-bom - 3.82.0 + 3.83.0 pom import com.google.cloud google-cloud-service-usage-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-servicedirectory-bom - 2.85.0 + 2.86.0 pom import com.google.cloud google-cloud-servicehealth-bom - 0.51.0 + 0.52.0 pom import com.google.cloud google-cloud-shell-bom - 2.83.0 + 2.84.0 pom import com.google.cloud google-cloud-spanneradapter-bom - 0.20.0 + 0.21.0 pom import com.google.cloud google-cloud-speech-bom - 4.79.0 + 4.80.0 pom import com.google.cloud google-cloud-storage-transfer-bom - 1.84.0 + 1.85.0 pom import com.google.cloud google-cloud-storagebatchoperations-bom - 0.24.0 + 0.25.0 pom import com.google.cloud google-cloud-storageinsights-bom - 0.69.0 + 0.70.0 pom import com.google.cloud google-cloud-talent-bom - 2.85.0 + 2.86.0 pom import com.google.cloud google-cloud-tasks-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-telcoautomation-bom - 0.54.0 + 0.55.0 pom import com.google.cloud google-cloud-texttospeech-bom - 2.85.0 + 2.86.0 pom import com.google.cloud google-cloud-tpu-bom - 2.85.0 + 2.86.0 pom import com.google.cloud google-cloud-trace-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-translate-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-valkey-bom - 0.30.0 + 0.31.0 pom import com.google.cloud google-cloud-vectorsearch-bom - 0.5.0 + 0.6.0 pom import com.google.cloud google-cloud-vertexai-bom - 1.44.0 + 1.45.0 pom import com.google.cloud google-cloud-video-intelligence-bom - 2.83.0 + 2.84.0 pom import com.google.cloud google-cloud-video-stitcher-bom - 0.84.0 + 0.85.0 pom import com.google.cloud google-cloud-video-transcoder-bom - 1.83.0 + 1.84.0 pom import com.google.cloud google-cloud-vision-bom - 3.82.0 + 3.83.0 pom import com.google.cloud google-cloud-visionai-bom - 0.41.0 + 0.42.0 pom import com.google.cloud google-cloud-vmmigration-bom - 1.84.0 + 1.85.0 pom import com.google.cloud google-cloud-vmwareengine-bom - 0.78.0 + 0.79.0 pom import com.google.cloud google-cloud-vpcaccess-bom - 2.85.0 + 2.86.0 pom import com.google.cloud google-cloud-webrisk-bom - 2.83.0 + 2.84.0 pom import com.google.cloud google-cloud-websecurityscanner-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-workflow-executions-bom - 2.84.0 + 2.85.0 pom import com.google.cloud google-cloud-workflows-bom - 2.84.0 + 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 + 0.49.0 pom import com.google.cloud google-cloud-workstations-bom - 0.72.0 + 0.73.0 pom import com.google.cloud google-iam-admin-bom - 3.79.0 + 3.80.0 pom import com.google.cloud google-iam-policy-bom - 1.82.0 + 1.83.0 pom import com.google.cloud google-identity-accesscontextmanager-bom - 1.85.0 + 1.86.0 pom import io.grafeas grafeas - 2.85.0 + 2.86.0 diff --git a/generation_config.yaml b/generation_config.yaml index 510e0438286c..d74143fb612b 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.66.1 -googleapis_commitish: 39bd091b055e331a4917143355ab7afa83b7130c +googleapis_commitish: 055f92c9384689eb0bb32d035d3bc6d98c8347c0 libraries_bom_version: 26.75.0 libraries: - api_shortname: accessapproval @@ -241,7 +241,8 @@ libraries: name_pretty: Audit Manager API product_documentation: https://cloud.google.com/audit-manager/docs api_description: Lists information about the supported locations for this service. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-auditmanager api_id: auditmanager.googleapis.com @@ -271,7 +272,8 @@ libraries: product_documentation: https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-dr api_description: 'Backup and DR Service is a powerful, centralized, cloud-first backup and disaster recovery solution for cloud-based and hybrid workloads. ' - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview release_level: stable distribution_name: com.google.cloud:google-cloud-backupdr api_id: backupdr.googleapis.com @@ -363,7 +365,8 @@ libraries: product_documentation: https://cloud.google.com/bigquery/docs/reference/bigqueryconnection/rest api_description: allows users to manage BigQuery connections to external data sources. release_level: stable - client_documentation: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 + client_documentation: + https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 GAPICs: - proto_path: google/cloud/bigquery/connection/v1 - proto_path: google/cloud/bigquery/connection/v1beta1 @@ -440,7 +443,8 @@ libraries: name_pretty: Capacity Planner API product_documentation: https://cloud.google.com/capacity-planner/docs api_description: Provides programmatic access to Capacity Planner features. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-capacityplanner api_id: capacityplanner.googleapis.com @@ -459,6 +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 @@ -487,7 +508,8 @@ libraries: api_description: 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 - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-chronicle api_id: chronicle.googleapis.com @@ -503,7 +525,8 @@ libraries: api_description: 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. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-cloudapiregistry api_id: cloudapiregistry.googleapis.com @@ -549,8 +572,8 @@ libraries: - api_shortname: cloudquotas name_pretty: Cloud Quotas API product_documentation: https://cloud.google.com/cloudquotas/docs/ - api_description: "Cloud Quotas API provides GCP service consumers with management\ - \ and\n observability for resource usage, quotas, and restrictions of the services\n\ + api_description: "Cloud Quotas API provides GCP service consumers with management + and\n observability for resource usage, quotas, and restrictions of the services\n\ \ they consume." release_level: stable GAPICs: @@ -558,11 +581,13 @@ libraries: - proto_path: google/api/cloudquotas/v1beta - api_shortname: cloudsecuritycompliance name_pretty: Cloud Security Compliance API - product_documentation: https://cloud.google.com/security-command-center/docs/compliance-manager-overview + product_documentation: + https://cloud.google.com/security-command-center/docs/compliance-manager-overview api_description: Compliance Manager uses software-defined controls that let you assess support for multiple compliance programs and security requirements within a Google Cloud organization - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-cloudsecuritycompliance api_id: cloudsecuritycompliance.googleapis.com @@ -583,11 +608,11 @@ libraries: - api_shortname: compute name_pretty: Compute Engine product_documentation: https://cloud.google.com/compute/ - api_description: 'delivers virtual machines running in Google''s innovative data - centers and worldwide fiber network. Compute Engine''s tooling and workflow support + api_description: "delivers virtual machines running in Google's innovative data + centers and worldwide fiber network. Compute Engine's tooling and workflow support enable scaling from single instances to global, load-balanced cloud computing. - Compute Engine''s VMs boot quickly, come with persistent disk storage, deliver - consistent performance and are available in many configurations. ' + Compute Engine's VMs boot quickly, come with persistent disk storage, deliver + consistent performance and are available in many configurations. " release_level: stable excluded_poms: grpc-google-cloud-compute-v1 excluded_dependencies: grpc-google-cloud-compute-v1 @@ -603,10 +628,12 @@ libraries: - proto_path: google/cloud/confidentialcomputing/v1alpha1 - api_shortname: configdelivery name_pretty: Config Delivery API - product_documentation: https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/concepts/fleet-packages + product_documentation: + https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/concepts/fleet-packages api_description: ConfigDelivery service manages the deployment of kubernetes configuration to a fleet of kubernetes clusters. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-configdelivery api_id: configdelivery.googleapis.com @@ -614,16 +641,19 @@ libraries: group_id: com.google.cloud cloud_api: true requires_billing: true - rest_documentation: https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/reference/rest + rest_documentation: + https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/reference/rest GAPICs: - proto_path: google/cloud/configdelivery/v1beta - proto_path: google/cloud/configdelivery/v1 - api_shortname: connectgateway name_pretty: Connect Gateway API - product_documentation: https://cloud.google.com/kubernetes-engine/enterprise/multicluster-management/gateway + product_documentation: + https://cloud.google.com/kubernetes-engine/enterprise/multicluster-management/gateway api_description: The Connect Gateway service allows connectivity from external parties to connected Kubernetes clusters. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-connectgateway api_id: connectgateway.googleapis.com @@ -695,14 +725,15 @@ libraries: - api_shortname: databasecenter name_pretty: Database Center API product_documentation: https://cloud.google.com/database-center/docs/overview - api_description: "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\u2019s 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." - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview + api_description: 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. + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-databasecenter api_id: databasecenter.googleapis.com @@ -837,7 +868,8 @@ libraries: name_pretty: Developer Connect API product_documentation: https://cloud.google.com/developer-connect/docs/overview api_description: Connect third-party source code management to Google - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-developerconnect api_id: developerconnect.googleapis.com @@ -851,7 +883,8 @@ libraries: name_pretty: Device Streaming API product_documentation: https://cloud.google.com/device-streaming/docs api_description: The Cloud API for device streaming usage. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-devicestreaming api_id: devicestreaming.googleapis.com @@ -1027,11 +1060,13 @@ libraries: - proto_path: google/cloud/filestore/v1beta1 - api_shortname: financialservices name_pretty: Financial Services API - product_documentation: https://cloud.google.com/financial-services/anti-money-laundering/docs/concepts/overview + product_documentation: + https://cloud.google.com/financial-services/anti-money-laundering/docs/concepts/overview api_description: 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. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-financialservices api_id: financialservices.googleapis.com @@ -1062,7 +1097,8 @@ libraries: api_description: 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. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-gdchardwaremanagement api_id: gdchardwaremanagement.googleapis.com @@ -1072,14 +1108,16 @@ libraries: GAPICs: - proto_path: google/cloud/gdchardwaremanagement/v1alpha requires_billing: true - rpc_documentation: https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/hardware/rpc + rpc_documentation: + https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/hardware/rpc - api_shortname: geminidataanalytics name_pretty: Data Analytics API with Gemini product_documentation: https://cloud.google.com/gemini/docs/conversational-analytics-api/overview api_description: 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. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-geminidataanalytics api_id: geminidataanalytics.googleapis.com @@ -1135,11 +1173,13 @@ libraries: - proto_path: google/cloud/gkehub/servicemesh/v1beta - api_shortname: gkerecommender name_pretty: GKE Recommender API - product_documentation: https://cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference-quickstart + product_documentation: + https://cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference-quickstart api_description: lets you analyze the performance and cost-efficiency of your inference workloads, and make data-driven decisions about resource allocation and model deployment strategies. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-gkerecommender api_id: gkerecommender.googleapis.com @@ -1177,9 +1217,11 @@ libraries: - proto_path: google/apps/script/type/slides - api_shortname: hypercomputecluster name_pretty: Cluster Director API - product_documentation: https://cloud.google.com/blog/products/compute/managed-slurm-and-other-cluster-director-enhancements + product_documentation: + https://cloud.google.com/blog/products/compute/managed-slurm-and-other-cluster-director-enhancements api_description: simplifies cluster management across compute, network, and storage - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-hypercomputecluster api_id: hypercomputecluster.googleapis.com @@ -1270,7 +1312,8 @@ libraries: name_pretty: Merchant Issue Resolution API product_documentation: https://developers.google.com/merchant/api api_description: Programatically manage your Merchant Issues - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview release_level: stable distribution_name: com.google.shopping:google-shopping-merchant-issue-resolution api_id: merchantapi.googleapis.com @@ -1286,7 +1329,8 @@ libraries: name_pretty: Merchant Order Tracking API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your Merchant Center Accounts - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview release_level: stable distribution_name: com.google.shopping:google-shopping-merchant-order-tracking api_id: merchantapi.googleapis.com @@ -1341,7 +1385,8 @@ libraries: product_documentation: https://cloud.google.com/compute/docs/instances/windows/ms-licensing api_description: License Manager is a tool to manage and track third-party licenses on Google Cloud. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-licensemanager api_id: licensemanager.googleapis.com @@ -1367,7 +1412,8 @@ libraries: api_description: 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. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-locationfinder api_id: locationfinder.googleapis.com @@ -1418,7 +1464,8 @@ libraries: product_documentation: https://cloud.google.com/unified-maintenance/docs/overview api_description: The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-maintenance/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-maintenance/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-maintenance api_id: maintenance.googleapis.com @@ -1447,7 +1494,8 @@ libraries: name_pretty: Managed Service for Apache Kafka product_documentation: https://cloud.google.com/managed-kafka api_description: Manage Apache Kafka clusters and resources. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-managedkafka/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-managedkafka/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-managedkafka api_id: managedkafka.googleapis.com @@ -1473,7 +1521,8 @@ libraries: name_pretty: Places Insights API product_documentation: https://developers.google.com/maps/documentation/places-insights api_description: Places Insights API. - client_documentation: https://cloud.google.com/java/docs/reference/google-maps-area-insights/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-maps-area-insights/latest/overview release_level: preview distribution_name: com.google.maps:google-maps-area-insights api_id: maps-area-insights.googleapis.com @@ -1485,12 +1534,14 @@ libraries: requires_billing: true - api_shortname: maps-fleetengine name_pretty: Local Rides and Deliveries API - product_documentation: https://developers.google.com/maps/documentation/transportation-logistics/mobility + product_documentation: + https://developers.google.com/maps/documentation/transportation-logistics/mobility api_description: Enables Fleet Engine for access to the On Demand Rides and Deliveries and Last Mile Fleet Solution APIs. Customer's use of Google Maps Content in the Cloud Logging Services is subject to the Google Maps Platform Terms of Service located at https://cloud.google.com/maps-platform/terms. - client_documentation: https://cloud.google.com/java/docs/reference/google-maps-fleetengine/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-maps-fleetengine/latest/overview release_level: preview distribution_name: com.google.maps:google-maps-fleetengine api_id: maps-fleetengine.googleapis.com @@ -1502,12 +1553,14 @@ libraries: requires_billing: true - api_shortname: maps-fleetengine-delivery name_pretty: Last Mile Fleet Solution Delivery API - product_documentation: https://developers.google.com/maps/documentation/transportation-logistics/mobility + product_documentation: + https://developers.google.com/maps/documentation/transportation-logistics/mobility api_description: Enables Fleet Engine for access to the On Demand Rides and Deliveries and Last Mile Fleet Solution APIs. Customer's use of Google Maps Content in the Cloud Logging Services is subject to the Google Maps Platform Terms of Service located at https://cloud.google.com/maps-platform/terms. - client_documentation: https://cloud.google.com/java/docs/reference/google-maps-fleetengine-delivery/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-maps-fleetengine-delivery/latest/overview release_level: preview distribution_name: com.google.maps:google-maps-fleetengine-delivery api_id: maps-fleetengine-delivery.googleapis.com @@ -1520,9 +1573,9 @@ libraries: - api_shortname: maps-mapsplatformdatasets name_pretty: Maps Platform Datasets API product_documentation: https://developers.google.com/maps/documentation - api_description: "The Maps Platform Datasets API enables developers to ingest geospatially-tied\ - \ datasets\n that they can use to enrich their experience of Maps Platform\ - \ solutions (e.g. styling, routing)." + api_description: "The Maps Platform Datasets API enables developers to ingest geospatially-tied + datasets\n that they can use to enrich their experience of Maps Platform solutions + (e.g. styling, routing)." api_id: mapsplatformdatasets.googleapis.com distribution_name: com.google.maps:google-maps-mapsplatformdatasets cloud_api: false @@ -1544,7 +1597,8 @@ libraries: api_description: The Route Optimization API assigns tasks and routes to a vehicle fleet, optimizing against the objectives and constraints that you supply for your transportation goals. - client_documentation: https://cloud.google.com/java/docs/reference/google-maps-routeoptimization/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-maps-routeoptimization/latest/overview release_level: preview distribution_name: com.google.maps:google-maps-routeoptimization api_id: routeoptimization.googleapis.com @@ -1555,8 +1609,10 @@ libraries: - proto_path: google/maps/routeoptimization/v1 library_name: maps-routeoptimization requires_billing: true - rest_documentation: https://developers.google.com/maps/documentation/route-optimization/reference/rest/ - rpc_documentation: https://developers.google.com/maps/documentation/route-optimization/reference/rpc + rest_documentation: + https://developers.google.com/maps/documentation/route-optimization/reference/rest/ + rpc_documentation: + https://developers.google.com/maps/documentation/route-optimization/reference/rpc - api_shortname: maps-routing name_pretty: Routes API product_documentation: https://developers.google.com/maps/documentation/routes @@ -1644,7 +1700,8 @@ libraries: api_description: Model Armor helps you protect against risks like prompt injection, harmful content, and data leakage in generative AI applications by letting you define policies that filter user prompts and model responses. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-modelarmor api_id: modelarmor.googleapis.com @@ -1682,7 +1739,8 @@ libraries: - proto_path: google/monitoring/dashboard/v1 - api_shortname: monitoring-metricsscope name_pretty: Monitoring Metrics Scopes - product_documentation: https://cloud.google.com/monitoring/api/ref_v3/rest/v1/locations.global.metricsScopes + product_documentation: + https://cloud.google.com/monitoring/api/ref_v3/rest/v1/locations.global.metricsScopes api_description: The metrics scope defines the set of Google Cloud projects whose metrics the current Google Cloud project can access. api_id: monitoring.googleapis.com @@ -1699,7 +1757,8 @@ libraries: - proto_path: google/cloud/netapp/v1 - api_shortname: networkmanagement name_pretty: Network Management API - product_documentation: https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/reference/networkmanagement/rest/ + product_documentation: + https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/reference/networkmanagement/rest/ api_description: provides a collection of network performance monitoring and diagnostic capabilities. library_name: network-management @@ -1733,7 +1792,8 @@ libraries: on top of planet-scale infrastructure that leverages automation, advanced AI, and programmability, enabling enterprises to connect, scale, secure, modernize and optimize their infrastructure. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-networkservices/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-networkservices/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-networkservices api_id: networkservices.googleapis.com @@ -1773,7 +1833,8 @@ libraries: product_documentation: https://cloud.google.com/oracle/database/docs api_description: The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-oracledatabase api_id: oracledatabase.googleapis.com @@ -1803,7 +1864,8 @@ libraries: product_documentation: n/a api_description: n/a release_level: stable - client_documentation: https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview GAPICs: - proto_path: google/cloud/orgpolicy/v1 - proto_path: google/cloud/orgpolicy/v2 @@ -1835,7 +1897,8 @@ libraries: product_documentation: https://cloud/parallelstore?hl=en api_description: 'Parallelstore is based on Intel DAOS and delivers up to 6.3x greater read throughput performance compared to competitive Lustre scratch offerings. ' - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-parallelstore/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-parallelstore/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-parallelstore api_id: parallelstore.googleapis.com @@ -1853,7 +1916,8 @@ libraries: to store, access and manage the lifecycle of your workload parameters. Parameter Manager aims to make management of sensitive application parameters effortless for customers without diminishing focus on security. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-parametermanager/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-parametermanager/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-parametermanager api_id: parametermanager.googleapis.com @@ -1909,7 +1973,8 @@ libraries: - proto_path: google/cloud/privatecatalog/v1beta1 - api_shortname: privilegedaccessmanager name_pretty: Privileged Access Manager API - product_documentation: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview + product_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview api_description: Privileged Access Manager (PAM) helps you on your journey towards least privilege and helps mitigate risks tied to privileged access misuse orabuse. PAM allows you to shift from always-on standing privileges towards on-demand access @@ -1922,7 +1987,8 @@ libraries: access for developers for critical deployment or maintenance, temporary access for operators for data ingestion and audits, JIT access to service accounts for automated tasks, and more. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-privilegedaccessmanager api_id: privilegedaccessmanager.googleapis.com @@ -2043,7 +2109,8 @@ libraries: name_pretty: SaaS Runtime API product_documentation: https://cloud.google.com/saas-runtime/docs/overview api_description: "Model, deploy, and operate your SaaS at scale.\t" - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-saasservicemgmt api_id: saasservicemgmt.googleapis.com @@ -2085,8 +2152,8 @@ libraries: - api_shortname: securesourcemanager name_pretty: Secure Source Manager API product_documentation: https://cloud.google.com/secure-source-manager/docs/overview - api_description: "Regionally deployed, single-tenant managed source code repository\ - \ hosted on\n Google Cloud." + api_description: "Regionally deployed, single-tenant managed source code repository + hosted on\n Google Cloud." release_level: stable GAPICs: - proto_path: google/cloud/securesourcemanager/v1 @@ -2231,7 +2298,8 @@ libraries: name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your Merchant Center accounts. - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview release_level: stable distribution_name: com.google.shopping:google-shopping-merchant-accounts api_id: merchantapi.googleapis.com @@ -2247,7 +2315,8 @@ libraries: name_pretty: Merchant Conversions API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your Merchant Center accounts. - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/overview release_level: stable distribution_name: com.google.shopping:google-shopping-merchant-conversions api_id: shopping-merchant-conversions.googleapis.com @@ -2262,7 +2331,8 @@ libraries: name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your Merchant Center accounts. - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview release_level: stable distribution_name: com.google.shopping:google-shopping-merchant-datasources api_id: merchantapi.googleapis.com @@ -2289,7 +2359,8 @@ libraries: name_pretty: Merchant LFP API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your Merchant Center accounts. - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/overview release_level: stable distribution_name: com.google.shopping:google-shopping-merchant-lfp api_id: shopping-merchant-lfp.googleapis.com @@ -2304,7 +2375,8 @@ libraries: name_pretty: Merchant Notifications API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your Merchant Center accounts. - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/overview release_level: stable distribution_name: com.google.shopping:google-shopping-merchant-notifications api_id: shopping-merchant-notifications.googleapis.com @@ -2319,7 +2391,8 @@ libraries: name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your products. - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/overview release_level: preview distribution_name: com.google.shopping:google-shopping-merchant-productstudio api_id: merchantapi.googleapis.com @@ -2334,7 +2407,8 @@ libraries: name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your Merchant Center accounts. - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview release_level: stable distribution_name: com.google.shopping:google-shopping-merchant-products api_id: merchantapi.googleapis.com @@ -2349,7 +2423,8 @@ libraries: name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your Merchant Center accounts. - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview release_level: stable distribution_name: com.google.shopping:google-shopping-merchant-promotions api_id: merchantapi.googleapis.com @@ -2365,7 +2440,8 @@ libraries: name_pretty: Merchant Quota API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your Merchant Center accounts. - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-quota/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-quota/latest/overview release_level: stable distribution_name: com.google.shopping:google-shopping-merchant-quota api_id: shopping-merchant-quota.googleapis.com @@ -2392,7 +2468,8 @@ libraries: name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api api_description: Programmatically manage your Merchant Center Accounts. - client_documentation: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview release_level: preview distribution_name: com.google.shopping:google-shopping-merchant-reviews library_type: GAPIC_AUTO @@ -2404,11 +2481,13 @@ libraries: library_name: shopping-merchant-reviews - api_shortname: spanneradapter name_pretty: Cloud Spanner Adapter API - product_documentation: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview + product_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview api_description: The Cloud Spanner Adapter service allows native drivers of supported database dialects to interact directly with Cloud Spanner by wrapping the underlying wire protocol used by the driver in a gRPC stream. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-spanneradapter api_id: spanneradapter.googleapis.com @@ -2448,7 +2527,8 @@ libraries: api_description: Storage batch operations is a Cloud Storage management feature that performs operations on billions of Cloud Storage objects in a serverless manner. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-storagebatchoperations api_id: storagebatchoperations.googleapis.com @@ -2562,7 +2642,8 @@ libraries: product_documentation: https://cloud.google.com/memorystore/docs/valkey api_description: Memorystore for Valkey is a fully managed Valkey Cluster service for Google Cloud. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview release_level: stable api_id: memorystore.googleapis.com library_type: GAPIC_AUTO @@ -2585,7 +2666,8 @@ libraries: with associated metadata, automatically generate embeddings from your data, and perform fast approximate nearest neighbor (ANN) searches to find semantically similar items at scale. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-vectorsearch/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-vectorsearch/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-vectorsearch api_id: vectorsearch.googleapis.com @@ -2664,7 +2746,8 @@ libraries: product_documentation: https://cloud.google.com/vision-ai/docs api_description: Vertex AI Vision is an AI-powered platform to ingest, analyze and store video data. - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-visionai/latest/overview + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-visionai/latest/overview release_level: preview distribution_name: com.google.cloud:google-cloud-visionai api_id: visionai.googleapis.com @@ -2705,14 +2788,14 @@ libraries: - api_shortname: webrisk name_pretty: Web Risk product_documentation: https://cloud.google.com/web-risk/docs/ - api_description: "is a Google Cloud service that lets client applications check\ - \ URLs against Google's constantly updated lists of unsafe web resources. Unsafe\ - \ web resources include social engineering sites\u2014such as phishing and deceptive\ - \ sites\u2014and sites that host malware or unwanted software. With the Web Risk\ - \ API, you can quickly identify known bad sites, warn users before they click\ - \ infected links, and prevent users from posting links to known infected pages\ - \ from your site. The Web Risk API includes data on more than a million unsafe\ - \ URLs and stays up to date by examining billions of URLs each day." + api_description: is a Google Cloud service that lets client applications check URLs + against Google's constantly updated lists of unsafe web resources. Unsafe web + resources include social engineering sites—such as phishing and deceptive sites—and + sites that host malware or unwanted software. With the Web Risk API, you can quickly + identify known bad sites, warn users before they click infected links, and prevent + users from posting links to known infected pages from your site. The Web Risk + API includes data on more than a million unsafe URLs and stays up to date by examining + billions of URLs each day. release_level: stable requires_billing: false issue_tracker: '' @@ -2758,6 +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 diff --git a/google-cloud-jar-parent/pom.xml b/google-cloud-jar-parent/pom.xml index b94e09e566d1..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 + 1.79.0 pom Google Cloud JAR Parent @@ -15,7 +15,7 @@ com.google.cloud google-cloud-pom-parent - 1.78.0 + 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 6339ff005c9c..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 + 1.79.0 pom Google Cloud POM Parent https://github.com/googleapis/google-cloud-java diff --git a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml index ef62dbb0515e..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 + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-accessapproval - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.85.0 + 2.86.0 diff --git a/java-accessapproval/google-cloud-accessapproval/pom.xml b/java-accessapproval/google-cloud-accessapproval/pom.xml index 7ae92501b75a..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 + 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 + 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 93da33ccb862..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 + 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 + 2.86.0 diff --git a/java-accessapproval/pom.xml b/java-accessapproval/pom.xml index 2b4d1cb43a84..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 + 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 + 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 + 2.86.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.85.0 + 2.86.0 com.google.cloud google-cloud-accessapproval - 2.85.0 + 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 7d4c0d1e1835..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 + 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 + 2.86.0 diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml index 9bb59ec94f41..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 + 1.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-identity-accesscontextmanager - 1.85.0 + 1.86.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.85.0 + 1.86.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.85.0 + 1.86.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.85.0 + 1.86.0 diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml index 5d521456b2d5..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 + 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 + 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 e19a76f5969f..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 + 1.86.0 grpc-google-identity-accesscontextmanager-v1 GRPC library for google-identity-accesscontextmanager com.google.cloud google-identity-accesscontextmanager-parent - 1.85.0 + 1.86.0 diff --git a/java-accesscontextmanager/pom.xml b/java-accesscontextmanager/pom.xml index 61876bf34622..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 + 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 + 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 + 1.86.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.85.0 + 1.86.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.85.0 + 1.86.0 com.google.cloud google-identity-accesscontextmanager - 1.85.0 + 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 f38494bec7b0..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 + 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 + 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 665b2e3fa50d..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 + 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 + 1.86.0 @@ -37,7 +37,7 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.85.0 + 1.86.0 diff --git a/java-admanager/ad-manager-bom/pom.xml b/java-admanager/ad-manager-bom/pom.xml index 6233fde6858d..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 + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.api-ads ad-manager - 0.43.0 + 0.44.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.43.0 + 0.44.0 diff --git a/java-admanager/ad-manager/pom.xml b/java-admanager/ad-manager/pom.xml index bd80d2937951..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 + 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 + 0.44.0 ad-manager diff --git a/java-admanager/pom.xml b/java-admanager/pom.xml index e19f422de06d..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.api-ads ad-manager - 0.43.0 + 0.44.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.43.0 + 0.44.0 diff --git a/java-admanager/proto-ad-manager-v1/pom.xml b/java-admanager/proto-ad-manager-v1/pom.xml index 786970f599ca..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 + 0.44.0 proto-ad-manager-v1 Proto library for ad-manager com.google.api-ads ad-manager-parent - 0.43.0 + 0.44.0 diff --git a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml index 62915a238805..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 + 0.74.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.73.0 + 0.74.0 diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml index b41ce59cd292..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 + 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 + 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 cee21aa64d27..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 + 0.74.0 grpc-google-cloud-advisorynotifications-v1 GRPC library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.73.0 + 0.74.0 diff --git a/java-advisorynotifications/pom.xml b/java-advisorynotifications/pom.xml index 58bfe26065c5..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.73.0 + 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 4b2af3ec1342..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 + 0.74.0 proto-google-cloud-advisorynotifications-v1 Proto library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.73.0 + 0.74.0 diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index bc9fc27c1415..4e676dbcdbbc 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 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-aiplatform:3.84.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.84.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.84.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 8f5b998f2a08..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 + 3.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-aiplatform - 3.85.0 + 3.86.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.85.0 + 3.86.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.101.0 + 0.102.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.85.0 + 3.86.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.101.0 + 0.102.0 diff --git a/java-aiplatform/google-cloud-aiplatform/pom.xml b/java-aiplatform/google-cloud-aiplatform/pom.xml index 690d9cf2eb94..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 + 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 + 3.86.0 google-cloud-aiplatform 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 b6e004c121d5..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, 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 480eeb96f531..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 + 3.86.0 grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.85.0 + 3.86.0 diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml index c5efbf219962..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 + 0.102.0 grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.85.0 + 3.86.0 diff --git a/java-aiplatform/pom.xml b/java-aiplatform/pom.xml index e9966e9e5962..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-aiplatform - 3.85.0 + 3.86.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.85.0 + 3.86.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.101.0 + 0.102.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.85.0 + 3.86.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.101.0 + 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 74910d9fd8cf..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 + 3.86.0 proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.85.0 + 3.86.0 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/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 20069431beef..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 + 0.102.0 proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.85.0 + 3.86.0 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/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 - * 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/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\0224.0.0 com.google.cloud google-cloud-alloydb-connectors-bom - 0.62.0 + 0.63.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.62.0 + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.62.0 + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.62.0 + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.62.0 + 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 5b95e020860e..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 + 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 + 0.63.0 google-cloud-alloydb-connectors diff --git a/java-alloydb-connectors/pom.xml b/java-alloydb-connectors/pom.xml index c6294d3ec69c..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.62.0 + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.62.0 + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.62.0 + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.62.0 + 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 dc31b96538bc..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 + 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 + 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 a53de347e4b6..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 + 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 + 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 6c6b709eebbd..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 + 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 + 0.63.0 diff --git a/java-alloydb/google-cloud-alloydb-bom/pom.xml b/java-alloydb/google-cloud-alloydb-bom/pom.xml index 59a7e66395af..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 + 0.74.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-alloydb - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.73.0 + 0.74.0 diff --git a/java-alloydb/google-cloud-alloydb/pom.xml b/java-alloydb/google-cloud-alloydb/pom.xml index 40622b4b07f3..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 + 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 + 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 361987504744..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 + 0.74.0 grpc-google-cloud-alloydb-v1 GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0 + 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 1e250dbf50e7..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 + 0.74.0 grpc-google-cloud-alloydb-v1alpha GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0 + 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 7a60c9bba458..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 + 0.74.0 grpc-google-cloud-alloydb-v1beta GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0 + 0.74.0 diff --git a/java-alloydb/pom.xml b/java-alloydb/pom.xml index 028f6b65a6c1..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-alloydb - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.73.0 + 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 23d6df452de2..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 + 0.74.0 proto-google-cloud-alloydb-v1 Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0 + 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 aea6863536eb..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 + 0.74.0 proto-google-cloud-alloydb-v1alpha Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0 + 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 c5cc3259769e..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 + 0.74.0 proto-google-cloud-alloydb-v1beta Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0 + 0.74.0 diff --git a/java-analytics-admin/google-analytics-admin-bom/pom.xml b/java-analytics-admin/google-analytics-admin-bom/pom.xml index e02dfc090966..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 + 0.95.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-admin - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.94.0 + 0.95.0 diff --git a/java-analytics-admin/google-analytics-admin/pom.xml b/java-analytics-admin/google-analytics-admin/pom.xml index edceaa46e98b..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 + 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 + 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 a632bb5a9c6c..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 + 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 + 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 7f543aedfdfc..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 + 0.95.0 grpc-google-analytics-admin-v1beta GRPC library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.94.0 + 0.95.0 diff --git a/java-analytics-admin/pom.xml b/java-analytics-admin/pom.xml index db95acacfd17..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-admin - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.94.0 + 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 1e500f736d85..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 + 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 + 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 d2a147004413..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 + 0.95.0 proto-google-analytics-admin-v1beta Proto library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.94.0 + 0.95.0 diff --git a/java-analytics-data/google-analytics-data-bom/pom.xml b/java-analytics-data/google-analytics-data-bom/pom.xml index ce5c4cbdef43..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 + 0.96.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-data - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.95.0 + 0.96.0 diff --git a/java-analytics-data/google-analytics-data/pom.xml b/java-analytics-data/google-analytics-data/pom.xml index 30c748acb529..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 + 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 + 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 8cc7a830cee6..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 + 0.96.0 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.95.0 + 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 7889958a86cf..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 + 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 + 0.96.0 diff --git a/java-analytics-data/pom.xml b/java-analytics-data/pom.xml index c39a9cf3b665..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-data - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.95.0 + 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 fcb24693124f..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 + 0.96.0 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.95.0 + 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 758c52372a93..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 + 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 + 0.96.0 diff --git a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml index e20ce96561e3..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 + 0.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-analyticshub - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.81.0 + 0.82.0 diff --git a/java-analyticshub/google-cloud-analyticshub/pom.xml b/java-analyticshub/google-cloud-analyticshub/pom.xml index 2971cbfa84dc..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 + 0.82.0 jar Google Analytics Hub API Analytics Hub API TBD com.google.cloud google-cloud-analyticshub-parent - 0.81.0 + 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 a3d334c3b4ad..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 + 0.82.0 grpc-google-cloud-analyticshub-v1 GRPC library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.81.0 + 0.82.0 diff --git a/java-analyticshub/pom.xml b/java-analyticshub/pom.xml index 5cc25520322a..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-analyticshub - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.81.0 + 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 fdc477b4ffcb..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 + 0.82.0 proto-google-cloud-analyticshub-v1 Proto library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.81.0 + 0.82.0 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 9df51bdbb820..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-api-gateway - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.84.0 + 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 7272434bb0f3..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 + 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 + 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 9e5e3cdc467a..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 + 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 + 2.85.0 diff --git a/java-api-gateway/pom.xml b/java-api-gateway/pom.xml index 30beefa8c5b5..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-api-gateway - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.84.0 + 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 b7cf7559fe9b..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 + 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 + 2.85.0 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 216adc2257ae..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-connect - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.84.0 + 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 7fc6240b9b58..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 + 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 + 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 1f6de0be392d..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 + 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 + 2.85.0 diff --git a/java-apigee-connect/pom.xml b/java-apigee-connect/pom.xml index 2c98e404ed33..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-connect - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.84.0 + 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 8857ce993bbb..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 + 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 + 2.85.0 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 887dea6f2f13..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 + 0.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-registry - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.84.0 + 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 5cb84318eb66..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 + 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 + 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 019f367e10ea..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 + 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 + 0.85.0 diff --git a/java-apigee-registry/pom.xml b/java-apigee-registry/pom.xml index cb1c11decef8..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-registry - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.84.0 + 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 78cc62c16293..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 + 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 + 0.85.0 diff --git a/java-apihub/google-cloud-apihub-bom/pom.xml b/java-apihub/google-cloud-apihub-bom/pom.xml index 18848d5967b1..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 + 0.38.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.cloud google-cloud-apihub - 0.37.0 + 0.38.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.37.0 + 0.38.0 diff --git a/java-apihub/google-cloud-apihub/pom.xml b/java-apihub/google-cloud-apihub/pom.xml index 9724de7f5ec3..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 + 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 + 0.38.0 google-cloud-apihub diff --git a/java-apihub/pom.xml b/java-apihub/pom.xml index b9e36406ad85..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-apihub - 0.37.0 + 0.38.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.37.0 + 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 d8cac7e251ea..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 + 0.38.0 proto-google-cloud-apihub-v1 Proto library for google-cloud-apihub com.google.cloud google-cloud-apihub-parent - 0.37.0 + 0.38.0 diff --git a/java-apikeys/google-cloud-apikeys-bom/pom.xml b/java-apikeys/google-cloud-apikeys-bom/pom.xml index 3147c93b9489..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 + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apikeys - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.82.0 + 0.83.0 diff --git a/java-apikeys/google-cloud-apikeys/pom.xml b/java-apikeys/google-cloud-apikeys/pom.xml index 8b7879c7213a..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 + 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 + 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 940af23372d6..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 + 0.83.0 grpc-google-cloud-apikeys-v2 GRPC library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.82.0 + 0.83.0 diff --git a/java-apikeys/pom.xml b/java-apikeys/pom.xml index 488bba0783a2..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apikeys - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.82.0 + 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 92d4b7f4bc2b..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 + 0.83.0 proto-google-cloud-apikeys-v2 Proto library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.82.0 + 0.83.0 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 c95af11d4077..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-appengine-admin - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.84.0 + 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 cba06cc181b3..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 + 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 + 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 ec13cd4a60b7..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 + 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 + 2.85.0 diff --git a/java-appengine-admin/pom.xml b/java-appengine-admin/pom.xml index 1e8cf87ae3ae..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-appengine-admin - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.84.0 + 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 87e129798e27..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 + 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 + 2.85.0 diff --git a/java-apphub/google-cloud-apphub-bom/pom.xml b/java-apphub/google-cloud-apphub-bom/pom.xml index 82c6f4075071..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 + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apphub - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.48.0 + 0.49.0 diff --git a/java-apphub/google-cloud-apphub/pom.xml b/java-apphub/google-cloud-apphub/pom.xml index 8dff2ad054df..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 + 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 + 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 50ca4dff9388..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 + 0.49.0 grpc-google-cloud-apphub-v1 GRPC library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.48.0 + 0.49.0 diff --git a/java-apphub/pom.xml b/java-apphub/pom.xml index add2334aa184..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apphub - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.48.0 + 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 0301239b8e77..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 + 0.49.0 proto-google-cloud-apphub-v1 Proto library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.48.0 + 0.49.0 diff --git a/java-area120-tables/google-area120-tables-bom/pom.xml b/java-area120-tables/google-area120-tables-bom/pom.xml index 53afd8c47fa4..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 + 0.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.area120 google-area120-tables - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.88.0 + 0.89.0 diff --git a/java-area120-tables/google-area120-tables/pom.xml b/java-area120-tables/google-area120-tables/pom.xml index 7075b1362b90..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 + 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 + 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 b37042a2cd1a..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 + 0.89.0 grpc-google-area120-tables-v1alpha1 GRPC library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.88.0 + 0.89.0 diff --git a/java-area120-tables/pom.xml b/java-area120-tables/pom.xml index 1125998bf2c6..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.area120 google-area120-tables - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.88.0 + 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 ed3cf085717b..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 + 0.89.0 proto-google-area120-tables-v1alpha1 Proto library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.88.0 + 0.89.0 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 5512539667a0..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 + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-artifact-registry - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.83.0 + 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 23e31ba2e30a..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 + 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 + 1.84.0 google-cloud-artifact-registry 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 4e9a1e8f3729..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 + 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 + 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 d3d1c19f4ce3..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 + 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 + 1.84.0 diff --git a/java-artifact-registry/pom.xml b/java-artifact-registry/pom.xml index 8961b85a88d9..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-artifact-registry - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.89.0 + 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 79cf6199aaa7..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 + 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 + 1.84.0 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 fafcd0d82d4c..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 + 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 + 1.84.0 diff --git a/java-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index 16e53a06e97a..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 + 3.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-asset - 3.88.0 + 3.89.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.88.0 + 3.89.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.188.0 + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.188.0 + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.188.0 + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.88.0 + 3.89.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.88.0 + 3.89.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.188.0 + 0.189.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.188.0 + 0.189.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.188.0 + 0.189.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.88.0 + 3.89.0 diff --git a/java-asset/google-cloud-asset/pom.xml b/java-asset/google-cloud-asset/pom.xml index e524e70d1d25..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 + 3.89.0 jar Google Cloud Asset Java idiomatic client for Google Cloud Asset com.google.cloud google-cloud-asset-parent - 3.88.0 + 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 1909a89aba26..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 + 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 + 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 8c9b93755315..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 + 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 + 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 474167333ffe..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 + 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 + 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 e0bee5ad1816..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 + 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 + 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 d2e3f837cff6..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 + 3.89.0 grpc-google-cloud-asset-v1p7beta1 GRPC library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.88.0 + 3.89.0 diff --git a/java-asset/pom.xml b/java-asset/pom.xml index 453a53ccd4be..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 + 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 + 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 + 3.89.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.88.0 + 3.89.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.88.0 + 3.89.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.188.0 + 0.189.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.188.0 + 0.189.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.188.0 + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.88.0 + 3.89.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.188.0 + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.188.0 + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.188.0 + 0.189.0 com.google.cloud google-cloud-asset - 3.88.0 + 3.89.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.85.0 + 1.86.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.86.0 + 2.87.0 com.google.cloud google-cloud-resourcemanager - 1.86.0 + 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 8a8b1417da40..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 + 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 + 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 2add7f93ae4f..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 + 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 + 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 8cafb6f9f1bd..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 + 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 + 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 d820c3d15ae7..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 + 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 + 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 dbdd522e1ea7..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 + 3.89.0 proto-google-cloud-asset-v1p7beta1 Proto library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.88.0 + 3.89.0 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 8bc6472f9b5d..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-assured-workloads - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.96.0 + 0.97.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.96.0 + 0.97.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.84.0 + 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 63f14d2dfbb0..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 + 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 + 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 9e93bc91fcb2..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 + 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 + 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 0ea9223645c4..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 + 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 + 2.85.0 diff --git a/java-assured-workloads/pom.xml b/java-assured-workloads/pom.xml index 2ac720fdfa32..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-assured-workloads - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.96.0 + 0.97.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.96.0 + 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 d6b35c24425f..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 + 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 + 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 10f5440d3624..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 + 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 + 2.85.0 diff --git a/java-auditmanager/README.md b/java-auditmanager/README.md index 86654586a571..9444ff4b4bed 100644 --- a/java-auditmanager/README.md +++ b/java-auditmanager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-auditmanager - 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-auditmanager:0.1.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.1.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.1.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 0186da5862b6..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 + 0.3.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-auditmanager - 0.2.0 + 0.3.0 com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.2.0 + 0.3.0 com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.2.0 + 0.3.0 diff --git a/java-auditmanager/google-cloud-auditmanager/pom.xml b/java-auditmanager/google-cloud-auditmanager/pom.xml index cc4e7272dae9..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 + 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 + 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 33e05059bf63..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 + 0.3.0 grpc-google-cloud-auditmanager-v1 GRPC library for google-cloud-auditmanager com.google.cloud google-cloud-auditmanager-parent - 0.2.0 + 0.3.0 diff --git a/java-auditmanager/pom.xml b/java-auditmanager/pom.xml index 0a28dde6b5fd..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-auditmanager - 0.2.0 + 0.3.0 com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.2.0 + 0.3.0 com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.2.0 + 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 0e8c9cbc04e1..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 + 0.3.0 proto-google-cloud-auditmanager-v1 Proto library for google-cloud-auditmanager com.google.cloud google-cloud-auditmanager-parent - 0.2.0 + 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/google-cloud-automl-bom/pom.xml b/java-automl/google-cloud-automl-bom/pom.xml index 4a8575e7c753..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-automl - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.84.0 + 2.85.0 diff --git a/java-automl/google-cloud-automl/pom.xml b/java-automl/google-cloud-automl/pom.xml index 2150b6c2a482..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 + 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 + 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 2942555fba86..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 + 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 + 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 34d4b5e2825c..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 + 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 + 2.85.0 diff --git a/java-automl/pom.xml b/java-automl/pom.xml index 5ff4bf3c3110..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 + 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 + 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 + 0.172.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-automl - 2.84.0 + 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 b79fe06167af..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 + 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 + 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 109f29537849..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 + 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 + 2.85.0 diff --git a/java-backupdr/google-cloud-backupdr-bom/pom.xml b/java-backupdr/google-cloud-backupdr-bom/pom.xml index 83e1dcbb2de6..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 + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-backupdr - 0.43.0 + 0.44.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.43.0 + 0.44.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.43.0 + 0.44.0 diff --git a/java-backupdr/google-cloud-backupdr/pom.xml b/java-backupdr/google-cloud-backupdr/pom.xml index d58dba58e150..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 + 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 + 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 7de7106a7ee3..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 + 0.44.0 grpc-google-cloud-backupdr-v1 GRPC library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.43.0 + 0.44.0 diff --git a/java-backupdr/pom.xml b/java-backupdr/pom.xml index 31d983915bff..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-backupdr - 0.43.0 + 0.44.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.43.0 + 0.44.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.43.0 + 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 c1e2ee2e27c8..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 + 0.44.0 proto-google-cloud-backupdr-v1 Proto library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.43.0 + 0.44.0 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 c5a001248959..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 + 0.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.84.0 + 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 b4300d562b23..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 + 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 + 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 31629e017c0a..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 + 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 + 0.85.0 diff --git a/java-bare-metal-solution/pom.xml b/java-bare-metal-solution/pom.xml index 2282dccd55a3..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.84.0 + 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 ec13fdc95f25..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 + 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 + 0.85.0 diff --git a/java-batch/google-cloud-batch-bom/pom.xml b/java-batch/google-cloud-batch-bom/pom.xml index b9963f91dbec..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 + 0.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-batch - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.84.0 + 0.85.0 diff --git a/java-batch/google-cloud-batch/pom.xml b/java-batch/google-cloud-batch/pom.xml index a1386a137e22..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 + 0.85.0 jar Google Google Cloud Batch Google Cloud Batch n/a com.google.cloud google-cloud-batch-parent - 0.84.0 + 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 05569f1f4473..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 + 0.85.0 grpc-google-cloud-batch-v1 GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.84.0 + 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 be2423101785..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 + 0.85.0 grpc-google-cloud-batch-v1alpha GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.84.0 + 0.85.0 diff --git a/java-batch/pom.xml b/java-batch/pom.xml index 37b27ef9d382..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-batch - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.84.0 + 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 999754de04f0..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 + 0.85.0 proto-google-cloud-batch-v1 Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.84.0 + 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 da1b5717b125..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 + 0.85.0 proto-google-cloud-batch-v1alpha Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.84.0 + 0.85.0 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 65ec6765cdcd..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 + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.82.0 + 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 2f9b121c7d39..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 + 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 + 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 ee855c797014..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 + 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 + 0.83.0 diff --git a/java-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/pom.xml index 28b08fa3c07f..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.82.0 + 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 53867875e3e4..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 + 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 + 0.83.0 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 a8ce7ddb2ba0..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 + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.82.0 + 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 0da34db6c050..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 + 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 + 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 cf99f7927c7e..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 + 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 + 0.83.0 diff --git a/java-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/pom.xml index 38f5fd868272..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.82.0 + 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 91d24b3114dd..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 + 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 + 0.83.0 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 4a3ad73d35b1..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 + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.82.0 + 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 033218b169b7..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 + 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 + 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 e4c083644e3d..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 + 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 + 0.83.0 diff --git a/java-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/pom.xml index 0f2ba96081fd..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.82.0 + 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 a2c92c6562f3..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 + 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 + 0.83.0 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 0b88c4802311..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 + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.82.0 + 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 8408b57bbadf..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 + 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 + 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 c01858092a17..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 + 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 + 0.83.0 diff --git a/java-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/pom.xml index ee25f23c89d5..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.82.0 + 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 3377f5c5e486..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 + 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 + 0.83.0 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 afbbd927546e..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 + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.82.0 + 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 69797813867c..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 + 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 + 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 234c2af1a55f..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 + 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 + 0.83.0 diff --git a/java-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/pom.xml index bf2127d49795..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.82.0 + 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 b5acb01ca244..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 + 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 + 0.83.0 diff --git a/java-biglake/google-cloud-biglake-bom/pom.xml b/java-biglake/google-cloud-biglake-bom/pom.xml index b39ae653f6ab..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 + 0.73.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-biglake - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.72.0 + 0.73.0 diff --git a/java-biglake/google-cloud-biglake/pom.xml b/java-biglake/google-cloud-biglake/pom.xml index 4b9d93307fbc..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 + 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 + 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 0889f1fd8aa5..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 + 0.73.0 grpc-google-cloud-biglake-v1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.72.0 + 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 cf4426ea3512..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 + 0.73.0 grpc-google-cloud-biglake-v1alpha1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.72.0 + 0.73.0 diff --git a/java-biglake/pom.xml b/java-biglake/pom.xml index 3d794a133b0a..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-biglake - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.72.0 + 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 c1d95d8883e9..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 + 0.73.0 proto-google-cloud-biglake-v1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.72.0 + 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 cd89df4bd1ef..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 + 0.73.0 proto-google-cloud-biglake-v1alpha1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.72.0 + 0.73.0 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 19ba95317bd0..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 + 2.80.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.79.0 + 2.80.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.79.0 + 2.80.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.79.0 + 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 ca8c78730871..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 + 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 + 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 8130682877dd..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 + 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 + 2.80.0 diff --git a/java-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/pom.xml index f6f1467126eb..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.79.0 + 2.80.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.79.0 + 2.80.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.79.0 + 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 ebe103128ad6..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 + 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 + 2.80.0 diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml index 69efe927277b..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 + 2.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.94.0 + 0.95.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.94.0 + 0.95.0 diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml index f40080aa7423..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 + 2.87.0 jar Google Cloud BigQuery Connections is about com.google.cloud google-cloud-bigqueryconnection-parent - 2.86.0 + 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 bb1976a79517..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 + 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 + 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 539fa82d0abc..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 + 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 + 2.87.0 diff --git a/java-bigqueryconnection/pom.xml b/java-bigqueryconnection/pom.xml index c12650276287..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.94.0 + 0.95.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.94.0 + 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 383c4062955e..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 + 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 + 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 c57b9286a62d..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 + 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 + 2.87.0 diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml index 0064bb06b6bf..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 + 0.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.81.0 + 0.82.0 diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml index 25b8cb9c6bd2..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 + 0.82.0 jar Google BigQuery DataPolicy API BigQuery DataPolicy API com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0 + 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 0d6c25063732..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 + 0.82.0 grpc-google-cloud-bigquerydatapolicy-v1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0 + 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 9c5918a050c2..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 + 0.82.0 grpc-google-cloud-bigquerydatapolicy-v1beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0 + 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 7adacb9d8903..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 + 0.82.0 grpc-google-cloud-bigquerydatapolicy-v2 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0 + 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 50aabfa628d4..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 + 0.82.0 grpc-google-cloud-bigquerydatapolicy-v2beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0 + 0.82.0 diff --git a/java-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/pom.xml index 1f0dcc6a27e9..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.81.0 + 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 58a154303c9a..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 + 0.82.0 proto-google-cloud-bigquerydatapolicy-v1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0 + 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 bb145d802b39..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 + 0.82.0 proto-google-cloud-bigquerydatapolicy-v1beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0 + 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 b8d782cfb167..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 + 0.82.0 proto-google-cloud-bigquerydatapolicy-v2 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0 + 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 2322a076b4ff..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 + 0.82.0 proto-google-cloud-bigquerydatapolicy-v2beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0 + 0.82.0 diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml index a90b43649060..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigquerydatatransfer - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.84.0 + 2.85.0 diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml index 8efc31c101e3..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 + 2.85.0 jar BigQuery DataTransfer BigQuery DataTransfer com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.84.0 + 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 4642c643a469..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 + 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 + 2.85.0 diff --git a/java-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/pom.xml index 21fae9b97903..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 + 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 + 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 + 2.85.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.84.0 + 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 b6f954a94f89..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 + 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 + 2.85.0 diff --git a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml index 155717e21cc1..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 + 0.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.87.0 + 0.88.0 diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml index 177ef8e9e1cb..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 + 0.88.0 jar Google BigQuery Migration BigQuery Migration BigQuery Migration API com.google.cloud google-cloud-bigquerymigration-parent - 0.87.0 + 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 cdc4b47ccbd8..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 + 0.88.0 grpc-google-cloud-bigquerymigration-v2 GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.87.0 + 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 ab7e2606cecf..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 + 0.88.0 grpc-google-cloud-bigquerymigration-v2alpha GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.87.0 + 0.88.0 diff --git a/java-bigquerymigration/pom.xml b/java-bigquerymigration/pom.xml index 0c93e0ab21c2..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.87.0 + 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 604e8c9568f6..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 + 0.88.0 proto-google-cloud-bigquerymigration-v2 Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.87.0 + 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 60bcbd432bf6..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 + 0.88.0 proto-google-cloud-bigquerymigration-v2alpha Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.87.0 + 0.88.0 diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml index 40a91ce05b0b..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 + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.85.0 + 2.86.0 diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml index c7234e8a5061..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 + 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 + 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 c60a073318bf..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 + 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 + 2.86.0 diff --git a/java-bigqueryreservation/pom.xml b/java-bigqueryreservation/pom.xml index 9ab604841c9c..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.85.0 + 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 5cd081a1c07a..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 + 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 + 2.86.0 diff --git a/java-billing/google-cloud-billing-bom/pom.xml b/java-billing/google-cloud-billing-bom/pom.xml index 81f139f6919d..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-billing - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.84.0 + 2.85.0 diff --git a/java-billing/google-cloud-billing/pom.xml b/java-billing/google-cloud-billing/pom.xml index cdcf82f09cd1..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 + 2.85.0 jar Google Cloud Billing Java idiomatic client for Google Cloud Billing com.google.cloud google-cloud-billing-parent - 2.84.0 + 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 0555176b416c..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 + 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 + 2.85.0 diff --git a/java-billing/pom.xml b/java-billing/pom.xml index c9e1434a2fe7..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 + 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 + 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 + 2.85.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-billing - 2.84.0 + 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 1a9cbad35eca..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 + 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 + 2.85.0 diff --git a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml index 1342609459a8..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-billingbudgets - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.93.0 + 0.94.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.93.0 + 0.94.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.84.0 + 2.85.0 diff --git a/java-billingbudgets/google-cloud-billingbudgets/pom.xml b/java-billingbudgets/google-cloud-billingbudgets/pom.xml index e7f728549131..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 + 2.85.0 jar Google Cloud billingbudgets Java idiomatic client for Google Cloud billingbudgets com.google.cloud google-cloud-billingbudgets-parent - 2.84.0 + 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 4d08e37279bd..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 + 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 + 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 06f35b845c65..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 + 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 + 2.85.0 diff --git a/java-billingbudgets/pom.xml b/java-billingbudgets/pom.xml index e89277c3f28f..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 + 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 + 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 + 0.94.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.93.0 + 0.94.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-billingbudgets - 2.84.0 + 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 c0b3242d2271..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 + 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 + 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 e2d3e3b9ead1..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 + 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 + 2.85.0 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 ac09fbf65fa2..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 + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-binary-authorization - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.83.0 + 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 fc76ea1e293f..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 + 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 + 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 5019edd4f813..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 + 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 + 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 0fdc8a897f38..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 + 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 + 1.84.0 diff --git a/java-binary-authorization/pom.xml b/java-binary-authorization/pom.xml index 45ed297c6f22..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,33 +29,33 @@ com.google.cloud google-cloud-binary-authorization - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.88.0 + 0.89.0 io.grafeas grafeas - 2.85.0 + 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 c85703b2f65e..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 + 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 + 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 2d2414e7f7e8..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 + 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 + 1.84.0 diff --git a/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml b/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml index ac93a762f361..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 + 0.8.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-capacityplanner - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.7.0 + 0.8.0 diff --git a/java-capacityplanner/google-cloud-capacityplanner/pom.xml b/java-capacityplanner/google-cloud-capacityplanner/pom.xml index dfdeef730124..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 + 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 + 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 2029f617779d..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 + 0.8.0 grpc-google-cloud-capacityplanner-v1beta GRPC library for google-cloud-capacityplanner com.google.cloud google-cloud-capacityplanner-parent - 0.7.0 + 0.8.0 diff --git a/java-capacityplanner/pom.xml b/java-capacityplanner/pom.xml index 627dade521b9..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-capacityplanner - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.7.0 + 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 92978074313e..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 + 0.8.0 proto-google-cloud-capacityplanner-v1beta Proto library for google-cloud-capacityplanner com.google.cloud google-cloud-capacityplanner-parent - 0.7.0 + 0.8.0 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 892388760486..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 + 0.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-certificate-manager - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.87.0 + 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 d08014e32b85..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 + 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 + 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 414c20894016..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 + 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 + 0.88.0 diff --git a/java-certificate-manager/pom.xml b/java-certificate-manager/pom.xml index fb70e5d9702d..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-certificate-manager - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.87.0 + 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 86dca8a1bdfe..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 + 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 + 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/google-cloud-channel-bom/pom.xml b/java-channel/google-cloud-channel-bom/pom.xml index ab367e8f98fa..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 + 3.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-channel - 3.88.0 + 3.89.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.88.0 + 3.89.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.88.0 + 3.89.0 diff --git a/java-channel/google-cloud-channel/pom.xml b/java-channel/google-cloud-channel/pom.xml index 2933e96f7ce9..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 + 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 + 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 3e66479bd7f6..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 + 3.89.0 grpc-google-cloud-channel-v1 GRPC library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.88.0 + 3.89.0 diff --git a/java-channel/pom.xml b/java-channel/pom.xml index ec34fa9b88b9..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-channel - 3.88.0 + 3.89.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.88.0 + 3.89.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.88.0 + 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 49f6f6c9b505..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 + 3.89.0 proto-google-cloud-channel-v1 Proto library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.88.0 + 3.89.0 diff --git a/java-chat/google-cloud-chat-bom/pom.xml b/java-chat/google-cloud-chat-bom/pom.xml index d121be90e683..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 + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-chat - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.48.0 + 0.49.0 diff --git a/java-chat/google-cloud-chat/pom.xml b/java-chat/google-cloud-chat/pom.xml index 8406986cdfc2..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 + 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 + 0.49.0 google-cloud-chat diff --git a/java-chat/grpc-google-cloud-chat-v1/pom.xml b/java-chat/grpc-google-cloud-chat-v1/pom.xml index 0ae0d2693123..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 + 0.49.0 grpc-google-cloud-chat-v1 GRPC library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.48.0 + 0.49.0 diff --git a/java-chat/pom.xml b/java-chat/pom.xml index 81faae5cdb66..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-chat - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.48.0 + 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 c2cac92a0045..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 + 0.49.0 proto-google-cloud-chat-v1 Proto library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.48.0 + 0.49.0 diff --git a/java-chronicle/google-cloud-chronicle-bom/pom.xml b/java-chronicle/google-cloud-chronicle-bom/pom.xml index fc7226bea314..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 + 0.23.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-chronicle - 0.22.0 + 0.23.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.22.0 + 0.23.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.22.0 + 0.23.0 diff --git a/java-chronicle/google-cloud-chronicle/pom.xml b/java-chronicle/google-cloud-chronicle/pom.xml index 74dce8717e1b..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 + 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 + 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 db66c5f6b1da..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 + 0.23.0 grpc-google-cloud-chronicle-v1 GRPC library for google-cloud-chronicle com.google.cloud google-cloud-chronicle-parent - 0.22.0 + 0.23.0 diff --git a/java-chronicle/pom.xml b/java-chronicle/pom.xml index cb05f65c6940..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-chronicle - 0.22.0 + 0.23.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.22.0 + 0.23.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.22.0 + 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 14316b25afb6..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 + 0.23.0 proto-google-cloud-chronicle-v1 Proto library for google-cloud-chronicle com.google.cloud google-cloud-chronicle-parent - 0.22.0 + 0.23.0 diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry-bom/pom.xml b/java-cloudapiregistry/google-cloud-cloudapiregistry-bom/pom.xml index cd9d61d0a1cc..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 + 0.4.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.cloud google-cloud-cloudapiregistry - 0.3.0 + 0.4.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1beta - 0.3.0 + 0.4.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1 - 0.3.0 + 0.4.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1beta - 0.3.0 + 0.4.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1 - 0.3.0 + 0.4.0 diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/pom.xml b/java-cloudapiregistry/google-cloud-cloudapiregistry/pom.xml index 87a83916412e..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 + 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 + 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 ea4625144c7a..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 + 0.4.0 grpc-google-cloud-cloudapiregistry-v1 GRPC library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.3.0 + 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 ddf18a709caf..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 + 0.4.0 grpc-google-cloud-cloudapiregistry-v1beta GRPC library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.3.0 + 0.4.0 diff --git a/java-cloudapiregistry/pom.xml b/java-cloudapiregistry/pom.xml index d0ed2522e982..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudapiregistry - 0.3.0 + 0.4.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1 - 0.3.0 + 0.4.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1 - 0.3.0 + 0.4.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1beta - 0.3.0 + 0.4.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1beta - 0.3.0 + 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 d0971525ef26..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 + 0.4.0 proto-google-cloud-cloudapiregistry-v1 Proto library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.3.0 + 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 e6cb392c90f0..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 + 0.4.0 proto-google-cloud-cloudapiregistry-v1beta Proto library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.3.0 + 0.4.0 diff --git a/java-cloudbuild/google-cloud-build-bom/pom.xml b/java-cloudbuild/google-cloud-build-bom/pom.xml index b1275da7d04c..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 + 3.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-build - 3.86.0 + 3.87.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.86.0 + 3.87.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.86.0 + 3.87.0 com.google.api.grpc proto-google-cloud-build-v1 - 3.86.0 + 3.87.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.86.0 + 3.87.0 diff --git a/java-cloudbuild/google-cloud-build/pom.xml b/java-cloudbuild/google-cloud-build/pom.xml index b171557993af..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 + 3.87.0 jar Google Cloud Build @@ -12,7 +12,7 @@ com.google.cloud google-cloud-build-parent - 3.86.0 + 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 70f1558a1231..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 + 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 + 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 9932a4403b8e..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 + 3.87.0 grpc-google-cloud-build-v2 GRPC library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.86.0 + 3.87.0 diff --git a/java-cloudbuild/pom.xml b/java-cloudbuild/pom.xml index 1ffd2abae4a0..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 + 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 + 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 + 3.87.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.86.0 + 3.87.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.86.0 + 3.87.0 com.google.cloud google-cloud-build - 3.86.0 + 3.87.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.86.0 + 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 8c584d4770c8..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 + 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 + 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 e622b9c3fb9b..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 + 3.87.0 proto-google-cloud-build-v2 Proto library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.86.0 + 3.87.0 diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml index 242933f6df6c..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 + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.82.0 + 0.83.0 diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml index 3e3aa255f05d..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 + 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 + 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 dc228dc487b5..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 + 0.83.0 grpc-google-cloud-cloudcommerceconsumerprocurement-v1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.82.0 + 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 4a2e7b837895..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 + 0.83.0 grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.82.0 + 0.83.0 diff --git a/java-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/pom.xml index d5c2f375d33a..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.82.0 + 0.83.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.82.0 + 0.83.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.82.0 + 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 00cca242c4f6..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 + 0.83.0 proto-google-cloud-cloudcommerceconsumerprocurement-v1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.82.0 + 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 1caf814f069c..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 + 0.83.0 proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.82.0 + 0.83.0 diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml index 62236de3a3ef..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 + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.48.0 + 0.49.0 diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml index 8b1d088855cc..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 + 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 + 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 07304f0f5218..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 + 0.49.0 grpc-google-cloud-cloudcontrolspartner-v1 GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.48.0 + 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 23f73e28e957..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 + 0.49.0 grpc-google-cloud-cloudcontrolspartner-v1beta GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.48.0 + 0.49.0 diff --git a/java-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/pom.xml index 42a339f35512..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.48.0 + 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 103ef799af87..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 + 0.49.0 proto-google-cloud-cloudcontrolspartner-v1 Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.48.0 + 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 9b9cf3444493..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 + 0.49.0 proto-google-cloud-cloudcontrolspartner-v1beta Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.48.0 + 0.49.0 diff --git a/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml index f8cbc5cc042c..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 + 0.53.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudquotas - 0.52.0 + 0.53.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.52.0 + 0.53.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.52.0 + 0.53.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.52.0 + 0.53.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.52.0 + 0.53.0 diff --git a/java-cloudquotas/google-cloud-cloudquotas/pom.xml b/java-cloudquotas/google-cloud-cloudquotas/pom.xml index dc8cde34fcf7..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 + 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 + 0.53.0 google-cloud-cloudquotas diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml index 7a68a5fa1ab1..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 + 0.53.0 grpc-google-cloud-cloudquotas-v1 GRPC library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.52.0 + 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 7de9891d1cec..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 + 0.53.0 grpc-google-cloud-cloudquotas-v1beta GRPC library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.52.0 + 0.53.0 diff --git a/java-cloudquotas/pom.xml b/java-cloudquotas/pom.xml index cc6b1abd4e56..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudquotas - 0.52.0 + 0.53.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.52.0 + 0.53.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.52.0 + 0.53.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.52.0 + 0.53.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.52.0 + 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 2c97eb20316d..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 + 0.53.0 proto-google-cloud-cloudquotas-v1 Proto library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.52.0 + 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 889f1e44efe4..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 + 0.53.0 proto-google-cloud-cloudquotas-v1beta Proto library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.52.0 + 0.53.0 diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance-bom/pom.xml b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance-bom/pom.xml index fb5311b5e605..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 + 0.12.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-cloudsecuritycompliance - 0.11.0 + 0.12.0 com.google.api.grpc grpc-google-cloud-cloudsecuritycompliance-v1 - 0.11.0 + 0.12.0 com.google.api.grpc proto-google-cloud-cloudsecuritycompliance-v1 - 0.11.0 + 0.12.0 diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/pom.xml b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/pom.xml index 5a8043a51d1a..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 + 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 + 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 acfc683ebaee..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 + 0.12.0 grpc-google-cloud-cloudsecuritycompliance-v1 GRPC library for google-cloud-cloudsecuritycompliance com.google.cloud google-cloud-cloudsecuritycompliance-parent - 0.11.0 + 0.12.0 diff --git a/java-cloudsecuritycompliance/pom.xml b/java-cloudsecuritycompliance/pom.xml index ba6ca59221e0..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-cloudsecuritycompliance - 0.11.0 + 0.12.0 com.google.api.grpc grpc-google-cloud-cloudsecuritycompliance-v1 - 0.11.0 + 0.12.0 com.google.api.grpc proto-google-cloud-cloudsecuritycompliance-v1 - 0.11.0 + 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 630032817ba5..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 + 0.12.0 proto-google-cloud-cloudsecuritycompliance-v1 Proto library for google-cloud-cloudsecuritycompliance com.google.cloud google-cloud-cloudsecuritycompliance-parent - 0.11.0 + 0.12.0 diff --git a/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml index f0629a6637db..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 + 0.69.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudsupport - 0.68.0 + 0.69.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.68.0 + 0.69.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.68.0 + 0.69.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.68.0 + 0.69.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.68.0 + 0.69.0 diff --git a/java-cloudsupport/google-cloud-cloudsupport/pom.xml b/java-cloudsupport/google-cloud-cloudsupport/pom.xml index 2a3257cf270f..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 + 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 + 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 936fbdacf03c..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 + 0.69.0 grpc-google-cloud-cloudsupport-v2 GRPC library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.68.0 + 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 a38e8eb64fe2..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 + 0.69.0 grpc-google-cloud-cloudsupport-v2beta GRPC library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.68.0 + 0.69.0 diff --git a/java-cloudsupport/pom.xml b/java-cloudsupport/pom.xml index 3f15deff4647..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudsupport - 0.68.0 + 0.69.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.68.0 + 0.69.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.68.0 + 0.69.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.68.0 + 0.69.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.68.0 + 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 371b1dcaba7a..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 + 0.69.0 proto-google-cloud-cloudsupport-v2 Proto library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.68.0 + 0.69.0 diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml index e85d0d6bc677..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 + 0.69.0 proto-google-cloud-cloudsupport-v2beta Proto library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.68.0 + 0.69.0 diff --git a/java-compute/google-cloud-compute-bom/pom.xml b/java-compute/google-cloud-compute-bom/pom.xml index c0a50d289a5b..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 + 1.95.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,12 +23,12 @@ com.google.cloud google-cloud-compute - 1.94.0 + 1.95.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.94.0 + 1.95.0 diff --git a/java-compute/google-cloud-compute/pom.xml b/java-compute/google-cloud-compute/pom.xml index 099172f516d0..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 + 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 + 1.95.0 google-cloud-compute diff --git a/java-compute/pom.xml b/java-compute/pom.xml index 415747445e62..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-compute - 1.94.0 + 1.95.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.94.0 + 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 075d7453ad27..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 + 1.95.0 proto-google-cloud-compute-v1 Proto library for google-cloud-compute com.google.cloud google-cloud-compute-parent - 1.94.0 + 1.95.0 diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml index a58051c7f177..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 + 0.71.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.70.0 + 0.71.0 diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml index e70a1837b612..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 + 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 + 0.71.0 google-cloud-confidentialcomputing diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml index 771def759b1d..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 + 0.71.0 grpc-google-cloud-confidentialcomputing-v1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.70.0 + 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 3837885a29d2..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 + 0.71.0 grpc-google-cloud-confidentialcomputing-v1alpha1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.70.0 + 0.71.0 diff --git a/java-confidentialcomputing/pom.xml b/java-confidentialcomputing/pom.xml index 948458da4e96..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.70.0 + 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 22778f47accd..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 + 0.71.0 proto-google-cloud-confidentialcomputing-v1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.70.0 + 0.71.0 diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml index ddbbb039a37a..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 + 0.71.0 proto-google-cloud-confidentialcomputing-v1alpha1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.70.0 + 0.71.0 diff --git a/java-configdelivery/google-cloud-configdelivery-bom/pom.xml b/java-configdelivery/google-cloud-configdelivery-bom/pom.xml index cfab0cb3105d..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 + 0.19.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.cloud google-cloud-configdelivery - 0.18.0 + 0.19.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.18.0 + 0.19.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1 - 0.18.0 + 0.19.0 com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.18.0 + 0.19.0 com.google.api.grpc proto-google-cloud-configdelivery-v1 - 0.18.0 + 0.19.0 diff --git a/java-configdelivery/google-cloud-configdelivery/pom.xml b/java-configdelivery/google-cloud-configdelivery/pom.xml index 14cceb67b2a4..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 + 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 + 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 3248593036ef..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 + 0.19.0 grpc-google-cloud-configdelivery-v1 GRPC library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.18.0 + 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 2a13abf5be99..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 + 0.19.0 grpc-google-cloud-configdelivery-v1beta GRPC library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.18.0 + 0.19.0 diff --git a/java-configdelivery/pom.xml b/java-configdelivery/pom.xml index c7b8f3c98590..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-configdelivery - 0.18.0 + 0.19.0 com.google.api.grpc proto-google-cloud-configdelivery-v1 - 0.18.0 + 0.19.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1 - 0.18.0 + 0.19.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.18.0 + 0.19.0 com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.18.0 + 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 0209e11e21cd..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 + 0.19.0 proto-google-cloud-configdelivery-v1 Proto library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.18.0 + 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 5a4c13823ef9..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 + 0.19.0 proto-google-cloud-configdelivery-v1beta Proto library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.18.0 + 0.19.0 diff --git a/java-connectgateway/google-cloud-connectgateway-bom/pom.xml b/java-connectgateway/google-cloud-connectgateway-bom/pom.xml index 7babbef609af..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 + 0.37.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.cloud google-cloud-connectgateway - 0.36.0 + 0.37.0 com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.36.0 + 0.37.0 diff --git a/java-connectgateway/google-cloud-connectgateway/pom.xml b/java-connectgateway/google-cloud-connectgateway/pom.xml index 76e45f5462fc..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 + 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 + 0.37.0 google-cloud-connectgateway diff --git a/java-connectgateway/pom.xml b/java-connectgateway/pom.xml index 78f46116ee0a..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-connectgateway - 0.36.0 + 0.37.0 com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.36.0 + 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 de7b988fe071..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 + 0.37.0 proto-google-cloud-connectgateway-v1 Proto library for google-cloud-connectgateway com.google.cloud google-cloud-connectgateway-parent - 0.36.0 + 0.37.0 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 e7fb386820c8..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.84.0 + 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 375f361adad5..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 + 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 + 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 f1a0b2616b30..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 + 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 + 2.85.0 diff --git a/java-contact-center-insights/pom.xml b/java-contact-center-insights/pom.xml index 4468f76ae2c1..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.84.0 + 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 2091f6d8d0ea..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 + 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 + 2.85.0 diff --git a/java-container/google-cloud-container-bom/pom.xml b/java-container/google-cloud-container-bom/pom.xml index 79b009afb177..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 + 2.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-container - 2.87.0 + 2.88.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.87.0 + 2.88.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.87.0 + 2.88.0 com.google.api.grpc proto-google-cloud-container-v1 - 2.87.0 + 2.88.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.87.0 + 2.88.0 diff --git a/java-container/google-cloud-container/pom.xml b/java-container/google-cloud-container/pom.xml index 5ad452e4f64f..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 + 2.88.0 jar Google Cloud Container Java idiomatic client for Google Cloud Container com.google.cloud google-cloud-container-parent - 2.87.0 + 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 dc1894fb4c29..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 + 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 + 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 009f6d9bbcf6..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 + 2.88.0 grpc-google-cloud-container-v1beta1 GRPC library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.87.0 + 2.88.0 diff --git a/java-container/pom.xml b/java-container/pom.xml index 38f89f2a22f2..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 + 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 + 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 + 2.88.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.87.0 + 2.88.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.87.0 + 2.88.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.87.0 + 2.88.0 com.google.cloud google-cloud-container - 2.87.0 + 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 708990e104a3..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 + 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 + 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 a001c9ccbc18..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 + 2.88.0 proto-google-cloud-container-v1beta1 Proto library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.87.0 + 2.88.0 diff --git a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml index a786e4e50466..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 + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-containeranalysis - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.175.0 + 0.176.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.175.0 + 0.176.0 diff --git a/java-containeranalysis/google-cloud-containeranalysis/pom.xml b/java-containeranalysis/google-cloud-containeranalysis/pom.xml index 7f9894c06896..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 + 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 + 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 a4e736bd0da6..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 + 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 + 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 b38d2b6edbd6..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 + 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 + 2.86.0 diff --git a/java-containeranalysis/pom.xml b/java-containeranalysis/pom.xml index 7ec8d9eab144..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 + 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 + 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 + 2.86.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.175.0 + 0.176.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.175.0 + 0.176.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.85.0 + 2.86.0 com.google.cloud google-cloud-containeranalysis - 2.85.0 + 2.86.0 io.grafeas grafeas - 2.85.0 + 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 6fd0c51de5c7..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 + 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 + 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 1d9b2d6ccba2..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 + 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 + 2.86.0 diff --git a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml index 09b05b010196..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 + 0.81.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.80.0 + 0.81.0 diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml index f9c7518943a0..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 + 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 + 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 dd070aa299c3..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 + 0.81.0 grpc-google-cloud-contentwarehouse-v1 GRPC library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.80.0 + 0.81.0 diff --git a/java-contentwarehouse/pom.xml b/java-contentwarehouse/pom.xml index ff85c683f996..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.80.0 + 0.81.0 @@ -48,7 +48,7 @@ com.google.cloud google-cloud-document-ai - 2.88.0 + 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 e2893be4da04..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 + 0.81.0 proto-google-cloud-contentwarehouse-v1 Proto library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.80.0 + 0.81.0 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 f76c23a49e3c..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 + 1.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-data-fusion - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.84.0 + 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 2e0f57b05ad1..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 + 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 + 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 126e7e332907..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 + 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 + 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 c33a92c5f788..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 + 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 + 1.85.0 diff --git a/java-data-fusion/pom.xml b/java-data-fusion/pom.xml index a86045e02aeb..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-data-fusion - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.84.0 + 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 d4d93e6532d0..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 + 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 + 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 7b70ca3c2ba4..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 + 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 + 1.85.0 diff --git a/java-databasecenter/README.md b/java-databasecenter/README.md index 3405816ed03c..64c623fe59c4 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.4.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.4.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.4.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.4.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 56279cbaa940..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 + 0.6.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-databasecenter - 0.5.0 + 0.6.0 com.google.api.grpc grpc-google-cloud-databasecenter-v1beta - 0.5.0 + 0.6.0 com.google.api.grpc proto-google-cloud-databasecenter-v1beta - 0.5.0 + 0.6.0 diff --git a/java-databasecenter/google-cloud-databasecenter/pom.xml b/java-databasecenter/google-cloud-databasecenter/pom.xml index 8cc7f012d398..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 + 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 + 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 e2c886463695..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 + 0.6.0 grpc-google-cloud-databasecenter-v1beta GRPC library for google-cloud-databasecenter com.google.cloud google-cloud-databasecenter-parent - 0.5.0 + 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 8b62549b7705..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-databasecenter - 0.5.0 + 0.6.0 com.google.api.grpc grpc-google-cloud-databasecenter-v1beta - 0.5.0 + 0.6.0 com.google.api.grpc proto-google-cloud-databasecenter-v1beta - 0.5.0 + 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 60e11cc43959..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 + 0.6.0 proto-google-cloud-databasecenter-v1beta Proto library for google-cloud-databasecenter com.google.cloud google-cloud-databasecenter-parent - 0.5.0 + 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/google-cloud-datacatalog-bom/pom.xml b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml index 4bcd59d3c791..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 + 1.91.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-datacatalog - 1.90.0 + 1.91.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.90.0 + 1.91.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.127.0 + 0.128.0 com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.90.0 + 1.91.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.127.0 + 0.128.0
diff --git a/java-datacatalog/google-cloud-datacatalog/pom.xml b/java-datacatalog/google-cloud-datacatalog/pom.xml index a43b25064130..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 + 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 + 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 6dfedd108550..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 + 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 + 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 12f4f79b45be..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 + 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 + 1.91.0 diff --git a/java-datacatalog/pom.xml b/java-datacatalog/pom.xml index 815f42bfc73c..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 + 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 + 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 + 1.91.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.127.0 + 0.128.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.90.0 + 1.91.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.127.0 + 0.128.0 com.google.cloud google-cloud-datacatalog - 1.90.0 + 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 875feb36d881..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 + 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 + 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 2e7f0ed4be34..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 + 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 + 1.91.0 diff --git a/java-dataflow/google-cloud-dataflow-bom/pom.xml b/java-dataflow/google-cloud-dataflow-bom/pom.xml index 3125e462fdb2..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 + 0.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dataflow - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.88.0 + 0.89.0 diff --git a/java-dataflow/google-cloud-dataflow/pom.xml b/java-dataflow/google-cloud-dataflow/pom.xml index d58f46c673d0..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 + 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 + 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 8f094dd9b355..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 + 0.89.0 grpc-google-cloud-dataflow-v1beta3 GRPC library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.88.0 + 0.89.0 diff --git a/java-dataflow/pom.xml b/java-dataflow/pom.xml index 7f6a1ef6fa0e..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-dataflow - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.88.0 + 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 f73dabe7894e..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 + 0.89.0 proto-google-cloud-dataflow-v1beta3 Proto library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.88.0 + 0.89.0 diff --git a/java-dataform/README.md b/java-dataform/README.md index 2e382316626c..bbf88c4c4e32 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 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-dataform:0.82.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.82.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.82.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 7e7f9c919856..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 + 0.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-dataform - 0.83.0 + 0.84.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.83.0 + 0.84.0 com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.83.0 + 0.84.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.83.0 + 0.84.0 com.google.api.grpc proto-google-cloud-dataform-v1 - 0.83.0 + 0.84.0 diff --git a/java-dataform/google-cloud-dataform/pom.xml b/java-dataform/google-cloud-dataform/pom.xml index a86201a0b745..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 + 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 + 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 172df3bd47c7..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 + 0.84.0 grpc-google-cloud-dataform-v1 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.83.0 + 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 0605009cdf46..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 + 0.84.0 grpc-google-cloud-dataform-v1beta1 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.83.0 + 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 14b3e5dcc9f1..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-dataform - 0.83.0 + 0.84.0 com.google.api.grpc proto-google-cloud-dataform-v1 - 0.83.0 + 0.84.0 com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.83.0 + 0.84.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.83.0 + 0.84.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.83.0 + 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 9dd4ac03d9a4..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 + 0.84.0 proto-google-cloud-dataform-v1 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.83.0 + 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 d9adf9ad1329..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 + 0.84.0 proto-google-cloud-dataform-v1beta1 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.83.0 + 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/google-cloud-datalabeling-bom/pom.xml b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml index 8a077714f57d..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 + 0.205.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-datalabeling - 0.204.0 + 0.205.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.169.0 + 0.170.0 com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.169.0 + 0.170.0 diff --git a/java-datalabeling/google-cloud-datalabeling/pom.xml b/java-datalabeling/google-cloud-datalabeling/pom.xml index 8431a20e0687..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 + 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 + 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 07386481b383..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 + 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 + 0.205.0 diff --git a/java-datalabeling/pom.xml b/java-datalabeling/pom.xml index 41ea3bda5af1..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 + 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 + 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 + 0.170.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.169.0 + 0.170.0 com.google.cloud google-cloud-datalabeling - 0.204.0 + 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 598dd17dfa32..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 + 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 + 0.205.0 diff --git a/java-datalineage/google-cloud-datalineage-bom/pom.xml b/java-datalineage/google-cloud-datalineage-bom/pom.xml index bf8636c6f5fa..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 + 0.77.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-datalineage - 0.76.0 + 0.77.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.76.0 + 0.77.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.76.0 + 0.77.0 diff --git a/java-datalineage/google-cloud-datalineage/pom.xml b/java-datalineage/google-cloud-datalineage/pom.xml index 9e901588687e..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 + 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 + 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 6e64a7fa70e6..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 + 0.77.0 grpc-google-cloud-datalineage-v1 GRPC library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.76.0 + 0.77.0 diff --git a/java-datalineage/pom.xml b/java-datalineage/pom.xml index 6a1a89abd42e..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-datalineage - 0.76.0 + 0.77.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.76.0 + 0.77.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.76.0 + 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 456ab59e4ba9..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 + 0.77.0 proto-google-cloud-datalineage-v1 Proto library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.76.0 + 0.77.0 diff --git a/java-datamanager/data-manager-bom/pom.xml b/java-datamanager/data-manager-bom/pom.xml index b6b0045c7b3f..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 + 0.6.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.api-ads data-manager - 0.5.0 + 0.6.0 com.google.api-ads.api.grpc grpc-data-manager-v1 - 0.5.0 + 0.6.0 com.google.api-ads.api.grpc proto-data-manager-v1 - 0.5.0 + 0.6.0 diff --git a/java-datamanager/data-manager/pom.xml b/java-datamanager/data-manager/pom.xml index 3441ab8a034f..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 + 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 + 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 b959362ab9b4..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 + 0.6.0 grpc-data-manager-v1 GRPC library for data-manager com.google.api-ads data-manager-parent - 0.5.0 + 0.6.0 diff --git a/java-datamanager/pom.xml b/java-datamanager/pom.xml index b3ee60cdcb77..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api-ads data-manager - 0.5.0 + 0.6.0 com.google.api-ads.api.grpc grpc-data-manager-v1 - 0.5.0 + 0.6.0 com.google.api-ads.api.grpc proto-data-manager-v1 - 0.5.0 + 0.6.0 diff --git a/java-datamanager/proto-data-manager-v1/pom.xml b/java-datamanager/proto-data-manager-v1/pom.xml index 3d09eda3fefd..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 + 0.6.0 proto-data-manager-v1 Proto library for data-manager com.google.api-ads data-manager-parent - 0.5.0 + 0.6.0 diff --git a/java-dataplex/google-cloud-dataplex-bom/pom.xml b/java-dataplex/google-cloud-dataplex-bom/pom.xml index 4f3907a7b565..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 + 1.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dataplex - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.82.0 + 1.83.0 diff --git a/java-dataplex/google-cloud-dataplex/pom.xml b/java-dataplex/google-cloud-dataplex/pom.xml index c1db6cdcbc5e..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 + 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 + 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 6b1ac827cee5..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 + 1.83.0 grpc-google-cloud-dataplex-v1 GRPC library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.82.0 + 1.83.0 diff --git a/java-dataplex/pom.xml b/java-dataplex/pom.xml index 0b19f4120f99..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-dataplex - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.82.0 + 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 0cdd636c9e0d..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 + 1.83.0 proto-google-cloud-dataplex-v1 Proto library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.82.0 + 1.83.0 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 6ccb526c6129..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 + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.85.0 + 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 4ef67f062e15..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 + 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 + 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 6539ba61fc54..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 + 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 + 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 489c17c29911..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 + 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 + 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 3b407d620aa1..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 + 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 + 2.86.0 diff --git a/java-dataproc-metastore/pom.xml b/java-dataproc-metastore/pom.xml index dc51968ebe40..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.85.0 + 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 ea73206f4a1a..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 + 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 + 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 1e7795bce2c4..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 + 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 + 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 139878c794a2..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 + 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 + 2.86.0 diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 825b7fe9a9d4..d4be2b4221d5 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.80.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.80.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.80.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.80.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 9570b7460701..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 + 4.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-dataproc - 4.81.0 + 4.82.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.81.0 + 4.82.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.81.0 + 4.82.0 diff --git a/java-dataproc/google-cloud-dataproc/pom.xml b/java-dataproc/google-cloud-dataproc/pom.xml index e1f05c73285b..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 + 4.82.0 jar Google Cloud Dataproc Java idiomatic client for Google Cloud Dataproc com.google.cloud google-cloud-dataproc-parent - 4.81.0 + 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 0408afb4e633..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 + 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 + 4.82.0 diff --git a/java-dataproc/pom.xml b/java-dataproc/pom.xml index b1d337c0c5de..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 + 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 + 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 + 4.82.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.81.0 + 4.82.0 com.google.cloud google-cloud-dataproc - 4.81.0 + 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 985f1986603d..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 + 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 + 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/google-cloud-datastream-bom/pom.xml b/java-datastream/google-cloud-datastream-bom/pom.xml index 750cf3f91dd0..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 + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-datastream - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.83.0 + 1.84.0
diff --git a/java-datastream/google-cloud-datastream/pom.xml b/java-datastream/google-cloud-datastream/pom.xml index 45e01f1124ce..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 + 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 + 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 8c6dd07c652f..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 + 1.84.0 grpc-google-cloud-datastream-v1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.83.0 + 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 a0def809abe3..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 + 0.89.0 grpc-google-cloud-datastream-v1alpha1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.83.0 + 1.84.0 diff --git a/java-datastream/pom.xml b/java-datastream/pom.xml index 592e99bcf53c..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-datastream - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.88.0 + 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 5fe2e646cb40..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 + 1.84.0 proto-google-cloud-datastream-v1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.83.0 + 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 41ba4e96e9e8..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 + 0.89.0 proto-google-cloud-datastream-v1alpha1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.83.0 + 1.84.0 diff --git a/java-deploy/google-cloud-deploy-bom/pom.xml b/java-deploy/google-cloud-deploy-bom/pom.xml index f5d6eceb816d..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 + 1.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-deploy - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.82.0 + 1.83.0 diff --git a/java-deploy/google-cloud-deploy/pom.xml b/java-deploy/google-cloud-deploy/pom.xml index 3c0a8254c64a..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 + 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 + 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 78156070add4..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 + 1.83.0 grpc-google-cloud-deploy-v1 GRPC library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.82.0 + 1.83.0 diff --git a/java-deploy/pom.xml b/java-deploy/pom.xml index 9cb4d9f6ddea..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-deploy - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.82.0 + 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 e10e6e0585be..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 + 1.83.0 proto-google-cloud-deploy-v1 Proto library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.82.0 + 1.83.0 diff --git a/java-developerconnect/google-cloud-developerconnect-bom/pom.xml b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml index 2d64725939b7..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 + 0.42.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-developerconnect - 0.41.0 + 0.42.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.41.0 + 0.42.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.41.0 + 0.42.0 diff --git a/java-developerconnect/google-cloud-developerconnect/pom.xml b/java-developerconnect/google-cloud-developerconnect/pom.xml index 2ffc7b81f33a..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 + 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 + 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 51979bb7c6fa..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 + 0.42.0 grpc-google-cloud-developerconnect-v1 GRPC library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.41.0 + 0.42.0 diff --git a/java-developerconnect/pom.xml b/java-developerconnect/pom.xml index a694d02bfaaf..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-developerconnect - 0.41.0 + 0.42.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.41.0 + 0.42.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.41.0 + 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 e438e3ef3fea..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 + 0.42.0 proto-google-cloud-developerconnect-v1 Proto library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.41.0 + 0.42.0 diff --git a/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml b/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml index 47745b3f7a5b..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 + 0.25.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-devicestreaming - 0.24.0 + 0.25.0 com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.24.0 + 0.25.0 com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.24.0 + 0.25.0 diff --git a/java-devicestreaming/google-cloud-devicestreaming/pom.xml b/java-devicestreaming/google-cloud-devicestreaming/pom.xml index 32bd71f9fcfc..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 + 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 + 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 370f2ed23ff0..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 + 0.25.0 grpc-google-cloud-devicestreaming-v1 GRPC library for google-cloud-devicestreaming com.google.cloud google-cloud-devicestreaming-parent - 0.24.0 + 0.25.0 diff --git a/java-devicestreaming/pom.xml b/java-devicestreaming/pom.xml index c7d64c231f3b..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-devicestreaming - 0.24.0 + 0.25.0 com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.24.0 + 0.25.0 com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.24.0 + 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 39d168c35dce..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 + 0.25.0 proto-google-cloud-devicestreaming-v1 Proto library for google-cloud-devicestreaming com.google.cloud google-cloud-devicestreaming-parent - 0.24.0 + 0.25.0 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 47a13d2da7b2..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 + 0.96.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.95.0 + 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 858255c97680..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 + 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 + 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 8e1d91f490d4..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 + 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 + 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 157e98ce670d..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 + 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 + 0.96.0 diff --git a/java-dialogflow-cx/pom.xml b/java-dialogflow-cx/pom.xml index a67c9e30b6ad..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.95.0 + 0.96.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.95.0 + 0.96.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.95.0 + 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 4df86eba373b..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 + 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 + 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 bdc1badf11ed..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 + 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 + 0.96.0 diff --git a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml index ae108b6c54ad..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 + 4.91.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-dialogflow - 4.90.0 + 4.91.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.188.0 + 0.189.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.90.0 + 4.91.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.90.0 + 4.91.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.188.0 + 0.189.0 diff --git a/java-dialogflow/google-cloud-dialogflow/pom.xml b/java-dialogflow/google-cloud-dialogflow/pom.xml index c74e68a7572a..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 + 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 + 4.91.0 google-cloud-dialogflow diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml index 99d9d1ed4fb1..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 + 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 + 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 cbb26bbf3844..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 + 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 + 4.91.0 diff --git a/java-dialogflow/pom.xml b/java-dialogflow/pom.xml index f0406eb4b8e4..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 + 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 + 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 + 4.91.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.188.0 + 0.189.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.188.0 + 0.189.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.90.0 + 4.91.0 com.google.cloud google-cloud-dialogflow - 4.90.0 + 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 c6ed9edb6add..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 + 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 + 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 c81cb63c9436..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 + 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 + 4.91.0 diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 8c53ca88c1b5..d4435adffc9b 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 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-discoveryengine:0.79.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.79.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.79.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 7fd3e50cae26..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 + 0.81.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-discoveryengine - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.80.0 + 0.81.0 diff --git a/java-discoveryengine/google-cloud-discoveryengine/pom.xml b/java-discoveryengine/google-cloud-discoveryengine/pom.xml index db8f4b7c0897..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 + 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 + 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 60fe6aa13d26..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 + 0.81.0 grpc-google-cloud-discoveryengine-v1 GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0 + 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 2a6f57e1a2c3..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 + 0.81.0 grpc-google-cloud-discoveryengine-v1alpha GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0 + 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 2537a97af3d4..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 + 0.81.0 grpc-google-cloud-discoveryengine-v1beta GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0 + 0.81.0 diff --git a/java-discoveryengine/pom.xml b/java-discoveryengine/pom.xml index 50ffcfae1fff..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-discoveryengine - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.80.0 + 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 97633068f68d..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 + 0.81.0 proto-google-cloud-discoveryengine-v1 Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0 + 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 5e46fe530aef..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 + 0.81.0 proto-google-cloud-discoveryengine-v1alpha Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0 + 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 29278900f603..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 + 0.81.0 proto-google-cloud-discoveryengine-v1beta Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0 + 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/google-cloud-distributedcloudedge-bom/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml index ff22e7abbcbf..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 + 0.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.81.0 + 0.82.0 diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml index 5b8077073f09..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 + 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 + 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 6096f041c64d..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 + 0.82.0 grpc-google-cloud-distributedcloudedge-v1 GRPC library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.81.0 + 0.82.0 diff --git a/java-distributedcloudedge/pom.xml b/java-distributedcloudedge/pom.xml index 818a96bbbc44..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.81.0 + 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 7cc5d297778b..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 + 0.82.0 proto-google-cloud-distributedcloudedge-v1 Proto library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.81.0 + 0.82.0 diff --git a/java-dlp/google-cloud-dlp-bom/pom.xml b/java-dlp/google-cloud-dlp-bom/pom.xml index 195c541d24a5..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 + 3.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-dlp - 3.88.0 + 3.89.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.88.0 + 3.89.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 3.88.0 + 3.89.0 diff --git a/java-dlp/google-cloud-dlp/pom.xml b/java-dlp/google-cloud-dlp/pom.xml index 6f49fa871b36..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 + 3.89.0 jar Google Cloud DLP Java idiomatic client for Google Cloud DLP com.google.cloud google-cloud-dlp-parent - 3.88.0 + 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 d53d7ea6f96c..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 + 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 + 3.89.0 diff --git a/java-dlp/pom.xml b/java-dlp/pom.xml index 3ecac374cdf5..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 + 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 + 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 + 3.89.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.88.0 + 3.89.0 com.google.cloud google-cloud-dlp - 3.88.0 + 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 1abef1300f8a..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 + 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 + 3.89.0 diff --git a/java-dms/google-cloud-dms-bom/pom.xml b/java-dms/google-cloud-dms-bom/pom.xml index 2949499adc17..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 + 2.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dms - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.83.0 + 2.84.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.83.0 + 2.84.0 diff --git a/java-dms/google-cloud-dms/pom.xml b/java-dms/google-cloud-dms/pom.xml index 7554187f7c00..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 + 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 + 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 6b488017141e..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 + 2.84.0 grpc-google-cloud-dms-v1 GRPC library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.83.0 + 2.84.0 diff --git a/java-dms/pom.xml b/java-dms/pom.xml index 2b626b3d78a7..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-dms - 2.83.0 + 2.84.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.83.0 + 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 bb531cdbb875..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 + 2.84.0 proto-google-cloud-dms-v1 Proto library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.83.0 + 2.84.0 diff --git a/java-dns/README.md b/java-dns/README.md index eba026ec3f60..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.82.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.82.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.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "2.83.0" ``` diff --git a/java-dns/pom.xml b/java-dns/pom.xml index 025fad6743cd..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml 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 51e5c6aa85f1..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 + 2.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -21,27 +21,27 @@ com.google.cloud google-cloud-document-ai - 2.88.0 + 2.89.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.100.0 + 0.101.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.88.0 + 2.89.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.100.0 + 0.101.0 com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.88.0 + 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 a20e6f7ac219..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 + 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 + 2.89.0 google-cloud-document-ai 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 5bf68650a22b..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 + 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 + 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 ce08b5f629d7..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 + 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 + 2.89.0 diff --git a/java-document-ai/pom.xml b/java-document-ai/pom.xml index d74b20481e89..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 + 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 + 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 + 2.89.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.88.0 + 2.89.0 com.google.cloud google-cloud-document-ai - 2.88.0 + 2.89.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.100.0 + 0.101.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.100.0 + 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 1eef73efcb9b..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 + 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 + 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 70a873fb358a..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 + 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 + 2.89.0 diff --git a/java-domains/google-cloud-domains-bom/pom.xml b/java-domains/google-cloud-domains-bom/pom.xml index fe10f469da46..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 + 1.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-domains - 1.81.0 + 1.82.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.81.0 + 1.82.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.81.0 + 1.82.0 diff --git a/java-domains/google-cloud-domains/pom.xml b/java-domains/google-cloud-domains/pom.xml index 67fe88a9b5ce..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 + 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 + 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 01e1dacf673e..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 + 1.82.0 grpc-google-cloud-domains-v1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0 + 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 9e968325c3bd..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 + 0.90.0 grpc-google-cloud-domains-v1alpha2 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0 + 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 f46bc3add87c..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 + 0.90.0 grpc-google-cloud-domains-v1beta1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0 + 1.82.0 diff --git a/java-domains/pom.xml b/java-domains/pom.xml index 343426946565..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-domains - 1.81.0 + 1.82.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.81.0 + 1.82.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.81.0 + 1.82.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.89.0 + 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 e46f924a80be..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 + 1.82.0 proto-google-cloud-domains-v1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0 + 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 e56204ca107e..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 + 0.90.0 proto-google-cloud-domains-v1alpha2 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0 + 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 0cf9388ee14a..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 + 0.90.0 proto-google-cloud-domains-v1beta1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0 + 1.82.0 diff --git a/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml index 5cc36f8502c8..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 + 0.53.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-edgenetwork - 0.52.0 + 0.53.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.52.0 + 0.53.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.52.0 + 0.53.0 diff --git a/java-edgenetwork/google-cloud-edgenetwork/pom.xml b/java-edgenetwork/google-cloud-edgenetwork/pom.xml index 62eace8930d8..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 + 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 + 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 df329d5b3007..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 + 0.53.0 grpc-google-cloud-edgenetwork-v1 GRPC library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.52.0 + 0.53.0 diff --git a/java-edgenetwork/pom.xml b/java-edgenetwork/pom.xml index 8778c0bf5949..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-edgenetwork - 0.52.0 + 0.53.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.52.0 + 0.53.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.52.0 + 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 462882c12330..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 + 0.53.0 proto-google-cloud-edgenetwork-v1 Proto library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.52.0 + 0.53.0 diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml index b3525edffa8d..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 + 0.81.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.80.0 + 0.81.0 diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml index d235cd2d9c86..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 + 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 + 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 f22c229e830e..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 + 0.81.0 grpc-google-cloud-enterpriseknowledgegraph-v1 GRPC library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.80.0 + 0.81.0 diff --git a/java-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/pom.xml index 8726eeeb359c..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.80.0 + 0.81.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.80.0 + 0.81.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.80.0 + 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 33b8e7d3fdca..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 + 0.81.0 proto-google-cloud-enterpriseknowledgegraph-v1 Proto library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.80.0 + 0.81.0 diff --git a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml index 1aa82602c9ce..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 + 0.206.0-beta pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-errorreporting - 0.205.0-beta + 0.206.0-beta com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.171.0 + 0.172.0 diff --git a/java-errorreporting/google-cloud-errorreporting/pom.xml b/java-errorreporting/google-cloud-errorreporting/pom.xml index 6390c6841618..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 + 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 + 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 5f6f84b641a5..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 + 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 + 0.206.0-beta diff --git a/java-errorreporting/pom.xml b/java-errorreporting/pom.xml index dcb291f66783..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-errorreporting - 0.205.0-beta + 0.206.0-beta com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.171.0 + 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 55696b4bce61..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 + 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 + 0.206.0-beta 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 cddcca741e42..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-essential-contacts - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.84.0 + 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 11a7c7572356..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 + 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 + 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 edb402ab1398..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 + 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 + 2.85.0 diff --git a/java-essential-contacts/pom.xml b/java-essential-contacts/pom.xml index 7d3fc659ae91..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-essential-contacts - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.84.0 + 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 e944c8570bb5..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 + 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 + 2.85.0 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 6512965016e2..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 + 0.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.84.0 + 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 1f75895c19cf..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 + 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 + 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 11181f88677d..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 + 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 + 0.85.0 diff --git a/java-eventarc-publishing/pom.xml b/java-eventarc-publishing/pom.xml index ab9bdd0a5871..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.84.0 + 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 bcc5769272cd..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 + 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 + 0.85.0 diff --git a/java-eventarc/google-cloud-eventarc-bom/pom.xml b/java-eventarc/google-cloud-eventarc-bom/pom.xml index d207cdf8e693..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 + 1.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-eventarc - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.84.0 + 1.85.0 diff --git a/java-eventarc/google-cloud-eventarc/pom.xml b/java-eventarc/google-cloud-eventarc/pom.xml index 190dfcc48bb2..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 + 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 + 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 22e581ddb6a7..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 + 1.85.0 grpc-google-cloud-eventarc-v1 GRPC library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.84.0 + 1.85.0 diff --git a/java-eventarc/pom.xml b/java-eventarc/pom.xml index dbbe20b881e1..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-eventarc - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.84.0 + 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 985314139aca..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 + 1.85.0 proto-google-cloud-eventarc-v1 Proto library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.84.0 + 1.85.0 diff --git a/java-filestore/google-cloud-filestore-bom/pom.xml b/java-filestore/google-cloud-filestore-bom/pom.xml index efa0da820631..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 + 1.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-filestore - 1.85.0 + 1.86.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.85.0 + 1.86.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.85.0 + 1.86.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.87.0 + 0.88.0 diff --git a/java-filestore/google-cloud-filestore/pom.xml b/java-filestore/google-cloud-filestore/pom.xml index ca4d92a04428..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 + 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 + 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 c340d5aa8422..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 + 1.86.0 grpc-google-cloud-filestore-v1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.85.0 + 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 f9492ae0f8b6..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 + 0.88.0 grpc-google-cloud-filestore-v1beta1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.85.0 + 1.86.0 diff --git a/java-filestore/pom.xml b/java-filestore/pom.xml index b3d06767d696..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-filestore - 1.85.0 + 1.86.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.85.0 + 1.86.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.85.0 + 1.86.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.87.0 + 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 0f3d7d65eb3a..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 + 1.86.0 proto-google-cloud-filestore-v1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.85.0 + 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 171ec382b9fe..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 + 0.88.0 proto-google-cloud-filestore-v1beta1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.85.0 + 1.86.0 diff --git a/java-financialservices/google-cloud-financialservices-bom/pom.xml b/java-financialservices/google-cloud-financialservices-bom/pom.xml index 3dc414f320ce..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 + 0.26.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-financialservices - 0.25.0 + 0.26.0 com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.25.0 + 0.26.0 com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.25.0 + 0.26.0 diff --git a/java-financialservices/google-cloud-financialservices/pom.xml b/java-financialservices/google-cloud-financialservices/pom.xml index 2f82e7f2b06f..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 + 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 + 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 9245509bb467..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 + 0.26.0 grpc-google-cloud-financialservices-v1 GRPC library for google-cloud-financialservices com.google.cloud google-cloud-financialservices-parent - 0.25.0 + 0.26.0 diff --git a/java-financialservices/pom.xml b/java-financialservices/pom.xml index 1e00e70e59ed..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-financialservices - 0.25.0 + 0.26.0 com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.25.0 + 0.26.0 com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.25.0 + 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 d7671bd33026..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 + 0.26.0 proto-google-cloud-financialservices-v1 Proto library for google-cloud-financialservices com.google.cloud google-cloud-financialservices-parent - 0.25.0 + 0.26.0 diff --git a/java-functions/google-cloud-functions-bom/pom.xml b/java-functions/google-cloud-functions-bom/pom.xml index 5fa36152c823..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 + 2.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-functions - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.86.0 + 2.87.0 diff --git a/java-functions/google-cloud-functions/pom.xml b/java-functions/google-cloud-functions/pom.xml index 37c867612b37..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 + 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 + 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 54ee973dd6a8..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 + 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 + 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 07ef5eade24a..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 + 2.87.0 grpc-google-cloud-functions-v2 GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0 + 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 89d63eb9a109..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 + 2.87.0 grpc-google-cloud-functions-v2alpha GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0 + 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 a8c9a6e5be12..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 + 2.87.0 grpc-google-cloud-functions-v2beta GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0 + 2.87.0 diff --git a/java-functions/pom.xml b/java-functions/pom.xml index 4069455ae1b9..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-functions - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.86.0 + 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 401069a42c35..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 + 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 + 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 f2e01bf67792..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 + 2.87.0 proto-google-cloud-functions-v2 Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0 + 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 58a19a05eb28..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 + 2.87.0 proto-google-cloud-functions-v2alpha Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0 + 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 65e337057b13..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 + 2.87.0 proto-google-cloud-functions-v2beta Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0 + 2.87.0 diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml index 4f6d44fedbf6..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 + 0.40.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-gdchardwaremanagement - 0.39.0 + 0.40.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.39.0 + 0.40.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.39.0 + 0.40.0 diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml index af959d899f4c..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 + 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 + 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 9675a4ce19a9..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 + 0.40.0 grpc-google-cloud-gdchardwaremanagement-v1alpha GRPC library for google-cloud-gdchardwaremanagement com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.39.0 + 0.40.0 diff --git a/java-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/pom.xml index 33ec0453ce53..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gdchardwaremanagement - 0.39.0 + 0.40.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.39.0 + 0.40.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.39.0 + 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 bfb419325e2a..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 + 0.40.0 proto-google-cloud-gdchardwaremanagement-v1alpha Proto library for google-cloud-gdchardwaremanagement com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.39.0 + 0.40.0 diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics-bom/pom.xml b/java-geminidataanalytics/google-cloud-geminidataanalytics-bom/pom.xml index d204bc0a3eaf..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 + 0.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-geminidataanalytics - 0.12.0 + 0.13.0 com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1beta - 0.12.0 + 0.13.0 com.google.api.grpc proto-google-cloud-geminidataanalytics-v1beta - 0.12.0 + 0.13.0 diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/pom.xml b/java-geminidataanalytics/google-cloud-geminidataanalytics/pom.xml index cf3902c929c3..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 + 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 + 0.13.0 google-cloud-geminidataanalytics diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/pom.xml b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/pom.xml index 466787374a9d..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 + 0.13.0 grpc-google-cloud-geminidataanalytics-v1beta GRPC library for google-cloud-geminidataanalytics com.google.cloud google-cloud-geminidataanalytics-parent - 0.12.0 + 0.13.0 diff --git a/java-geminidataanalytics/pom.xml b/java-geminidataanalytics/pom.xml index 7a631ad63a0b..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-geminidataanalytics - 0.12.0 + 0.13.0 com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1beta - 0.12.0 + 0.13.0 com.google.api.grpc proto-google-cloud-geminidataanalytics-v1beta - 0.12.0 + 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 0846857f80c4..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 + 0.13.0 proto-google-cloud-geminidataanalytics-v1beta Proto library for google-cloud-geminidataanalytics com.google.cloud google-cloud-geminidataanalytics-parent - 0.12.0 + 0.13.0 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 0972ec2a27f6..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 + 0.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-backup - 0.83.0 + 0.84.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.83.0 + 0.84.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.83.0 + 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 ffc34cee9377..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 + 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 + 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 bef408d35fac..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 + 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 + 0.84.0 diff --git a/java-gke-backup/pom.xml b/java-gke-backup/pom.xml index 7492dc70f16c..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-backup - 0.83.0 + 0.84.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.83.0 + 0.84.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.83.0 + 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 4115091f467d..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 + 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 + 0.84.0 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 4ed4fd99e678..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 + 0.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,12 +27,12 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.85.0 + 0.86.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.85.0 + 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 956a5b04c703..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 + 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 + 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 e662d5c3ea3c..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.85.0 + 0.86.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.85.0 + 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 515a5bd58d14..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 + 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 + 0.86.0 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 b874255f2a5d..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 + 0.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.83.0 + 0.84.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.83.0 + 0.84.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.83.0 + 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 77c6c5c8a1db..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 + 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 + 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 0ede720048e3..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 + 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 + 0.84.0 diff --git a/java-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/pom.xml index 787814e04e89..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.83.0 + 0.84.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.83.0 + 0.84.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.83.0 + 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 6d52e91afc88..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 + 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 + 0.84.0 diff --git a/java-gkehub/google-cloud-gkehub-bom/pom.xml b/java-gkehub/google-cloud-gkehub-bom/pom.xml index 374a491886a5..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 + 1.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-gkehub - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.90.0 + 0.91.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.90.0 + 0.91.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.90.0 + 0.91.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.90.0 + 0.91.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.90.0 + 0.91.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.90.0 + 0.91.0 diff --git a/java-gkehub/google-cloud-gkehub/pom.xml b/java-gkehub/google-cloud-gkehub/pom.xml index e92142f9bb14..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 + 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 + 1.85.0 google-cloud-gkehub diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml index 6121f8961c10..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 + 1.85.0 grpc-google-cloud-gkehub-v1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0 + 1.85.0 diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml index d68f0ab412c9..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 + 0.91.0 grpc-google-cloud-gkehub-v1alpha GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0 + 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 571a51c6a20b..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 + 0.91.0 grpc-google-cloud-gkehub-v1beta GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0 + 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 10e099836d2a..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 + 0.91.0 grpc-google-cloud-gkehub-v1beta1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0 + 1.85.0 diff --git a/java-gkehub/pom.xml b/java-gkehub/pom.xml index 34bdd4ad3ee3..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-gkehub - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.90.0 + 0.91.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.90.0 + 0.91.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.90.0 + 0.91.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.90.0 + 0.91.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.90.0 + 0.91.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.90.0 + 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 d1bce7207fda..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 + 1.85.0 proto-google-cloud-gkehub-v1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0 + 1.85.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml index 3781ed428f3c..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 + 0.91.0 proto-google-cloud-gkehub-v1alpha Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0 + 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 5a495c07659a..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 + 0.91.0 proto-google-cloud-gkehub-v1beta Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0 + 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 cbfdbe6577a3..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 + 0.91.0 proto-google-cloud-gkehub-v1beta1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0 + 1.85.0 diff --git a/java-gkerecommender/google-cloud-gkerecommender-bom/pom.xml b/java-gkerecommender/google-cloud-gkerecommender-bom/pom.xml index a0e16f297bc8..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 + 0.5.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-gkerecommender - 0.4.0 + 0.5.0 com.google.api.grpc grpc-google-cloud-gkerecommender-v1 - 0.4.0 + 0.5.0 com.google.api.grpc proto-google-cloud-gkerecommender-v1 - 0.4.0 + 0.5.0 diff --git a/java-gkerecommender/google-cloud-gkerecommender/pom.xml b/java-gkerecommender/google-cloud-gkerecommender/pom.xml index c70f838b3197..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 + 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 + 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 c2cc31b0a91a..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 + 0.5.0 grpc-google-cloud-gkerecommender-v1 GRPC library for google-cloud-gkerecommender com.google.cloud google-cloud-gkerecommender-parent - 0.4.0 + 0.5.0 diff --git a/java-gkerecommender/pom.xml b/java-gkerecommender/pom.xml index b552a64ed6ba..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gkerecommender - 0.4.0 + 0.5.0 com.google.api.grpc grpc-google-cloud-gkerecommender-v1 - 0.4.0 + 0.5.0 com.google.api.grpc proto-google-cloud-gkerecommender-v1 - 0.4.0 + 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 f7cee83d69a9..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 + 0.5.0 proto-google-cloud-gkerecommender-v1 Proto library for google-cloud-gkerecommender com.google.cloud google-cloud-gkerecommender-parent - 0.4.0 + 0.5.0 diff --git a/java-grafeas/pom.xml b/java-grafeas/pom.xml index 9216ddaeff08..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 + 2.86.0 jar Grafeas Client @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml 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 c3ea546dd4b7..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-apps-script-type-protos - 2.84.0 + 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 d445edba3ebb..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 + 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 + 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 42f7c8572745..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 + 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 + 2.85.0 diff --git a/java-gsuite-addons/pom.xml b/java-gsuite-addons/pom.xml index 2ae258385d42..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-apps-script-type-protos - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.84.0 + 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 1424bd3edff4..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 + 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 + 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 e72b5c0ec2c0..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 + 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 + 2.85.0 diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster-bom/pom.xml b/java-hypercomputecluster/google-cloud-hypercomputecluster-bom/pom.xml index 8087c71f4567..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 + 0.5.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-hypercomputecluster - 0.4.0 + 0.5.0 com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1beta - 0.4.0 + 0.5.0 com.google.api.grpc proto-google-cloud-hypercomputecluster-v1beta - 0.4.0 + 0.5.0 diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/pom.xml b/java-hypercomputecluster/google-cloud-hypercomputecluster/pom.xml index 1604914b5d3f..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 + 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 + 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 a2f4015dce3c..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 + 0.5.0 grpc-google-cloud-hypercomputecluster-v1beta GRPC library for google-cloud-hypercomputecluster com.google.cloud google-cloud-hypercomputecluster-parent - 0.4.0 + 0.5.0 diff --git a/java-hypercomputecluster/pom.xml b/java-hypercomputecluster/pom.xml index 8c9d6932755d..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-hypercomputecluster - 0.4.0 + 0.5.0 com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1beta - 0.4.0 + 0.5.0 com.google.api.grpc proto-google-cloud-hypercomputecluster-v1beta - 0.4.0 + 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 4722d797041a..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 + 0.5.0 proto-google-cloud-hypercomputecluster-v1beta Proto library for google-cloud-hypercomputecluster com.google.cloud google-cloud-hypercomputecluster-parent - 0.4.0 + 0.5.0 diff --git a/java-iam-admin/google-iam-admin-bom/pom.xml b/java-iam-admin/google-iam-admin-bom/pom.xml index 909d2b8bee06..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 + 3.80.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-iam-admin - 3.79.0 + 3.80.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.79.0 + 3.80.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.79.0 + 3.80.0 diff --git a/java-iam-admin/google-iam-admin/pom.xml b/java-iam-admin/google-iam-admin/pom.xml index d92fdcf5a371..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 + 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 + 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 4b1bd85a1842..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 + 3.80.0 grpc-google-iam-admin-v1 GRPC library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.79.0 + 3.80.0 diff --git a/java-iam-admin/pom.xml b/java-iam-admin/pom.xml index 7ba7e8c1b271..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-iam-admin - 3.79.0 + 3.80.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.79.0 + 3.80.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.79.0 + 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 a99550bbfd17..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 + 3.80.0 proto-google-iam-admin-v1 Proto library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.79.0 + 3.80.0 diff --git a/java-iam/google-iam-policy-bom/pom.xml b/java-iam/google-iam-policy-bom/pom.xml index 650835bbb614..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 + 1.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,7 +27,7 @@ com.google.cloud google-iam-policy - 1.82.0 + 1.83.0 diff --git a/java-iam/google-iam-policy/pom.xml b/java-iam/google-iam-policy/pom.xml index 5ac8c2b336f6..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 + 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 + 1.83.0 google-iam-policy diff --git a/java-iam/pom.xml b/java-iam/pom.xml index b8df6d8bc167..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml index 1b70a03986e8..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-iamcredentials - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.84.0 + 2.85.0 diff --git a/java-iamcredentials/google-cloud-iamcredentials/pom.xml b/java-iamcredentials/google-cloud-iamcredentials/pom.xml index c1fc5ee7c638..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 + 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 + 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 92a82fff3112..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 + 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 + 2.85.0 diff --git a/java-iamcredentials/pom.xml b/java-iamcredentials/pom.xml index 65fa47aef25d..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 + 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 + 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 + 2.85.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-iamcredentials - 2.84.0 + 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 488274a4e199..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 + 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 + 2.85.0 diff --git a/java-iap/google-cloud-iap-bom/pom.xml b/java-iap/google-cloud-iap-bom/pom.xml index d467a75b293e..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 + 0.41.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-iap - 0.40.0 + 0.41.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.40.0 + 0.41.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.40.0 + 0.41.0 diff --git a/java-iap/google-cloud-iap/pom.xml b/java-iap/google-cloud-iap/pom.xml index e96de9ebebbd..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 + 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 + 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 419f0d61360c..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 + 0.41.0 grpc-google-cloud-iap-v1 GRPC library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.40.0 + 0.41.0 diff --git a/java-iap/pom.xml b/java-iap/pom.xml index c4bd498e4e3e..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-iap - 0.40.0 + 0.41.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.40.0 + 0.41.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.40.0 + 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 e1fb96fb87cc..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 + 0.41.0 proto-google-cloud-iap-v1 Proto library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.40.0 + 0.41.0 diff --git a/java-ids/google-cloud-ids-bom/pom.xml b/java-ids/google-cloud-ids-bom/pom.xml index 4363007d6832..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 + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-ids - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.83.0 + 1.84.0 diff --git a/java-ids/google-cloud-ids/pom.xml b/java-ids/google-cloud-ids/pom.xml index 3bab2261ee9b..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 + 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 + 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 6b0d5033ab05..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 + 1.84.0 grpc-google-cloud-ids-v1 GRPC library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.83.0 + 1.84.0 diff --git a/java-ids/pom.xml b/java-ids/pom.xml index 70fa5d10c793..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-ids - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.83.0 + 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 23c94b4df3a3..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 + 1.84.0 proto-google-cloud-ids-v1 Proto library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.83.0 + 1.84.0 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 425415f46495..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 + 0.62.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-infra-manager - 0.61.0 + 0.62.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.61.0 + 0.62.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.61.0 + 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 2880160a4634..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 + 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 + 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 abda54bcd582..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 + 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 + 0.62.0 diff --git a/java-infra-manager/pom.xml b/java-infra-manager/pom.xml index 204955902683..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-infra-manager - 0.61.0 + 0.62.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.61.0 + 0.62.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.61.0 + 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 233e8def849c..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 + 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 + 0.62.0 diff --git a/java-iot/google-cloud-iot-bom/pom.xml b/java-iot/google-cloud-iot-bom/pom.xml index ccc14f1c3854..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 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-iot - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-iot-v1 - 2.84.0 + 2.85.0 diff --git a/java-iot/google-cloud-iot/pom.xml b/java-iot/google-cloud-iot/pom.xml index f338e87c81fe..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 + 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 + 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 0f11062ee3bf..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 + 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 + 2.85.0 diff --git a/java-iot/pom.xml b/java-iot/pom.xml index 6ae0cbae1450..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 + 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 + 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 + 2.85.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-iot - 2.84.0 + 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 d033e6299fb6..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 + 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 + 2.85.0 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 de0c78282eba..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 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-issue-resolution - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1 - 1.12.0 + 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 033ea274c576..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 + 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 + 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 b170b44da1f3..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 + 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 + 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 3755ab2e278a..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 + 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 + 1.13.0 diff --git a/java-java-shopping-merchant-issue-resolution/pom.xml b/java-java-shopping-merchant-issue-resolution/pom.xml index 0e7df5fbd651..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-issue-resolution - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 1.12.0 + 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 3200af25be8b..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 + 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 + 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 35bac0a2a1f7..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 + 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 + 1.13.0 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 de981c5f5183..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 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-order-tracking - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1 - 1.12.0 + 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 c78f4b5891f3..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 + 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 + 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 0d3a550dc412..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 + 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 + 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 7d3f703ab8bc..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 + 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 + 1.13.0 diff --git a/java-java-shopping-merchant-order-tracking/pom.xml b/java-java-shopping-merchant-order-tracking/pom.xml index 55aedc57d1b2..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-order-tracking - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 1.12.0 + 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 3af7b631e8a2..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 + 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 + 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 e591eb180adb..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 + 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 + 1.13.0 diff --git a/java-kms/README.md b/java-kms/README.md index 2a0a1ecc2880..51be38d781e1 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 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-kms:2.86.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.86.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.86.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 fa55a3be4c6b..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 + 2.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-kms - 2.87.0 + 2.88.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.178.0 + 0.179.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.178.0 + 0.179.0 diff --git a/java-kms/google-cloud-kms/pom.xml b/java-kms/google-cloud-kms/pom.xml index 6c35ea0eb72c..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 + 2.88.0 jar Google Cloud KMS Java idiomatic client for Google Cloud KMS com.google.cloud google-cloud-kms-parent - 2.87.0 + 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 9136752139db..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 + 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 + 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 6e604b8d06fc..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 + 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 + 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 + 0.179.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.178.0 + 0.179.0 com.google.cloud google-cloud-kms - 2.87.0 + 2.88.0 com.google.cloud google-cloud-kms-bom - 2.87.0 + 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 052355e4a564..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 + 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 + 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/google-cloud-kmsinventory-bom/pom.xml b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml index fa8e91b4035c..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 + 0.74.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-kmsinventory - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.73.0 + 0.74.0
diff --git a/java-kmsinventory/google-cloud-kmsinventory/pom.xml b/java-kmsinventory/google-cloud-kmsinventory/pom.xml index a772ae81a7bb..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 + 0.74.0 jar Google KMS Inventory API KMS Inventory API KMS Inventory API. com.google.cloud google-cloud-kmsinventory-parent - 0.73.0 + 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 bae6f07bc442..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 + 0.74.0 grpc-google-cloud-kmsinventory-v1 GRPC library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.73.0 + 0.74.0 diff --git a/java-kmsinventory/pom.xml b/java-kmsinventory/pom.xml index aa4a823d0727..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-kmsinventory - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.178.0 + 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 e53d4135549e..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 + 0.74.0 proto-google-cloud-kmsinventory-v1 Proto library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.73.0 + 0.74.0 diff --git a/java-language/google-cloud-language-bom/pom.xml b/java-language/google-cloud-language-bom/pom.xml index 7c35815e246e..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 + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-language - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.172.0 + 0.173.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.172.0 + 0.173.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.85.0 + 2.86.0 diff --git a/java-language/google-cloud-language/pom.xml b/java-language/google-cloud-language/pom.xml index b1e798c22d8f..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 + 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 + 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 00a9f8761377..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 + 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 + 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 7d5603802330..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 + 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 + 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 78dae24b59cc..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 + 2.86.0 grpc-google-cloud-language-v2 GRPC library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.85.0 + 2.86.0 diff --git a/java-language/pom.xml b/java-language/pom.xml index 16c83d1c0ea2..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 + 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 + 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 + 2.86.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.172.0 + 0.173.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.172.0 + 0.173.0 com.google.cloud google-cloud-language - 2.85.0 + 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 7c90c1aea432..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 + 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 + 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 2183d0c13b1a..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 + 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 + 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 040f75d460c5..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 + 2.86.0 proto-google-cloud-language-v2 Proto library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.85.0 + 2.86.0 diff --git a/java-licensemanager/google-cloud-licensemanager-bom/pom.xml b/java-licensemanager/google-cloud-licensemanager-bom/pom.xml index a2720fbea9ff..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 + 0.18.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-licensemanager - 0.17.0 + 0.18.0 com.google.api.grpc grpc-google-cloud-licensemanager-v1 - 0.17.0 + 0.18.0 com.google.api.grpc proto-google-cloud-licensemanager-v1 - 0.17.0 + 0.18.0 diff --git a/java-licensemanager/google-cloud-licensemanager/pom.xml b/java-licensemanager/google-cloud-licensemanager/pom.xml index 5261eddc5445..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 + 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 + 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 e639efd9f9e5..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 + 0.18.0 grpc-google-cloud-licensemanager-v1 GRPC library for google-cloud-licensemanager com.google.cloud google-cloud-licensemanager-parent - 0.17.0 + 0.18.0 diff --git a/java-licensemanager/pom.xml b/java-licensemanager/pom.xml index 5147bb0b710a..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-licensemanager - 0.17.0 + 0.18.0 com.google.api.grpc grpc-google-cloud-licensemanager-v1 - 0.17.0 + 0.18.0 com.google.api.grpc proto-google-cloud-licensemanager-v1 - 0.17.0 + 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 f42d63e6355c..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 + 0.18.0 proto-google-cloud-licensemanager-v1 Proto library for google-cloud-licensemanager com.google.cloud google-cloud-licensemanager-parent - 0.17.0 + 0.18.0 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 468fe25bd97d..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 + 0.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-life-sciences - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.86.0 + 0.87.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.86.0 + 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 6c0c850cff4d..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 + 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 + 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 1a208d7e03ff..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 + 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 + 0.87.0 diff --git a/java-life-sciences/pom.xml b/java-life-sciences/pom.xml index d55e31c942e4..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-life-sciences - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.86.0 + 0.87.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.86.0 + 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 3a6805c182ba..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 + 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 + 0.87.0 diff --git a/java-locationfinder/google-cloud-locationfinder-bom/pom.xml b/java-locationfinder/google-cloud-locationfinder-bom/pom.xml index 5fee451d9800..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 + 0.10.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-locationfinder - 0.9.0 + 0.10.0 com.google.api.grpc grpc-google-cloud-locationfinder-v1 - 0.9.0 + 0.10.0 com.google.api.grpc proto-google-cloud-locationfinder-v1 - 0.9.0 + 0.10.0 diff --git a/java-locationfinder/google-cloud-locationfinder/pom.xml b/java-locationfinder/google-cloud-locationfinder/pom.xml index 8750cf5462a4..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 + 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 + 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 50851995ffaa..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 + 0.10.0 grpc-google-cloud-locationfinder-v1 GRPC library for google-cloud-locationfinder com.google.cloud google-cloud-locationfinder-parent - 0.9.0 + 0.10.0 diff --git a/java-locationfinder/pom.xml b/java-locationfinder/pom.xml index 953af1e84998..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 + 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-locationfinder - 0.9.0 + 0.10.0 com.google.api.grpc grpc-google-cloud-locationfinder-v1 - 0.9.0 + 0.10.0 com.google.api.grpc proto-google-cloud-locationfinder-v1 - 0.9.0 + 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 66df725667c8..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 + 0.10.0 proto-google-cloud-locationfinder-v1 Proto library for google-cloud-locationfinder com.google.cloud google-cloud-locationfinder-parent - 0.9.0 + 0.10.0 diff --git a/java-logging/google-cloud-logging-bom/pom.xml b/java-logging/google-cloud-logging-bom/pom.xml index 66b5d165c93a..f3c7aa9ed339 100644 --- a/java-logging/google-cloud-logging-bom/pom.xml +++ b/java-logging/google-cloud-logging-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-logging-bom - 3.25.0 + 3.26.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -53,17 +53,17 @@ com.google.cloud google-cloud-logging - 3.25.0 + 3.26.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.114.0 + 0.115.0 com.google.api.grpc proto-google-cloud-logging-v2 - 0.114.0 + 0.115.0 diff --git a/java-logging/google-cloud-logging/pom.xml b/java-logging/google-cloud-logging/pom.xml index 251456366671..964a9a6c4e37 100644 --- a/java-logging/google-cloud-logging/pom.xml +++ b/java-logging/google-cloud-logging/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-logging - 3.25.0 + 3.26.0 jar Google Cloud Logging https://github.com/googleapis/java-logging @@ -11,7 +11,7 @@ com.google.cloud google-cloud-logging-parent - 3.25.0 + 3.26.0 google-cloud-logging diff --git a/java-logging/grpc-google-cloud-logging-v2/pom.xml b/java-logging/grpc-google-cloud-logging-v2/pom.xml index 1971fcb2e315..ab86ac7a6eff 100644 --- a/java-logging/grpc-google-cloud-logging-v2/pom.xml +++ b/java-logging/grpc-google-cloud-logging-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.114.0 + 0.115.0 grpc-google-cloud-logging-v2 GRPC library for grpc-google-cloud-logging-v2 com.google.cloud google-cloud-logging-parent - 3.25.0 + 3.26.0 diff --git a/java-logging/pom.xml b/java-logging/pom.xml index 646f51bcd59a..29c14877b27d 100644 --- a/java-logging/pom.xml +++ b/java-logging/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-logging-parent pom - 3.25.0 + 3.26.0 Google Cloud Logging Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -62,17 +62,17 @@ com.google.api.grpc proto-google-cloud-logging-v2 - 0.114.0 + 0.115.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.114.0 + 0.115.0 com.google.cloud google-cloud-logging - 3.25.0 + 3.26.0 diff --git a/java-logging/proto-google-cloud-logging-v2/pom.xml b/java-logging/proto-google-cloud-logging-v2/pom.xml index 0027ec940c48..d1c82d266657 100644 --- a/java-logging/proto-google-cloud-logging-v2/pom.xml +++ b/java-logging/proto-google-cloud-logging-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-logging-v2 - 0.114.0 + 0.115.0 proto-google-cloud-logging-v2 PROTO library for proto-google-cloud-logging-v2 com.google.cloud google-cloud-logging-parent - 3.25.0 + 3.26.0 diff --git a/java-logging/samples/snapshot/pom.xml b/java-logging/samples/snapshot/pom.xml index 65c781921f77..306e9e884a30 100644 --- a/java-logging/samples/snapshot/pom.xml +++ b/java-logging/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-logging - 3.25.0 + 3.26.0 diff --git a/java-lustre/google-cloud-lustre-bom/pom.xml b/java-lustre/google-cloud-lustre-bom/pom.xml index 8fe8bc16de49..015fd3852c25 100644 --- a/java-lustre/google-cloud-lustre-bom/pom.xml +++ b/java-lustre/google-cloud-lustre-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-lustre-bom - 0.24.0 + 0.25.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-lustre - 0.24.0 + 0.25.0 com.google.api.grpc grpc-google-cloud-lustre-v1 - 0.24.0 + 0.25.0 com.google.api.grpc proto-google-cloud-lustre-v1 - 0.24.0 + 0.25.0 diff --git a/java-lustre/google-cloud-lustre/pom.xml b/java-lustre/google-cloud-lustre/pom.xml index 4d4f254157cb..3e848a2e70e4 100644 --- a/java-lustre/google-cloud-lustre/pom.xml +++ b/java-lustre/google-cloud-lustre/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-lustre - 0.24.0 + 0.25.0 jar Google Google Cloud Managed Lustre API Google Cloud Managed Lustre API Google Cloud Managed Lustre delivers a high-performance, fully managed parallel file system optimized for AI and HPC applications. com.google.cloud google-cloud-lustre-parent - 0.24.0 + 0.25.0 google-cloud-lustre diff --git a/java-lustre/grpc-google-cloud-lustre-v1/pom.xml b/java-lustre/grpc-google-cloud-lustre-v1/pom.xml index 5bfbbed3c1dc..270147d90e21 100644 --- a/java-lustre/grpc-google-cloud-lustre-v1/pom.xml +++ b/java-lustre/grpc-google-cloud-lustre-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-lustre-v1 - 0.24.0 + 0.25.0 grpc-google-cloud-lustre-v1 GRPC library for google-cloud-lustre com.google.cloud google-cloud-lustre-parent - 0.24.0 + 0.25.0 diff --git a/java-lustre/pom.xml b/java-lustre/pom.xml index c88b81077d6f..18e369751184 100644 --- a/java-lustre/pom.xml +++ b/java-lustre/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-lustre-parent pom - 0.24.0 + 0.25.0 Google Google Cloud Managed Lustre API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-lustre - 0.24.0 + 0.25.0 com.google.api.grpc grpc-google-cloud-lustre-v1 - 0.24.0 + 0.25.0 com.google.api.grpc proto-google-cloud-lustre-v1 - 0.24.0 + 0.25.0 diff --git a/java-lustre/proto-google-cloud-lustre-v1/pom.xml b/java-lustre/proto-google-cloud-lustre-v1/pom.xml index 88cd59979f7e..1a5bd5d8a6f3 100644 --- a/java-lustre/proto-google-cloud-lustre-v1/pom.xml +++ b/java-lustre/proto-google-cloud-lustre-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-lustre-v1 - 0.24.0 + 0.25.0 proto-google-cloud-lustre-v1 Proto library for google-cloud-lustre com.google.cloud google-cloud-lustre-parent - 0.24.0 + 0.25.0 diff --git a/java-maintenance/google-cloud-maintenance-bom/pom.xml b/java-maintenance/google-cloud-maintenance-bom/pom.xml index a91222d576a1..d35aa4e45818 100644 --- a/java-maintenance/google-cloud-maintenance-bom/pom.xml +++ b/java-maintenance/google-cloud-maintenance-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-maintenance-bom - 0.18.0 + 0.19.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.cloud google-cloud-maintenance - 0.18.0 + 0.19.0 com.google.api.grpc grpc-google-cloud-maintenance-v1beta - 0.18.0 + 0.19.0 com.google.api.grpc grpc-google-cloud-maintenance-v1 - 0.18.0 + 0.19.0 com.google.api.grpc proto-google-cloud-maintenance-v1beta - 0.18.0 + 0.19.0 com.google.api.grpc proto-google-cloud-maintenance-v1 - 0.18.0 + 0.19.0 diff --git a/java-maintenance/google-cloud-maintenance/pom.xml b/java-maintenance/google-cloud-maintenance/pom.xml index 2d3684564748..a181b22edf77 100644 --- a/java-maintenance/google-cloud-maintenance/pom.xml +++ b/java-maintenance/google-cloud-maintenance/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-maintenance - 0.18.0 + 0.19.0 jar Google Maintenance API Maintenance API The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. com.google.cloud google-cloud-maintenance-parent - 0.18.0 + 0.19.0 google-cloud-maintenance diff --git a/java-maintenance/grpc-google-cloud-maintenance-v1/pom.xml b/java-maintenance/grpc-google-cloud-maintenance-v1/pom.xml index 91315c245c46..b988daf2d885 100644 --- a/java-maintenance/grpc-google-cloud-maintenance-v1/pom.xml +++ b/java-maintenance/grpc-google-cloud-maintenance-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-maintenance-v1 - 0.18.0 + 0.19.0 grpc-google-cloud-maintenance-v1 GRPC library for google-cloud-maintenance com.google.cloud google-cloud-maintenance-parent - 0.18.0 + 0.19.0 diff --git a/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml b/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml index d542034b383c..2f1616e4bae8 100644 --- a/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml +++ b/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-maintenance-v1beta - 0.18.0 + 0.19.0 grpc-google-cloud-maintenance-v1beta GRPC library for google-cloud-maintenance com.google.cloud google-cloud-maintenance-parent - 0.18.0 + 0.19.0 diff --git a/java-maintenance/pom.xml b/java-maintenance/pom.xml index 147d18f9bf9b..d70ffdab6cee 100644 --- a/java-maintenance/pom.xml +++ b/java-maintenance/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-maintenance-parent pom - 0.18.0 + 0.19.0 Google Maintenance API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-maintenance - 0.18.0 + 0.19.0 com.google.api.grpc proto-google-cloud-maintenance-v1 - 0.18.0 + 0.19.0 com.google.api.grpc grpc-google-cloud-maintenance-v1 - 0.18.0 + 0.19.0 com.google.api.grpc grpc-google-cloud-maintenance-v1beta - 0.18.0 + 0.19.0 com.google.api.grpc proto-google-cloud-maintenance-v1beta - 0.18.0 + 0.19.0 diff --git a/java-maintenance/proto-google-cloud-maintenance-v1/pom.xml b/java-maintenance/proto-google-cloud-maintenance-v1/pom.xml index 2750cbfb20db..3f12f6131679 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1/pom.xml +++ b/java-maintenance/proto-google-cloud-maintenance-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-maintenance-v1 - 0.18.0 + 0.19.0 proto-google-cloud-maintenance-v1 Proto library for google-cloud-maintenance com.google.cloud google-cloud-maintenance-parent - 0.18.0 + 0.19.0 diff --git a/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml b/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml index f1473bd3021b..187c5e87cbf1 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml +++ b/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-maintenance-v1beta - 0.18.0 + 0.19.0 proto-google-cloud-maintenance-v1beta Proto library for google-cloud-maintenance com.google.cloud google-cloud-maintenance-parent - 0.18.0 + 0.19.0 diff --git a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml index 9484ccd46947..f3d1eaf35d25 100644 --- a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-managed-identities-bom - 1.82.0 + 1.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-managed-identities - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.82.0 + 1.83.0 diff --git a/java-managed-identities/google-cloud-managed-identities/pom.xml b/java-managed-identities/google-cloud-managed-identities/pom.xml index 61e2ce3259bf..01c8b50d5ee7 100644 --- a/java-managed-identities/google-cloud-managed-identities/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-managed-identities - 1.82.0 + 1.83.0 jar Google Managed Service for Microsoft Active Directory is a highly available, hardened Google Cloud service running actual Microsoft AD that enables you to manage authentication and authorization for your AD-dependent workloads, automate AD server maintenance and security configuration, and connect your on-premises AD domain to the cloud. com.google.cloud google-cloud-managed-identities-parent - 1.82.0 + 1.83.0 google-cloud-managed-identities diff --git a/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml b/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml index 1d00180bb904..8c301a10622f 100644 --- a/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml +++ b/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.82.0 + 1.83.0 grpc-google-cloud-managed-identities-v1 GRPC library for google-cloud-managed-identities com.google.cloud google-cloud-managed-identities-parent - 1.82.0 + 1.83.0 diff --git a/java-managed-identities/pom.xml b/java-managed-identities/pom.xml index 079c5987c74f..5843550cbd54 100644 --- a/java-managed-identities/pom.xml +++ b/java-managed-identities/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-managed-identities-parent pom - 1.82.0 + 1.83.0 Google Managed Service for Microsoft Active Directory Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-managed-identities - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.82.0 + 1.83.0 diff --git a/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml b/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml index 9c9591423b98..cf3839847ff9 100644 --- a/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml +++ b/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.82.0 + 1.83.0 proto-google-cloud-managed-identities-v1 Proto library for google-cloud-managed-identities com.google.cloud google-cloud-managed-identities-parent - 1.82.0 + 1.83.0 diff --git a/java-managedkafka/google-cloud-managedkafka-bom/pom.xml b/java-managedkafka/google-cloud-managedkafka-bom/pom.xml index 7cf420365909..3b4f3f90a349 100644 --- a/java-managedkafka/google-cloud-managedkafka-bom/pom.xml +++ b/java-managedkafka/google-cloud-managedkafka-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-managedkafka-bom - 0.40.0 + 0.41.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-managedkafka - 0.40.0 + 0.41.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.40.0 + 0.41.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.40.0 + 0.41.0 diff --git a/java-managedkafka/google-cloud-managedkafka/pom.xml b/java-managedkafka/google-cloud-managedkafka/pom.xml index eddf9bc31840..a6ac2e67a8e6 100644 --- a/java-managedkafka/google-cloud-managedkafka/pom.xml +++ b/java-managedkafka/google-cloud-managedkafka/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-managedkafka - 0.40.0 + 0.41.0 jar Google Managed Service for Apache Kafka API Managed Service for Apache Kafka API Manage Apache Kafka clusters and resources. com.google.cloud google-cloud-managedkafka-parent - 0.40.0 + 0.41.0 google-cloud-managedkafka diff --git a/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml b/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml index b4178b2545a3..fd793f849058 100644 --- a/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml +++ b/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.40.0 + 0.41.0 grpc-google-cloud-managedkafka-v1 GRPC library for google-cloud-managedkafka com.google.cloud google-cloud-managedkafka-parent - 0.40.0 + 0.41.0 diff --git a/java-managedkafka/pom.xml b/java-managedkafka/pom.xml index 2cbfbe996152..44527e833e4b 100644 --- a/java-managedkafka/pom.xml +++ b/java-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-managedkafka-parent pom - 0.40.0 + 0.41.0 Google Managed Service for Apache Kafka API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-managedkafka - 0.40.0 + 0.41.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.40.0 + 0.41.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.40.0 + 0.41.0 diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml b/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml index d84a14aefab7..8aa69bb62e43 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.40.0 + 0.41.0 proto-google-cloud-managedkafka-v1 Proto library for google-cloud-managedkafka com.google.cloud google-cloud-managedkafka-parent - 0.40.0 + 0.41.0 diff --git a/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml b/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml index b889cd29e7c1..4a019dca0fe9 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml +++ b/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-addressvalidation-bom - 0.78.0 + 0.79.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-addressvalidation - 0.78.0 + 0.79.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.78.0 + 0.79.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.78.0 + 0.79.0 diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml b/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml index d1746864777a..ef08c6349add 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml +++ b/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-addressvalidation - 0.78.0 + 0.79.0 jar Google Address Validation API Address Validation API The Address Validation API allows developers to verify the accuracy of addresses. Given an address, it returns information about the correctness of the components of the parsed address, a geocode, and a verdict on the deliverability of the parsed address. com.google.maps google-maps-addressvalidation-parent - 0.78.0 + 0.79.0 google-maps-addressvalidation diff --git a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml index ec7762eba35a..40a090513bc9 100644 --- a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml +++ b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.78.0 + 0.79.0 grpc-google-maps-addressvalidation-v1 GRPC library for google-maps-addressvalidation com.google.maps google-maps-addressvalidation-parent - 0.78.0 + 0.79.0 diff --git a/java-maps-addressvalidation/pom.xml b/java-maps-addressvalidation/pom.xml index 826f26fba822..b791f62af85d 100644 --- a/java-maps-addressvalidation/pom.xml +++ b/java-maps-addressvalidation/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-addressvalidation-parent pom - 0.78.0 + 0.79.0 Google Address Validation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-addressvalidation - 0.78.0 + 0.79.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.78.0 + 0.79.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.78.0 + 0.79.0 diff --git a/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml b/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml index e10c5969892e..6fd9880c0d2a 100644 --- a/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml +++ b/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.78.0 + 0.79.0 proto-google-maps-addressvalidation-v1 Proto library for google-maps-addressvalidation com.google.maps google-maps-addressvalidation-parent - 0.78.0 + 0.79.0 diff --git a/java-maps-area-insights/google-maps-area-insights-bom/pom.xml b/java-maps-area-insights/google-maps-area-insights-bom/pom.xml index 708934788b4d..5d7bb288a3d0 100644 --- a/java-maps-area-insights/google-maps-area-insights-bom/pom.xml +++ b/java-maps-area-insights/google-maps-area-insights-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-area-insights-bom - 0.35.0 + 0.36.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-area-insights - 0.35.0 + 0.36.0 com.google.maps.api.grpc grpc-google-maps-area-insights-v1 - 0.35.0 + 0.36.0 com.google.maps.api.grpc proto-google-maps-area-insights-v1 - 0.35.0 + 0.36.0 diff --git a/java-maps-area-insights/google-maps-area-insights/pom.xml b/java-maps-area-insights/google-maps-area-insights/pom.xml index c5e5bde8e5d8..ec19777c177c 100644 --- a/java-maps-area-insights/google-maps-area-insights/pom.xml +++ b/java-maps-area-insights/google-maps-area-insights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-area-insights - 0.35.0 + 0.36.0 jar Google Places Insights API Places Insights API Places Insights API. com.google.maps google-maps-area-insights-parent - 0.35.0 + 0.36.0 google-maps-area-insights diff --git a/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml b/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml index 71df64599728..c0b9cd94e835 100644 --- a/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml +++ b/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-area-insights-v1 - 0.35.0 + 0.36.0 grpc-google-maps-area-insights-v1 GRPC library for google-maps-area-insights com.google.maps google-maps-area-insights-parent - 0.35.0 + 0.36.0 diff --git a/java-maps-area-insights/pom.xml b/java-maps-area-insights/pom.xml index 3405355d5295..c21d22172b7a 100644 --- a/java-maps-area-insights/pom.xml +++ b/java-maps-area-insights/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-area-insights-parent pom - 0.35.0 + 0.36.0 Google Places Insights API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-area-insights - 0.35.0 + 0.36.0 com.google.maps.api.grpc grpc-google-maps-area-insights-v1 - 0.35.0 + 0.36.0 com.google.maps.api.grpc proto-google-maps-area-insights-v1 - 0.35.0 + 0.36.0 diff --git a/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml b/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml index f6ce7147d520..cbaf8211650c 100644 --- a/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml +++ b/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-area-insights-v1 - 0.35.0 + 0.36.0 proto-google-maps-area-insights-v1 Proto library for google-maps-area-insights com.google.maps google-maps-area-insights-parent - 0.35.0 + 0.36.0 diff --git a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml index 15a34daa51bf..74353292c2f8 100644 --- a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml +++ b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-fleetengine-delivery-bom - 0.31.0 + 0.32.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-fleetengine-delivery - 0.31.0 + 0.32.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-delivery-v1 - 0.31.0 + 0.32.0 com.google.maps.api.grpc proto-google-maps-fleetengine-delivery-v1 - 0.31.0 + 0.32.0 diff --git a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml index 0e9aa3361c3f..b8304be5a5d0 100644 --- a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml +++ b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-fleetengine-delivery - 0.31.0 + 0.32.0 jar Google Last Mile Fleet Solution Delivery API Last Mile Fleet Solution Delivery API Enables Fleet Engine for access to the On Demand Rides and Deliveries and Last Mile Fleet Solution APIs. Customer's use of Google Maps Content in the Cloud Logging Services is subject to the Google Maps Platform Terms of Service located at https://cloud.google.com/maps-platform/terms. com.google.maps google-maps-fleetengine-delivery-parent - 0.31.0 + 0.32.0 google-maps-fleetengine-delivery diff --git a/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml b/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml index 353d04e39c92..121abef53781 100644 --- a/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml +++ b/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-delivery-v1 - 0.31.0 + 0.32.0 grpc-google-maps-fleetengine-delivery-v1 GRPC library for google-maps-fleetengine-delivery com.google.maps google-maps-fleetengine-delivery-parent - 0.31.0 + 0.32.0 diff --git a/java-maps-fleetengine-delivery/pom.xml b/java-maps-fleetengine-delivery/pom.xml index 51466f084c84..15cc35a48ca2 100644 --- a/java-maps-fleetengine-delivery/pom.xml +++ b/java-maps-fleetengine-delivery/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-fleetengine-delivery-parent pom - 0.31.0 + 0.32.0 Google Last Mile Fleet Solution 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-fleetengine-delivery - 0.31.0 + 0.32.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-delivery-v1 - 0.31.0 + 0.32.0 com.google.maps.api.grpc proto-google-maps-fleetengine-delivery-v1 - 0.31.0 + 0.32.0 diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml index 51a3a3da421c..06e920387efc 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-fleetengine-delivery-v1 - 0.31.0 + 0.32.0 proto-google-maps-fleetengine-delivery-v1 Proto library for google-maps-fleetengine-delivery com.google.maps google-maps-fleetengine-delivery-parent - 0.31.0 + 0.32.0 diff --git a/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml b/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml index 688e57aa6ab1..b37b262ee7dd 100644 --- a/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml +++ b/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-fleetengine-bom - 0.31.0 + 0.32.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-fleetengine - 0.31.0 + 0.32.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-v1 - 0.31.0 + 0.32.0 com.google.maps.api.grpc proto-google-maps-fleetengine-v1 - 0.31.0 + 0.32.0 diff --git a/java-maps-fleetengine/google-maps-fleetengine/pom.xml b/java-maps-fleetengine/google-maps-fleetengine/pom.xml index 7be727736249..eff25d89dde8 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/pom.xml +++ b/java-maps-fleetengine/google-maps-fleetengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-fleetengine - 0.31.0 + 0.32.0 jar Google Local Rides and Deliveries API Local Rides and Deliveries API Enables Fleet Engine for access to the On Demand Rides and Deliveries and Last Mile Fleet Solution APIs. Customer's use of Google Maps Content in the Cloud Logging Services is subject to the Google Maps Platform Terms of Service located at https://cloud.google.com/maps-platform/terms. com.google.maps google-maps-fleetengine-parent - 0.31.0 + 0.32.0 google-maps-fleetengine diff --git a/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml b/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml index 3b753bae25f8..25458bd2a6eb 100644 --- a/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml +++ b/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-v1 - 0.31.0 + 0.32.0 grpc-google-maps-fleetengine-v1 GRPC library for google-maps-fleetengine com.google.maps google-maps-fleetengine-parent - 0.31.0 + 0.32.0 diff --git a/java-maps-fleetengine/pom.xml b/java-maps-fleetengine/pom.xml index dec823d6cc78..f20fcd9fbade 100644 --- a/java-maps-fleetengine/pom.xml +++ b/java-maps-fleetengine/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-fleetengine-parent pom - 0.31.0 + 0.32.0 Google Local Rides and Deliveries API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-fleetengine - 0.31.0 + 0.32.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-v1 - 0.31.0 + 0.32.0 com.google.maps.api.grpc proto-google-maps-fleetengine-v1 - 0.31.0 + 0.32.0 diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml index 05548c956450..9f6f3aad8c9b 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-fleetengine-v1 - 0.31.0 + 0.32.0 proto-google-maps-fleetengine-v1 Proto library for google-maps-fleetengine com.google.maps google-maps-fleetengine-parent - 0.31.0 + 0.32.0 diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml index 586c0c7025bd..d00e62afeccf 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-mapsplatformdatasets-bom - 0.73.0 + 0.74.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-mapsplatformdatasets - 0.73.0 + 0.74.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.73.0 + 0.74.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.73.0 + 0.74.0 diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml index 1ddc3bf56bd4..1b0296735c9d 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.maps google-maps-mapsplatformdatasets - 0.73.0 + 0.74.0 jar Google Maps Platform Datasets API Maps Platform Datasets API The Maps Platform Datasets API enables developers to ingest geospatially-tied datasets @@ -11,7 +11,7 @@ com.google.maps google-maps-mapsplatformdatasets-parent - 0.73.0 + 0.74.0 google-maps-mapsplatformdatasets diff --git a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml index d73d49848442..1997b2f79066 100644 --- a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml +++ b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.73.0 + 0.74.0 grpc-google-maps-mapsplatformdatasets-v1 GRPC library for google-maps-mapsplatformdatasets com.google.maps google-maps-mapsplatformdatasets-parent - 0.73.0 + 0.74.0 diff --git a/java-maps-mapsplatformdatasets/pom.xml b/java-maps-mapsplatformdatasets/pom.xml index 7e70a7aa31c2..1f0df66859be 100644 --- a/java-maps-mapsplatformdatasets/pom.xml +++ b/java-maps-mapsplatformdatasets/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-mapsplatformdatasets-parent pom - 0.73.0 + 0.74.0 Google Maps Platform Datasets API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-mapsplatformdatasets - 0.73.0 + 0.74.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.73.0 + 0.74.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.73.0 + 0.74.0 diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml index 0d8df188716e..aa0be170092e 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.73.0 + 0.74.0 proto-google-maps-mapsplatformdatasets-v1 Proto library for google-maps-mapsplatformdatasets com.google.maps google-maps-mapsplatformdatasets-parent - 0.73.0 + 0.74.0 diff --git a/java-maps-places/README.md b/java-maps-places/README.md index 9c4b7ce7277c..ba1ba0f27fb3 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-places - 0.54.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.54.0' +implementation 'com.google.maps:google-maps-places:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.54.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.55.0" ``` ## Authentication @@ -162,7 +162,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-places/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.55.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-maps-places/google-maps-places-bom/pom.xml b/java-maps-places/google-maps-places-bom/pom.xml index e826170a2b60..7d98206fa368 100644 --- a/java-maps-places/google-maps-places-bom/pom.xml +++ b/java-maps-places/google-maps-places-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-places-bom - 0.55.0 + 0.56.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-places - 0.55.0 + 0.56.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.55.0 + 0.56.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.55.0 + 0.56.0 diff --git a/java-maps-places/google-maps-places/pom.xml b/java-maps-places/google-maps-places/pom.xml index 5f8f94c358b4..d10272ab70c7 100644 --- a/java-maps-places/google-maps-places/pom.xml +++ b/java-maps-places/google-maps-places/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.maps google-maps-places - 0.55.0 + 0.56.0 jar Google Places API (New) Places API (New) The Places API allows developers to access a variety of search and @@ -11,7 +11,7 @@ com.google.maps google-maps-places-parent - 0.55.0 + 0.56.0 google-maps-places diff --git a/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json b/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json index e4dd23ff4850..23aa9b8d6f88 100644 --- a/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json +++ b/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json @@ -1196,6 +1196,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.places.v1.Place$GoogleMapsLinks", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.Place$GoogleMapsLinks$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.places.v1.Place$NeighborhoodSummary", "queryAllDeclaredConstructors": true, diff --git a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java index 11602288f253..2d13deff1d92 100644 --- a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java +++ b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java @@ -325,6 +325,7 @@ public void getPlaceTest() throws Exception { .addAllTypes(new ArrayList()) .setPrimaryType("primaryType-867549092") .setPrimaryTypeDisplayName(LocalizedText.newBuilder().build()) + .setGoogleMapsTypeLabel(LocalizedText.newBuilder().build()) .setNationalPhoneNumber("nationalPhoneNumber-1432446651") .setInternationalPhoneNumber("internationalPhoneNumber-74125591") .setFormattedAddress("formattedAddress1036810136") @@ -385,6 +386,7 @@ public void getPlaceTest() throws Exception { .addAllContainingPlaces(new ArrayList()) .setPureServiceAreaBusiness(true) .setAddressDescriptor(AddressDescriptor.newBuilder().build()) + .setGoogleMapsLinks(Place.GoogleMapsLinks.newBuilder().build()) .setPriceRange(PriceRange.newBuilder().build()) .setReviewSummary(Place.ReviewSummary.newBuilder().build()) .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) @@ -441,6 +443,7 @@ public void getPlaceTest2() throws Exception { .addAllTypes(new ArrayList()) .setPrimaryType("primaryType-867549092") .setPrimaryTypeDisplayName(LocalizedText.newBuilder().build()) + .setGoogleMapsTypeLabel(LocalizedText.newBuilder().build()) .setNationalPhoneNumber("nationalPhoneNumber-1432446651") .setInternationalPhoneNumber("internationalPhoneNumber-74125591") .setFormattedAddress("formattedAddress1036810136") @@ -501,6 +504,7 @@ public void getPlaceTest2() throws Exception { .addAllContainingPlaces(new ArrayList()) .setPureServiceAreaBusiness(true) .setAddressDescriptor(AddressDescriptor.newBuilder().build()) + .setGoogleMapsLinks(Place.GoogleMapsLinks.newBuilder().build()) .setPriceRange(PriceRange.newBuilder().build()) .setReviewSummary(Place.ReviewSummary.newBuilder().build()) .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) diff --git a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java index 0941b61d4b57..7eccb497ed78 100644 --- a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java +++ b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java @@ -335,6 +335,7 @@ public void getPlaceTest() throws Exception { .addAllTypes(new ArrayList()) .setPrimaryType("primaryType-867549092") .setPrimaryTypeDisplayName(LocalizedText.newBuilder().build()) + .setGoogleMapsTypeLabel(LocalizedText.newBuilder().build()) .setNationalPhoneNumber("nationalPhoneNumber-1432446651") .setInternationalPhoneNumber("internationalPhoneNumber-74125591") .setFormattedAddress("formattedAddress1036810136") @@ -395,6 +396,7 @@ public void getPlaceTest() throws Exception { .addAllContainingPlaces(new ArrayList()) .setPureServiceAreaBusiness(true) .setAddressDescriptor(AddressDescriptor.newBuilder().build()) + .setGoogleMapsLinks(Place.GoogleMapsLinks.newBuilder().build()) .setPriceRange(PriceRange.newBuilder().build()) .setReviewSummary(Place.ReviewSummary.newBuilder().build()) .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) @@ -445,6 +447,7 @@ public void getPlaceTest2() throws Exception { .addAllTypes(new ArrayList()) .setPrimaryType("primaryType-867549092") .setPrimaryTypeDisplayName(LocalizedText.newBuilder().build()) + .setGoogleMapsTypeLabel(LocalizedText.newBuilder().build()) .setNationalPhoneNumber("nationalPhoneNumber-1432446651") .setInternationalPhoneNumber("internationalPhoneNumber-74125591") .setFormattedAddress("formattedAddress1036810136") @@ -505,6 +508,7 @@ public void getPlaceTest2() throws Exception { .addAllContainingPlaces(new ArrayList()) .setPureServiceAreaBusiness(true) .setAddressDescriptor(AddressDescriptor.newBuilder().build()) + .setGoogleMapsLinks(Place.GoogleMapsLinks.newBuilder().build()) .setPriceRange(PriceRange.newBuilder().build()) .setReviewSummary(Place.ReviewSummary.newBuilder().build()) .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) diff --git a/java-maps-places/grpc-google-maps-places-v1/pom.xml b/java-maps-places/grpc-google-maps-places-v1/pom.xml index c584051f6e8e..3f88b0881dcc 100644 --- a/java-maps-places/grpc-google-maps-places-v1/pom.xml +++ b/java-maps-places/grpc-google-maps-places-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.55.0 + 0.56.0 grpc-google-maps-places-v1 GRPC library for google-maps-places com.google.maps google-maps-places-parent - 0.55.0 + 0.56.0 diff --git a/java-maps-places/pom.xml b/java-maps-places/pom.xml index eeafc02f5b0d..23d5094f9a04 100644 --- a/java-maps-places/pom.xml +++ b/java-maps-places/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-places-parent pom - 0.55.0 + 0.56.0 Google Places API (New) Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-places - 0.55.0 + 0.56.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.55.0 + 0.56.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.55.0 + 0.56.0 diff --git a/java-maps-places/proto-google-maps-places-v1/pom.xml b/java-maps-places/proto-google-maps-places-v1/pom.xml index df23b8719b75..c2d1fbc446e6 100644 --- a/java-maps-places/proto-google-maps-places-v1/pom.xml +++ b/java-maps-places/proto-google-maps-places-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.55.0 + 0.56.0 proto-google-maps-places-v1 Proto library for google-maps-places com.google.maps google-maps-places-parent - 0.55.0 + 0.56.0 diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlock.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlock.java index 615142e3c166..a9683fb2cd06 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlock.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlock.java @@ -52,7 +52,7 @@ private ContentBlock(com.google.protobuf.GeneratedMessage.Builder builder) { } private ContentBlock() { - topic_ = ""; + referencedPlaces_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -71,59 +71,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; - public static final int TOPIC_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object topic_ = ""; - - /** - * - * - *
-   * The topic of the content, for example "overview" or "restaurant".
-   * 
- * - * string topic = 1; - * - * @return The topic. - */ - @java.lang.Override - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; - } - } - - /** - * - * - *
-   * The topic of the content, for example "overview" or "restaurant".
-   * 
- * - * string topic = 1; - * - * @return The bytes for topic. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int CONTENT_FIELD_NUMBER = 2; private com.google.type.LocalizedText content_; @@ -173,69 +120,76 @@ public com.google.type.LocalizedTextOrBuilder getContentOrBuilder() { return content_ == null ? com.google.type.LocalizedText.getDefaultInstance() : content_; } - public static final int REFERENCES_FIELD_NUMBER = 3; - private com.google.maps.places.v1.References references_; + public static final int REFERENCED_PLACES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList referencedPlaces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * References that are related to this block of content.
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
    * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } * - * @return Whether the references field is set. + * @return A list containing the referencedPlaces. */ - @java.lang.Override - public boolean hasReferences() { - return ((bitField0_ & 0x00000002) != 0); + public com.google.protobuf.ProtocolStringList getReferencedPlacesList() { + return referencedPlaces_; } /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * References that are related to this block of content.
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
    * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } * - * @return The references. + * @return The count of referencedPlaces. */ - @java.lang.Override - public com.google.maps.places.v1.References getReferences() { - return references_ == null - ? com.google.maps.places.v1.References.getDefaultInstance() - : references_; + public int getReferencedPlacesCount() { + return referencedPlaces_.size(); } /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
+   * 
+ * + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The referencedPlaces at the given index. + */ + public java.lang.String getReferencedPlaces(int index) { + return referencedPlaces_.get(index); + } + + /** + * * - * References that are related to this block of content. + *
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
    * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the referencedPlaces at the given index. */ - @java.lang.Override - public com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder() { - return references_ == null - ? com.google.maps.places.v1.References.getDefaultInstance() - : references_; + public com.google.protobuf.ByteString getReferencedPlacesBytes(int index) { + return referencedPlaces_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -252,14 +206,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, topic_); - } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getContent()); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getReferences()); + for (int i = 0; i < referencedPlaces_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, referencedPlaces_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -270,14 +221,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, topic_); - } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReferences()); + { + int dataSize = 0; + for (int i = 0; i < referencedPlaces_.size(); i++) { + dataSize += computeStringSizeNoTag(referencedPlaces_.getRaw(i)); + } + size += dataSize; + size += 1 * getReferencedPlacesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -294,15 +247,11 @@ public boolean equals(final java.lang.Object obj) { } com.google.maps.places.v1.ContentBlock other = (com.google.maps.places.v1.ContentBlock) obj; - if (!getTopic().equals(other.getTopic())) return false; if (hasContent() != other.hasContent()) return false; if (hasContent()) { if (!getContent().equals(other.getContent())) return false; } - if (hasReferences() != other.hasReferences()) return false; - if (hasReferences()) { - if (!getReferences().equals(other.getReferences())) return false; - } + if (!getReferencedPlacesList().equals(other.getReferencedPlacesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -314,15 +263,13 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getTopic().hashCode(); if (hasContent()) { hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); } - if (hasReferences()) { - hash = (37 * hash) + REFERENCES_FIELD_NUMBER; - hash = (53 * hash) + getReferences().hashCode(); + if (getReferencedPlacesCount() > 0) { + hash = (37 * hash) + REFERENCED_PLACES_FIELD_NUMBER; + hash = (53 * hash) + getReferencedPlacesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -466,7 +413,6 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetContentFieldBuilder(); - internalGetReferencesFieldBuilder(); } } @@ -474,17 +420,12 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; - topic_ = ""; content_ = null; if (contentBuilder_ != null) { contentBuilder_.dispose(); contentBuilder_ = null; } - references_ = null; - if (referencesBuilder_ != null) { - referencesBuilder_.dispose(); - referencesBuilder_ = null; - } + referencedPlaces_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -521,17 +462,14 @@ public com.google.maps.places.v1.ContentBlock buildPartial() { private void buildPartial0(com.google.maps.places.v1.ContentBlock result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.topic_ = topic_; - } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000001) != 0)) { result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.references_ = referencesBuilder_ == null ? references_ : referencesBuilder_.build(); - to_bitField0_ |= 0x00000002; + if (((from_bitField0_ & 0x00000002) != 0)) { + referencedPlaces_.makeImmutable(); + result.referencedPlaces_ = referencedPlaces_; } result.bitField0_ |= to_bitField0_; } @@ -548,16 +486,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.maps.places.v1.ContentBlock other) { if (other == com.google.maps.places.v1.ContentBlock.getDefaultInstance()) return this; - if (!other.getTopic().isEmpty()) { - topic_ = other.topic_; - bitField0_ |= 0x00000001; - onChanged(); - } if (other.hasContent()) { mergeContent(other.getContent()); } - if (other.hasReferences()) { - mergeReferences(other.getReferences()); + if (!other.referencedPlaces_.isEmpty()) { + if (referencedPlaces_.isEmpty()) { + referencedPlaces_ = other.referencedPlaces_; + bitField0_ |= 0x00000002; + } else { + ensureReferencedPlacesIsMutable(); + referencedPlaces_.addAll(other.referencedPlaces_); + } + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -585,25 +525,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 case 18: { input.readMessage(internalGetContentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; break; } // case 18 - case 26: + case 34: { - input.readMessage( - internalGetReferencesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + java.lang.String s = input.readStringRequireUtf8(); + ensureReferencedPlacesIsMutable(); + referencedPlaces_.add(s); break; - } // case 26 + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -623,117 +557,6 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object topic_ = ""; - - /** - * - * - *
-     * The topic of the content, for example "overview" or "restaurant".
-     * 
- * - * string topic = 1; - * - * @return The topic. - */ - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The topic of the content, for example "overview" or "restaurant".
-     * 
- * - * string topic = 1; - * - * @return The bytes for topic. - */ - public com.google.protobuf.ByteString getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The topic of the content, for example "overview" or "restaurant".
-     * 
- * - * string topic = 1; - * - * @param value The topic to set. - * @return This builder for chaining. - */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - topic_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The topic of the content, for example "overview" or "restaurant".
-     * 
- * - * string topic = 1; - * - * @return This builder for chaining. - */ - public Builder clearTopic() { - topic_ = getDefaultInstance().getTopic(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * The topic of the content, for example "overview" or "restaurant".
-     * 
- * - * string topic = 1; - * - * @param value The bytes for topic to set. - * @return This builder for chaining. - */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - topic_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - private com.google.type.LocalizedText content_; private com.google.protobuf.SingleFieldBuilder< com.google.type.LocalizedText, @@ -753,7 +576,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * @return Whether the content field is set. */ public boolean hasContent() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000001) != 0); } /** @@ -793,7 +616,7 @@ public Builder setContent(com.google.type.LocalizedText value) { } else { contentBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -813,7 +636,7 @@ public Builder setContent(com.google.type.LocalizedText.Builder builderForValue) } else { contentBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -829,7 +652,7 @@ public Builder setContent(com.google.type.LocalizedText.Builder builderForValue) */ public Builder mergeContent(com.google.type.LocalizedText value) { if (contentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000001) != 0) && content_ != null && content_ != com.google.type.LocalizedText.getDefaultInstance()) { getContentBuilder().mergeFrom(value); @@ -840,7 +663,7 @@ public Builder mergeContent(com.google.type.LocalizedText value) { contentBuilder_.mergeFrom(value); } if (content_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); } return this; @@ -856,7 +679,7 @@ public Builder mergeContent(com.google.type.LocalizedText value) { * .google.type.LocalizedText content = 2; */ public Builder clearContent() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); content_ = null; if (contentBuilder_ != null) { contentBuilder_.dispose(); @@ -876,7 +699,7 @@ public Builder clearContent() { * .google.type.LocalizedText content = 2; */ public com.google.type.LocalizedText.Builder getContentBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return internalGetContentFieldBuilder().getBuilder(); } @@ -924,137 +747,110 @@ public com.google.type.LocalizedTextOrBuilder getContentOrBuilder() { return contentBuilder_; } - private com.google.maps.places.v1.References references_; - private com.google.protobuf.SingleFieldBuilder< - com.google.maps.places.v1.References, - com.google.maps.places.v1.References.Builder, - com.google.maps.places.v1.ReferencesOrBuilder> - referencesBuilder_; + private com.google.protobuf.LazyStringArrayList referencedPlaces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureReferencedPlacesIsMutable() { + if (!referencedPlaces_.isModifiable()) { + referencedPlaces_ = new com.google.protobuf.LazyStringArrayList(referencedPlaces_); + } + bitField0_ |= 0x00000002; + } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * References that are related to this block of content.
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
      * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * * - * @return Whether the references field is set. + * @return A list containing the referencedPlaces. */ - public boolean hasReferences() { - return ((bitField0_ & 0x00000004) != 0); + public com.google.protobuf.ProtocolStringList getReferencedPlacesList() { + referencedPlaces_.makeImmutable(); + return referencedPlaces_; } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * References that are related to this block of content.
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
      * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * * - * @return The references. + * @return The count of referencedPlaces. */ - public com.google.maps.places.v1.References getReferences() { - if (referencesBuilder_ == null) { - return references_ == null - ? com.google.maps.places.v1.References.getDefaultInstance() - : references_; - } else { - return referencesBuilder_.getMessage(); - } + public int getReferencedPlacesCount() { + return referencedPlaces_.size(); } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * References that are related to this block of content.
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
      * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The referencedPlaces at the given index. */ - public Builder setReferences(com.google.maps.places.v1.References value) { - if (referencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - references_ = value; - } else { - referencesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + public java.lang.String getReferencedPlaces(int index) { + return referencedPlaces_.get(index); } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * References that are related to this block of content.
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
      * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the referencedPlaces at the given index. */ - public Builder setReferences(com.google.maps.places.v1.References.Builder builderForValue) { - if (referencesBuilder_ == null) { - references_ = builderForValue.build(); - } else { - referencesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.protobuf.ByteString getReferencedPlacesBytes(int index) { + return referencedPlaces_.getByteString(index); } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * References that are related to this block of content.
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
      * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The referencedPlaces to set. + * @return This builder for chaining. */ - public Builder mergeReferences(com.google.maps.places.v1.References value) { - if (referencesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && references_ != null - && references_ != com.google.maps.places.v1.References.getDefaultInstance()) { - getReferencesBuilder().mergeFrom(value); - } else { - references_ = value; - } - } else { - referencesBuilder_.mergeFrom(value); - } - if (references_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + public Builder setReferencedPlaces(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureReferencedPlacesIsMutable(); + referencedPlaces_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); return this; } @@ -1062,22 +858,23 @@ public Builder mergeReferences(com.google.maps.places.v1.References value) { * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * References that are related to this block of content.
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
      * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * + * + * @param value The referencedPlaces to add. + * @return This builder for chaining. */ - public Builder clearReferences() { - bitField0_ = (bitField0_ & ~0x00000004); - references_ = null; - if (referencesBuilder_ != null) { - referencesBuilder_.dispose(); - referencesBuilder_ = null; + public Builder addReferencedPlaces(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureReferencedPlacesIsMutable(); + referencedPlaces_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1086,72 +883,69 @@ public Builder clearReferences() { * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * References that are related to this block of content.
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
      * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * + * + * @param values The referencedPlaces to add. + * @return This builder for chaining. */ - public com.google.maps.places.v1.References.Builder getReferencesBuilder() { - bitField0_ |= 0x00000004; + public Builder addAllReferencedPlaces(java.lang.Iterable values) { + ensureReferencedPlacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referencedPlaces_); + bitField0_ |= 0x00000002; onChanged(); - return internalGetReferencesFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * References that are related to this block of content.
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
      * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ - public com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder() { - if (referencesBuilder_ != null) { - return referencesBuilder_.getMessageOrBuilder(); - } else { - return references_ == null - ? com.google.maps.places.v1.References.getDefaultInstance() - : references_; - } + public Builder clearReferencedPlaces() { + referencedPlaces_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * References that are related to this block of content.
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
      * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the referencedPlaces to add. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.maps.places.v1.References, - com.google.maps.places.v1.References.Builder, - com.google.maps.places.v1.ReferencesOrBuilder> - internalGetReferencesFieldBuilder() { - if (referencesBuilder_ == null) { - referencesBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.maps.places.v1.References, - com.google.maps.places.v1.References.Builder, - com.google.maps.places.v1.ReferencesOrBuilder>( - getReferences(), getParentForChildren(), isClean()); - references_ = null; + public Builder addReferencedPlacesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return referencesBuilder_; + checkByteStringIsUtf8(value); + ensureReferencedPlacesIsMutable(); + referencedPlaces_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; } // @@protoc_insertion_point(builder_scope:google.maps.places.v1.ContentBlock) diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockOrBuilder.java index d38ef7c5f697..11ab785bd137 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockOrBuilder.java @@ -26,32 +26,6 @@ public interface ContentBlockOrBuilder // @@protoc_insertion_point(interface_extends:google.maps.places.v1.ContentBlock) com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-   * The topic of the content, for example "overview" or "restaurant".
-   * 
- * - * string topic = 1; - * - * @return The topic. - */ - java.lang.String getTopic(); - - /** - * - * - *
-   * The topic of the content, for example "overview" or "restaurant".
-   * 
- * - * string topic = 1; - * - * @return The bytes for topic. - */ - com.google.protobuf.ByteString getTopicBytes(); - /** * * @@ -93,48 +67,57 @@ public interface ContentBlockOrBuilder * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * References that are related to this block of content.
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
    * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } * - * @return Whether the references field is set. + * @return A list containing the referencedPlaces. */ - boolean hasReferences(); + java.util.List getReferencedPlacesList(); /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * References that are related to this block of content.
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
    * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } * - * @return The references. + * @return The count of referencedPlaces. */ - com.google.maps.places.v1.References getReferences(); + int getReferencedPlacesCount(); /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
+   * 
+ * + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } * - * References that are related to this block of content. + * @param index The index of the element to return. + * @return The referencedPlaces at the given index. + */ + java.lang.String getReferencedPlaces(int index); + + /** + * + * + *
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
    * 
* - * .google.maps.places.v1.References references = 3; + * repeated string referenced_places = 4 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the referencedPlaces at the given index. */ - com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder(); + com.google.protobuf.ByteString getReferencedPlacesBytes(int index); } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockProto.java index 943eb3a027d7..747d027469f6 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockProto.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockProto.java @@ -54,23 +54,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n)google/maps/places/v1/content_block.pr" - + "oto\022\025google.maps.places.v1\032%google/maps/" - + "places/v1/reference.proto\032 google/type/l" - + "ocalized_text.proto\"\201\001\n\014ContentBlock\022\r\n\005" - + "topic\030\001 \001(\t\022+\n\007content\030\002 \001(\0132\032.google.ty" - + "pe.LocalizedText\0225\n\nreferences\030\003 \001(\0132!.g" - + "oogle.maps.places.v1.ReferencesB\242\001\n\031com." - + "google.maps.places.v1B\021ContentBlockProto" - + "P\001Z7cloud.google.com/go/maps/places/apiv" - + "1/placespb;placespb\242\002\006GMPSV1\252\002\025Google.Ma" - + "ps.Places.V1\312\002\025Google\\Maps\\Places\\V1b\006pr" - + "oto3" + + "oto\022\025google.maps.places.v1\032\031google/api/r" + + "esource.proto\032 google/type/localized_tex" + + "t.proto\"x\n\014ContentBlock\022+\n\007content\030\002 \001(\013" + + "2\032.google.type.LocalizedText\022;\n\021referenc" + + "ed_places\030\004 \003(\tB \372A\035\n\033places.googleapis." + + "com/PlaceB\242\001\n\031com.google.maps.places.v1B" + + "\021ContentBlockProtoP\001Z7cloud.google.com/g" + + "o/maps/places/apiv1/placespb;placespb\242\002\006" + + "GMPSV1\252\002\025Google.Maps.Places.V1\312\002\025Google\\" + + "Maps\\Places\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.maps.places.v1.ReferenceProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.type.LocalizedTextProto.getDescriptor(), }); internal_static_google_maps_places_v1_ContentBlock_descriptor = @@ -79,11 +78,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_maps_places_v1_ContentBlock_descriptor, new java.lang.String[] { - "Topic", "Content", "References", + "Content", "ReferencedPlaces", }); descriptor.resolveAllFeaturesImmutable(); - com.google.maps.places.v1.ReferenceProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.type.LocalizedTextProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + 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-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContent.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContent.java index d57b6f493bb4..173960c8848a 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContent.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContent.java @@ -5348,7 +5348,7 @@ public com.google.maps.places.v1.ContextualContent.Justification getDefaultInsta * * *
-   * List of reviews about this place, contexual to the place query.
+   * List of reviews about this place, contextual to the place query.
    * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -5362,7 +5362,7 @@ public java.util.List getReviewsList() { * * *
-   * List of reviews about this place, contexual to the place query.
+   * List of reviews about this place, contextual to the place query.
    * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -5377,7 +5377,7 @@ public java.util.List getReviewsList() { * * *
-   * List of reviews about this place, contexual to the place query.
+   * List of reviews about this place, contextual to the place query.
    * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -5391,7 +5391,7 @@ public int getReviewsCount() { * * *
-   * List of reviews about this place, contexual to the place query.
+   * List of reviews about this place, contextual to the place query.
    * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -5405,7 +5405,7 @@ public com.google.maps.places.v1.Review getReviews(int index) { * * *
-   * List of reviews about this place, contexual to the place query.
+   * List of reviews about this place, contextual to the place query.
    * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -5424,8 +5424,8 @@ public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) * * *
-   * Information (including references) about photos of this place, contexual to
-   * the place query.
+   * Information (including references) about photos of this place, contextual
+   * to the place query.
    * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -5439,8 +5439,8 @@ public java.util.List getPhotosList() { * * *
-   * Information (including references) about photos of this place, contexual to
-   * the place query.
+   * Information (including references) about photos of this place, contextual
+   * to the place query.
    * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -5455,8 +5455,8 @@ public java.util.List getPhotosList() { * * *
-   * Information (including references) about photos of this place, contexual to
-   * the place query.
+   * Information (including references) about photos of this place, contextual
+   * to the place query.
    * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -5470,8 +5470,8 @@ public int getPhotosCount() { * * *
-   * Information (including references) about photos of this place, contexual to
-   * the place query.
+   * Information (including references) about photos of this place, contextual
+   * to the place query.
    * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -5485,8 +5485,8 @@ public com.google.maps.places.v1.Photo getPhotos(int index) { * * *
-   * Information (including references) about photos of this place, contexual to
-   * the place query.
+   * Information (including references) about photos of this place, contextual
+   * to the place query.
    * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6113,7 +6113,7 @@ private void ensureReviewsIsMutable() { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6130,7 +6130,7 @@ public java.util.List getReviewsList() { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6147,7 +6147,7 @@ public int getReviewsCount() { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6164,7 +6164,7 @@ public com.google.maps.places.v1.Review getReviews(int index) { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6187,7 +6187,7 @@ public Builder setReviews(int index, com.google.maps.places.v1.Review value) { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6207,7 +6207,7 @@ public Builder setReviews(int index, com.google.maps.places.v1.Review.Builder bu * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6230,7 +6230,7 @@ public Builder addReviews(com.google.maps.places.v1.Review value) { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6253,7 +6253,7 @@ public Builder addReviews(int index, com.google.maps.places.v1.Review value) { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6273,7 +6273,7 @@ public Builder addReviews(com.google.maps.places.v1.Review.Builder builderForVal * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6293,7 +6293,7 @@ public Builder addReviews(int index, com.google.maps.places.v1.Review.Builder bu * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6314,7 +6314,7 @@ public Builder addAllReviews( * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6334,7 +6334,7 @@ public Builder clearReviews() { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6354,7 +6354,7 @@ public Builder removeReviews(int index) { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6367,7 +6367,7 @@ public com.google.maps.places.v1.Review.Builder getReviewsBuilder(int index) { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6384,7 +6384,7 @@ public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6402,7 +6402,7 @@ public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6416,7 +6416,7 @@ public com.google.maps.places.v1.Review.Builder addReviewsBuilder() { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6430,7 +6430,7 @@ public com.google.maps.places.v1.Review.Builder addReviewsBuilder(int index) { * * *
-     * List of reviews about this place, contexual to the place query.
+     * List of reviews about this place, contextual to the place query.
      * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -6476,8 +6476,8 @@ private void ensurePhotosIsMutable() { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6494,8 +6494,8 @@ public java.util.List getPhotosList() { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6512,8 +6512,8 @@ public int getPhotosCount() { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6530,8 +6530,8 @@ public com.google.maps.places.v1.Photo getPhotos(int index) { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6554,8 +6554,8 @@ public Builder setPhotos(int index, com.google.maps.places.v1.Photo value) { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6575,8 +6575,8 @@ public Builder setPhotos(int index, com.google.maps.places.v1.Photo.Builder buil * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6599,8 +6599,8 @@ public Builder addPhotos(com.google.maps.places.v1.Photo value) { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6623,8 +6623,8 @@ public Builder addPhotos(int index, com.google.maps.places.v1.Photo value) { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6644,8 +6644,8 @@ public Builder addPhotos(com.google.maps.places.v1.Photo.Builder builderForValue * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6665,8 +6665,8 @@ public Builder addPhotos(int index, com.google.maps.places.v1.Photo.Builder buil * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6687,8 +6687,8 @@ public Builder addAllPhotos( * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6708,8 +6708,8 @@ public Builder clearPhotos() { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6729,8 +6729,8 @@ public Builder removePhotos(int index) { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6743,8 +6743,8 @@ public com.google.maps.places.v1.Photo.Builder getPhotosBuilder(int index) { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6761,8 +6761,8 @@ public com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index) { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6780,8 +6780,8 @@ public com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index) { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6795,8 +6795,8 @@ public com.google.maps.places.v1.Photo.Builder addPhotosBuilder() { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -6810,8 +6810,8 @@ public com.google.maps.places.v1.Photo.Builder addPhotosBuilder(int index) { * * *
-     * Information (including references) about photos of this place, contexual to
-     * the place query.
+     * Information (including references) about photos of this place, contextual
+     * to the place query.
      * 
* * repeated .google.maps.places.v1.Photo photos = 2; diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentOrBuilder.java index 7bec95b57462..d88caa4e9ac5 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentOrBuilder.java @@ -30,7 +30,7 @@ public interface ContextualContentOrBuilder * * *
-   * List of reviews about this place, contexual to the place query.
+   * List of reviews about this place, contextual to the place query.
    * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -41,7 +41,7 @@ public interface ContextualContentOrBuilder * * *
-   * List of reviews about this place, contexual to the place query.
+   * List of reviews about this place, contextual to the place query.
    * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -52,7 +52,7 @@ public interface ContextualContentOrBuilder * * *
-   * List of reviews about this place, contexual to the place query.
+   * List of reviews about this place, contextual to the place query.
    * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -63,7 +63,7 @@ public interface ContextualContentOrBuilder * * *
-   * List of reviews about this place, contexual to the place query.
+   * List of reviews about this place, contextual to the place query.
    * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -74,7 +74,7 @@ public interface ContextualContentOrBuilder * * *
-   * List of reviews about this place, contexual to the place query.
+   * List of reviews about this place, contextual to the place query.
    * 
* * repeated .google.maps.places.v1.Review reviews = 1; @@ -85,8 +85,8 @@ public interface ContextualContentOrBuilder * * *
-   * Information (including references) about photos of this place, contexual to
-   * the place query.
+   * Information (including references) about photos of this place, contextual
+   * to the place query.
    * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -97,8 +97,8 @@ public interface ContextualContentOrBuilder * * *
-   * Information (including references) about photos of this place, contexual to
-   * the place query.
+   * Information (including references) about photos of this place, contextual
+   * to the place query.
    * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -109,8 +109,8 @@ public interface ContextualContentOrBuilder * * *
-   * Information (including references) about photos of this place, contexual to
-   * the place query.
+   * Information (including references) about photos of this place, contextual
+   * to the place query.
    * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -121,8 +121,8 @@ public interface ContextualContentOrBuilder * * *
-   * Information (including references) about photos of this place, contexual to
-   * the place query.
+   * Information (including references) about photos of this place, contextual
+   * to the place query.
    * 
* * repeated .google.maps.places.v1.Photo photos = 2; @@ -133,8 +133,8 @@ public interface ContextualContentOrBuilder * * *
-   * Information (including references) about photos of this place, contexual to
-   * the place query.
+   * Information (including references) about photos of this place, contextual
+   * to the place query.
    * 
* * repeated .google.maps.places.v1.Photo photos = 2; diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java index f1477660d1cf..6a8c49381260 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java @@ -17126,6 +17126,1482 @@ public com.google.maps.places.v1.Place.ContainingPlace getDefaultInstanceForType } } + public interface GoogleMapsLinksOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.GoogleMapsLinks) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A link to show the directions to the place. The link only populates the
+     * destination location and uses the default travel mode `DRIVE`.
+     * 
+ * + * string directions_uri = 1; + * + * @return The directionsUri. + */ + java.lang.String getDirectionsUri(); + + /** + * + * + *
+     * A link to show the directions to the place. The link only populates the
+     * destination location and uses the default travel mode `DRIVE`.
+     * 
+ * + * string directions_uri = 1; + * + * @return The bytes for directionsUri. + */ + com.google.protobuf.ByteString getDirectionsUriBytes(); + + /** + * + * + *
+     * A link to show this place.
+     * 
+ * + * string place_uri = 2; + * + * @return The placeUri. + */ + java.lang.String getPlaceUri(); + + /** + * + * + *
+     * A link to show this place.
+     * 
+ * + * string place_uri = 2; + * + * @return The bytes for placeUri. + */ + com.google.protobuf.ByteString getPlaceUriBytes(); + + /** + * + * + *
+     * A link to write a review for this place on Google Maps.
+     * 
+ * + * string write_a_review_uri = 3; + * + * @return The writeAReviewUri. + */ + java.lang.String getWriteAReviewUri(); + + /** + * + * + *
+     * A link to write a review for this place on Google Maps.
+     * 
+ * + * string write_a_review_uri = 3; + * + * @return The bytes for writeAReviewUri. + */ + com.google.protobuf.ByteString getWriteAReviewUriBytes(); + + /** + * + * + *
+     * A link to show reviews of this place on Google Maps.
+     * 
+ * + * string reviews_uri = 4; + * + * @return The reviewsUri. + */ + java.lang.String getReviewsUri(); + + /** + * + * + *
+     * A link to show reviews of this place on Google Maps.
+     * 
+ * + * string reviews_uri = 4; + * + * @return The bytes for reviewsUri. + */ + com.google.protobuf.ByteString getReviewsUriBytes(); + + /** + * + * + *
+     * A link to show photos of this place on Google Maps.
+     * 
+ * + * string photos_uri = 5; + * + * @return The photosUri. + */ + java.lang.String getPhotosUri(); + + /** + * + * + *
+     * A link to show photos of this place on Google Maps.
+     * 
+ * + * string photos_uri = 5; + * + * @return The bytes for photosUri. + */ + com.google.protobuf.ByteString getPhotosUriBytes(); + } + + /** + * + * + *
+   * Links to trigger different Google Maps actions.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.Place.GoogleMapsLinks} + */ + public static final class GoogleMapsLinks extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.GoogleMapsLinks) + GoogleMapsLinksOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GoogleMapsLinks"); + } + + // Use GoogleMapsLinks.newBuilder() to construct. + private GoogleMapsLinks(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GoogleMapsLinks() { + directionsUri_ = ""; + placeUri_ = ""; + writeAReviewUri_ = ""; + reviewsUri_ = ""; + photosUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_GoogleMapsLinks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_GoogleMapsLinks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.GoogleMapsLinks.class, + com.google.maps.places.v1.Place.GoogleMapsLinks.Builder.class); + } + + public static final int DIRECTIONS_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object directionsUri_ = ""; + + /** + * + * + *
+     * A link to show the directions to the place. The link only populates the
+     * destination location and uses the default travel mode `DRIVE`.
+     * 
+ * + * string directions_uri = 1; + * + * @return The directionsUri. + */ + @java.lang.Override + public java.lang.String getDirectionsUri() { + java.lang.Object ref = directionsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + directionsUri_ = s; + return s; + } + } + + /** + * + * + *
+     * A link to show the directions to the place. The link only populates the
+     * destination location and uses the default travel mode `DRIVE`.
+     * 
+ * + * string directions_uri = 1; + * + * @return The bytes for directionsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirectionsUriBytes() { + java.lang.Object ref = directionsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + directionsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLACE_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object placeUri_ = ""; + + /** + * + * + *
+     * A link to show this place.
+     * 
+ * + * string place_uri = 2; + * + * @return The placeUri. + */ + @java.lang.Override + public java.lang.String getPlaceUri() { + java.lang.Object ref = placeUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placeUri_ = s; + return s; + } + } + + /** + * + * + *
+     * A link to show this place.
+     * 
+ * + * string place_uri = 2; + * + * @return The bytes for placeUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlaceUriBytes() { + java.lang.Object ref = placeUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placeUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WRITE_A_REVIEW_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object writeAReviewUri_ = ""; + + /** + * + * + *
+     * A link to write a review for this place on Google Maps.
+     * 
+ * + * string write_a_review_uri = 3; + * + * @return The writeAReviewUri. + */ + @java.lang.Override + public java.lang.String getWriteAReviewUri() { + java.lang.Object ref = writeAReviewUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + writeAReviewUri_ = s; + return s; + } + } + + /** + * + * + *
+     * A link to write a review for this place on Google Maps.
+     * 
+ * + * string write_a_review_uri = 3; + * + * @return The bytes for writeAReviewUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWriteAReviewUriBytes() { + java.lang.Object ref = writeAReviewUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + writeAReviewUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVIEWS_URI_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object reviewsUri_ = ""; + + /** + * + * + *
+     * A link to show reviews of this place on Google Maps.
+     * 
+ * + * string reviews_uri = 4; + * + * @return The reviewsUri. + */ + @java.lang.Override + public java.lang.String getReviewsUri() { + java.lang.Object ref = reviewsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reviewsUri_ = s; + return s; + } + } + + /** + * + * + *
+     * A link to show reviews of this place on Google Maps.
+     * 
+ * + * string reviews_uri = 4; + * + * @return The bytes for reviewsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReviewsUriBytes() { + java.lang.Object ref = reviewsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reviewsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHOTOS_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object photosUri_ = ""; + + /** + * + * + *
+     * A link to show photos of this place on Google Maps.
+     * 
+ * + * string photos_uri = 5; + * + * @return The photosUri. + */ + @java.lang.Override + public java.lang.String getPhotosUri() { + java.lang.Object ref = photosUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + photosUri_ = s; + return s; + } + } + + /** + * + * + *
+     * A link to show photos of this place on Google Maps.
+     * 
+ * + * string photos_uri = 5; + * + * @return The bytes for photosUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhotosUriBytes() { + java.lang.Object ref = photosUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + photosUri_ = 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(directionsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, directionsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(placeUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, placeUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(writeAReviewUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, writeAReviewUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reviewsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, reviewsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(photosUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, photosUri_); + } + 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(directionsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, directionsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(placeUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, placeUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(writeAReviewUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, writeAReviewUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reviewsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, reviewsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(photosUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, photosUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.Place.GoogleMapsLinks)) { + return super.equals(obj); + } + com.google.maps.places.v1.Place.GoogleMapsLinks other = + (com.google.maps.places.v1.Place.GoogleMapsLinks) obj; + + if (!getDirectionsUri().equals(other.getDirectionsUri())) return false; + if (!getPlaceUri().equals(other.getPlaceUri())) return false; + if (!getWriteAReviewUri().equals(other.getWriteAReviewUri())) return false; + if (!getReviewsUri().equals(other.getReviewsUri())) return false; + if (!getPhotosUri().equals(other.getPhotosUri())) return false; + if (!getUnknownFields().equals(other.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) + DIRECTIONS_URI_FIELD_NUMBER; + hash = (53 * hash) + getDirectionsUri().hashCode(); + hash = (37 * hash) + PLACE_URI_FIELD_NUMBER; + hash = (53 * hash) + getPlaceUri().hashCode(); + hash = (37 * hash) + WRITE_A_REVIEW_URI_FIELD_NUMBER; + hash = (53 * hash) + getWriteAReviewUri().hashCode(); + hash = (37 * hash) + REVIEWS_URI_FIELD_NUMBER; + hash = (53 * hash) + getReviewsUri().hashCode(); + hash = (37 * hash) + PHOTOS_URI_FIELD_NUMBER; + hash = (53 * hash) + getPhotosUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.places.v1.Place.GoogleMapsLinks prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Links to trigger different Google Maps actions.
+     * 
+ * + * Protobuf type {@code google.maps.places.v1.Place.GoogleMapsLinks} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.GoogleMapsLinks) + com.google.maps.places.v1.Place.GoogleMapsLinksOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_GoogleMapsLinks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_GoogleMapsLinks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.GoogleMapsLinks.class, + com.google.maps.places.v1.Place.GoogleMapsLinks.Builder.class); + } + + // Construct using com.google.maps.places.v1.Place.GoogleMapsLinks.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + directionsUri_ = ""; + placeUri_ = ""; + writeAReviewUri_ = ""; + reviewsUri_ = ""; + photosUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_GoogleMapsLinks_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.GoogleMapsLinks getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.GoogleMapsLinks.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.Place.GoogleMapsLinks build() { + com.google.maps.places.v1.Place.GoogleMapsLinks result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.GoogleMapsLinks buildPartial() { + com.google.maps.places.v1.Place.GoogleMapsLinks result = + new com.google.maps.places.v1.Place.GoogleMapsLinks(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.places.v1.Place.GoogleMapsLinks result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.directionsUri_ = directionsUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.placeUri_ = placeUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.writeAReviewUri_ = writeAReviewUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reviewsUri_ = reviewsUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.photosUri_ = photosUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.Place.GoogleMapsLinks) { + return mergeFrom((com.google.maps.places.v1.Place.GoogleMapsLinks) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.Place.GoogleMapsLinks other) { + if (other == com.google.maps.places.v1.Place.GoogleMapsLinks.getDefaultInstance()) + return this; + if (!other.getDirectionsUri().isEmpty()) { + directionsUri_ = other.directionsUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPlaceUri().isEmpty()) { + placeUri_ = other.placeUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getWriteAReviewUri().isEmpty()) { + writeAReviewUri_ = other.writeAReviewUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getReviewsUri().isEmpty()) { + reviewsUri_ = other.reviewsUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getPhotosUri().isEmpty()) { + photosUri_ = other.photosUri_; + 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: + { + directionsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + placeUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + writeAReviewUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + reviewsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + photosUri_ = 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 directionsUri_ = ""; + + /** + * + * + *
+       * A link to show the directions to the place. The link only populates the
+       * destination location and uses the default travel mode `DRIVE`.
+       * 
+ * + * string directions_uri = 1; + * + * @return The directionsUri. + */ + public java.lang.String getDirectionsUri() { + java.lang.Object ref = directionsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + directionsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * A link to show the directions to the place. The link only populates the
+       * destination location and uses the default travel mode `DRIVE`.
+       * 
+ * + * string directions_uri = 1; + * + * @return The bytes for directionsUri. + */ + public com.google.protobuf.ByteString getDirectionsUriBytes() { + java.lang.Object ref = directionsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + directionsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * A link to show the directions to the place. The link only populates the
+       * destination location and uses the default travel mode `DRIVE`.
+       * 
+ * + * string directions_uri = 1; + * + * @param value The directionsUri to set. + * @return This builder for chaining. + */ + public Builder setDirectionsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + directionsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * A link to show the directions to the place. The link only populates the
+       * destination location and uses the default travel mode `DRIVE`.
+       * 
+ * + * string directions_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearDirectionsUri() { + directionsUri_ = getDefaultInstance().getDirectionsUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * A link to show the directions to the place. The link only populates the
+       * destination location and uses the default travel mode `DRIVE`.
+       * 
+ * + * string directions_uri = 1; + * + * @param value The bytes for directionsUri to set. + * @return This builder for chaining. + */ + public Builder setDirectionsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + directionsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object placeUri_ = ""; + + /** + * + * + *
+       * A link to show this place.
+       * 
+ * + * string place_uri = 2; + * + * @return The placeUri. + */ + public java.lang.String getPlaceUri() { + java.lang.Object ref = placeUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placeUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * A link to show this place.
+       * 
+ * + * string place_uri = 2; + * + * @return The bytes for placeUri. + */ + public com.google.protobuf.ByteString getPlaceUriBytes() { + java.lang.Object ref = placeUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placeUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * A link to show this place.
+       * 
+ * + * string place_uri = 2; + * + * @param value The placeUri to set. + * @return This builder for chaining. + */ + public Builder setPlaceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + placeUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * A link to show this place.
+       * 
+ * + * string place_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearPlaceUri() { + placeUri_ = getDefaultInstance().getPlaceUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * A link to show this place.
+       * 
+ * + * string place_uri = 2; + * + * @param value The bytes for placeUri to set. + * @return This builder for chaining. + */ + public Builder setPlaceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + placeUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object writeAReviewUri_ = ""; + + /** + * + * + *
+       * A link to write a review for this place on Google Maps.
+       * 
+ * + * string write_a_review_uri = 3; + * + * @return The writeAReviewUri. + */ + public java.lang.String getWriteAReviewUri() { + java.lang.Object ref = writeAReviewUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + writeAReviewUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * A link to write a review for this place on Google Maps.
+       * 
+ * + * string write_a_review_uri = 3; + * + * @return The bytes for writeAReviewUri. + */ + public com.google.protobuf.ByteString getWriteAReviewUriBytes() { + java.lang.Object ref = writeAReviewUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + writeAReviewUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * A link to write a review for this place on Google Maps.
+       * 
+ * + * string write_a_review_uri = 3; + * + * @param value The writeAReviewUri to set. + * @return This builder for chaining. + */ + public Builder setWriteAReviewUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + writeAReviewUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * A link to write a review for this place on Google Maps.
+       * 
+ * + * string write_a_review_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearWriteAReviewUri() { + writeAReviewUri_ = getDefaultInstance().getWriteAReviewUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * A link to write a review for this place on Google Maps.
+       * 
+ * + * string write_a_review_uri = 3; + * + * @param value The bytes for writeAReviewUri to set. + * @return This builder for chaining. + */ + public Builder setWriteAReviewUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + writeAReviewUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object reviewsUri_ = ""; + + /** + * + * + *
+       * A link to show reviews of this place on Google Maps.
+       * 
+ * + * string reviews_uri = 4; + * + * @return The reviewsUri. + */ + public java.lang.String getReviewsUri() { + java.lang.Object ref = reviewsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reviewsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * A link to show reviews of this place on Google Maps.
+       * 
+ * + * string reviews_uri = 4; + * + * @return The bytes for reviewsUri. + */ + public com.google.protobuf.ByteString getReviewsUriBytes() { + java.lang.Object ref = reviewsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reviewsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * A link to show reviews of this place on Google Maps.
+       * 
+ * + * string reviews_uri = 4; + * + * @param value The reviewsUri to set. + * @return This builder for chaining. + */ + public Builder setReviewsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reviewsUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * A link to show reviews of this place on Google Maps.
+       * 
+ * + * string reviews_uri = 4; + * + * @return This builder for chaining. + */ + public Builder clearReviewsUri() { + reviewsUri_ = getDefaultInstance().getReviewsUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * A link to show reviews of this place on Google Maps.
+       * 
+ * + * string reviews_uri = 4; + * + * @param value The bytes for reviewsUri to set. + * @return This builder for chaining. + */ + public Builder setReviewsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reviewsUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object photosUri_ = ""; + + /** + * + * + *
+       * A link to show photos of this place on Google Maps.
+       * 
+ * + * string photos_uri = 5; + * + * @return The photosUri. + */ + public java.lang.String getPhotosUri() { + java.lang.Object ref = photosUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + photosUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * A link to show photos of this place on Google Maps.
+       * 
+ * + * string photos_uri = 5; + * + * @return The bytes for photosUri. + */ + public com.google.protobuf.ByteString getPhotosUriBytes() { + java.lang.Object ref = photosUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + photosUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * A link to show photos of this place on Google Maps.
+       * 
+ * + * string photos_uri = 5; + * + * @param value The photosUri to set. + * @return This builder for chaining. + */ + public Builder setPhotosUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + photosUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * A link to show photos of this place on Google Maps.
+       * 
+ * + * string photos_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearPhotosUri() { + photosUri_ = getDefaultInstance().getPhotosUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * A link to show photos of this place on Google Maps.
+       * 
+ * + * string photos_uri = 5; + * + * @param value The bytes for photosUri to set. + * @return This builder for chaining. + */ + public Builder setPhotosUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + photosUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.GoogleMapsLinks) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.GoogleMapsLinks) + private static final com.google.maps.places.v1.Place.GoogleMapsLinks DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.GoogleMapsLinks(); + } + + public static com.google.maps.places.v1.Place.GoogleMapsLinks getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleMapsLinks parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.GoogleMapsLinks getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface ReviewSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.ReviewSummary) @@ -26031,6 +27507,71 @@ public com.google.type.LocalizedTextOrBuilder getPrimaryTypeDisplayNameOrBuilder : primaryTypeDisplayName_; } + public static final int GOOGLE_MAPS_TYPE_LABEL_FIELD_NUMBER = 96; + private com.google.type.LocalizedText googleMapsTypeLabel_; + + /** + * + * + *
+   * The type label of the place on Google Maps, localized to the request
+   * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+   * The type label may be different from the primary type display name and may
+   * not be a supported type in [Places API Place Types
+   * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+   * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + * + * @return Whether the googleMapsTypeLabel field is set. + */ + @java.lang.Override + public boolean hasGoogleMapsTypeLabel() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * The type label of the place on Google Maps, localized to the request
+   * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+   * The type label may be different from the primary type display name and may
+   * not be a supported type in [Places API Place Types
+   * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+   * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + * + * @return The googleMapsTypeLabel. + */ + @java.lang.Override + public com.google.type.LocalizedText getGoogleMapsTypeLabel() { + return googleMapsTypeLabel_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : googleMapsTypeLabel_; + } + + /** + * + * + *
+   * The type label of the place on Google Maps, localized to the request
+   * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+   * The type label may be different from the primary type display name and may
+   * not be a supported type in [Places API Place Types
+   * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+   * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getGoogleMapsTypeLabelOrBuilder() { + return googleMapsTypeLabel_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : googleMapsTypeLabel_; + } + public static final int NATIONAL_PHONE_NUMBER_FIELD_NUMBER = 7; @SuppressWarnings("serial") @@ -26259,7 +27800,7 @@ public com.google.protobuf.ByteString getShortFormattedAddressBytes() { */ @java.lang.Override public boolean hasPostalAddress() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -26455,7 +27996,7 @@ public com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressCompo */ @java.lang.Override public boolean hasPlusCode() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -26508,7 +28049,7 @@ public com.google.maps.places.v1.Place.PlusCodeOrBuilder getPlusCodeOrBuilder() */ @java.lang.Override public boolean hasLocation() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -26559,7 +28100,7 @@ public com.google.type.LatLngOrBuilder getLocationOrBuilder() { */ @java.lang.Override public boolean hasViewport() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -26834,7 +28375,7 @@ public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) */ @java.lang.Override public boolean hasRegularOpeningHours() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -26909,7 +28450,7 @@ public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularOpeningHo */ @java.lang.Override public boolean hasUtcOffsetMinutes() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -26946,7 +28487,7 @@ public int getUtcOffsetMinutes() { */ @java.lang.Override public boolean hasTimeZone() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -27279,7 +28820,7 @@ public com.google.maps.places.v1.Place.AttributionOrBuilder getAttributionsOrBui */ @java.lang.Override public boolean hasUserRatingCount() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -27422,7 +28963,7 @@ public com.google.protobuf.ByteString getIconBackgroundColorBytes() { */ @java.lang.Override public boolean hasTakeout() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -27457,7 +28998,7 @@ public boolean getTakeout() { */ @java.lang.Override public boolean hasDelivery() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -27492,7 +29033,7 @@ public boolean getDelivery() { */ @java.lang.Override public boolean hasDineIn() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -27527,7 +29068,7 @@ public boolean getDineIn() { */ @java.lang.Override public boolean hasCurbsidePickup() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -27562,7 +29103,7 @@ public boolean getCurbsidePickup() { */ @java.lang.Override public boolean hasReservable() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -27597,7 +29138,7 @@ public boolean getReservable() { */ @java.lang.Override public boolean hasServesBreakfast() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -27632,7 +29173,7 @@ public boolean getServesBreakfast() { */ @java.lang.Override public boolean hasServesLunch() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -27667,7 +29208,7 @@ public boolean getServesLunch() { */ @java.lang.Override public boolean hasServesDinner() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -27702,7 +29243,7 @@ public boolean getServesDinner() { */ @java.lang.Override public boolean hasServesBeer() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -27737,7 +29278,7 @@ public boolean getServesBeer() { */ @java.lang.Override public boolean hasServesWine() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -27772,7 +29313,7 @@ public boolean getServesWine() { */ @java.lang.Override public boolean hasServesBrunch() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -27807,7 +29348,7 @@ public boolean getServesBrunch() { */ @java.lang.Override public boolean hasServesVegetarianFood() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -27845,7 +29386,7 @@ public boolean getServesVegetarianFood() { */ @java.lang.Override public boolean hasCurrentOpeningHours() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -28134,7 +29675,7 @@ public com.google.maps.places.v1.Place.OpeningHours getRegularSecondaryOpeningHo */ @java.lang.Override public boolean hasEditorialSummary() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -28191,7 +29732,7 @@ public com.google.type.LocalizedTextOrBuilder getEditorialSummaryOrBuilder() { */ @java.lang.Override public boolean hasOutdoorSeating() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -28226,7 +29767,7 @@ public boolean getOutdoorSeating() { */ @java.lang.Override public boolean hasLiveMusic() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -28261,7 +29802,7 @@ public boolean getLiveMusic() { */ @java.lang.Override public boolean hasMenuForChildren() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -28296,7 +29837,7 @@ public boolean getMenuForChildren() { */ @java.lang.Override public boolean hasServesCocktails() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -28331,7 +29872,7 @@ public boolean getServesCocktails() { */ @java.lang.Override public boolean hasServesDessert() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -28366,7 +29907,7 @@ public boolean getServesDessert() { */ @java.lang.Override public boolean hasServesCoffee() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -28401,7 +29942,7 @@ public boolean getServesCoffee() { */ @java.lang.Override public boolean hasGoodForChildren() { - return ((bitField0_ & 0x40000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** @@ -28436,7 +29977,7 @@ public boolean getGoodForChildren() { */ @java.lang.Override public boolean hasAllowsDogs() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField1_ & 0x00000001) != 0); } /** @@ -28471,7 +30012,7 @@ public boolean getAllowsDogs() { */ @java.lang.Override public boolean hasRestroom() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** @@ -28506,7 +30047,7 @@ public boolean getRestroom() { */ @java.lang.Override public boolean hasGoodForGroups() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000004) != 0); } /** @@ -28541,7 +30082,7 @@ public boolean getGoodForGroups() { */ @java.lang.Override public boolean hasGoodForWatchingSports() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** @@ -28577,7 +30118,7 @@ public boolean getGoodForWatchingSports() { */ @java.lang.Override public boolean hasPaymentOptions() { - return ((bitField1_ & 0x00000008) != 0); + return ((bitField1_ & 0x00000010) != 0); } /** @@ -28632,7 +30173,7 @@ public com.google.maps.places.v1.Place.PaymentOptionsOrBuilder getPaymentOptions */ @java.lang.Override public boolean hasParkingOptions() { - return ((bitField1_ & 0x00000010) != 0); + return ((bitField1_ & 0x00000020) != 0); } /** @@ -28763,7 +30304,7 @@ public com.google.maps.places.v1.Place.SubDestinationOrBuilder getSubDestination */ @java.lang.Override public boolean hasAccessibilityOptions() { - return ((bitField1_ & 0x00000020) != 0); + return ((bitField1_ & 0x00000040) != 0); } /** @@ -28820,7 +30361,7 @@ public com.google.maps.places.v1.Place.AccessibilityOptions getAccessibilityOpti */ @java.lang.Override public boolean hasFuelOptions() { - return ((bitField1_ & 0x00000040) != 0); + return ((bitField1_ & 0x00000080) != 0); } /** @@ -28875,7 +30416,7 @@ public com.google.maps.places.v1.FuelOptionsOrBuilder getFuelOptionsOrBuilder() */ @java.lang.Override public boolean hasEvChargeOptions() { - return ((bitField1_ & 0x00000080) != 0); + return ((bitField1_ & 0x00000100) != 0); } /** @@ -28928,7 +30469,7 @@ public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBu */ @java.lang.Override public boolean hasGenerativeSummary() { - return ((bitField1_ & 0x00000100) != 0); + return ((bitField1_ & 0x00000200) != 0); } /** @@ -29063,7 +30604,7 @@ public com.google.maps.places.v1.Place.ContainingPlaceOrBuilder getContainingPla */ @java.lang.Override public boolean hasPureServiceAreaBusiness() { - return ((bitField1_ & 0x00000200) != 0); + return ((bitField1_ & 0x00000400) != 0); } /** @@ -29105,7 +30646,7 @@ public boolean getPureServiceAreaBusiness() { */ @java.lang.Override public boolean hasAddressDescriptor() { - return ((bitField1_ & 0x00000400) != 0); + return ((bitField1_ & 0x00000800) != 0); } /** @@ -29148,6 +30689,59 @@ public com.google.maps.places.v1.AddressDescriptorOrBuilder getAddressDescriptor : addressDescriptor_; } + public static final int GOOGLE_MAPS_LINKS_FIELD_NUMBER = 85; + private com.google.maps.places.v1.Place.GoogleMapsLinks googleMapsLinks_; + + /** + * + * + *
+   * Links to trigger different Google Maps actions.
+   * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + * + * @return Whether the googleMapsLinks field is set. + */ + @java.lang.Override + public boolean hasGoogleMapsLinks() { + return ((bitField1_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Links to trigger different Google Maps actions.
+   * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + * + * @return The googleMapsLinks. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.GoogleMapsLinks getGoogleMapsLinks() { + return googleMapsLinks_ == null + ? com.google.maps.places.v1.Place.GoogleMapsLinks.getDefaultInstance() + : googleMapsLinks_; + } + + /** + * + * + *
+   * Links to trigger different Google Maps actions.
+   * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.GoogleMapsLinksOrBuilder getGoogleMapsLinksOrBuilder() { + return googleMapsLinks_ == null + ? com.google.maps.places.v1.Place.GoogleMapsLinks.getDefaultInstance() + : googleMapsLinks_; + } + public static final int PRICE_RANGE_FIELD_NUMBER = 86; private com.google.maps.places.v1.PriceRange priceRange_; @@ -29164,7 +30758,7 @@ public com.google.maps.places.v1.AddressDescriptorOrBuilder getAddressDescriptor */ @java.lang.Override public boolean hasPriceRange() { - return ((bitField1_ & 0x00000800) != 0); + return ((bitField1_ & 0x00002000) != 0); } /** @@ -29217,7 +30811,7 @@ public com.google.maps.places.v1.PriceRangeOrBuilder getPriceRangeOrBuilder() { */ @java.lang.Override public boolean hasReviewSummary() { - return ((bitField1_ & 0x00001000) != 0); + return ((bitField1_ & 0x00004000) != 0); } /** @@ -29271,7 +30865,7 @@ public com.google.maps.places.v1.Place.ReviewSummaryOrBuilder getReviewSummaryOr */ @java.lang.Override public boolean hasEvChargeAmenitySummary() { - return ((bitField1_ & 0x00002000) != 0); + return ((bitField1_ & 0x00008000) != 0); } /** @@ -29327,7 +30921,7 @@ public com.google.maps.places.v1.Place.EvChargeAmenitySummary getEvChargeAmenity */ @java.lang.Override public boolean hasNeighborhoodSummary() { - return ((bitField1_ & 0x00004000) != 0); + return ((bitField1_ & 0x00010000) != 0); } /** @@ -29382,7 +30976,7 @@ public com.google.maps.places.v1.Place.NeighborhoodSummary getNeighborhoodSummar */ @java.lang.Override public boolean hasConsumerAlert() { - return ((bitField1_ & 0x00008000) != 0); + return ((bitField1_ & 0x00020000) != 0); } /** @@ -29576,13 +31170,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < addressComponents_.size(); i++) { output.writeMessage(10, addressComponents_.get(i)); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(11, getPlusCode()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(12, getLocation()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(13, getViewport()); } if (java.lang.Double.doubleToRawLongBits(rating_) != 0) { @@ -29594,10 +31188,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(websiteUri_)) { com.google.protobuf.GeneratedMessage.writeString(output, 16, websiteUri_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(21, getRegularOpeningHours()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeInt32(22, utcOffsetMinutes_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(adrFormatAddress_)) { @@ -29613,7 +31207,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < attributions_.size(); i++) { output.writeMessage(27, attributions_.get(i)); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeInt32(28, userRatingCount_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconMaskBaseUri_)) { @@ -29628,43 +31222,43 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(32, getPrimaryTypeDisplayName()); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(33, takeout_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(34, delivery_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(35, dineIn_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(36, curbsidePickup_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { output.writeBool(38, reservable_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { output.writeBool(39, servesBreakfast_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { output.writeBool(40, servesLunch_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { output.writeBool(41, servesDinner_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { output.writeBool(42, servesBeer_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { output.writeBool(43, servesWine_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { output.writeBool(44, servesBrunch_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { output.writeBool(45, servesVegetarianFood_); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { output.writeMessage(46, getCurrentOpeningHours()); } for (int i = 0; i < currentSecondaryOpeningHours_.size(); i++) { @@ -29679,7 +31273,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(shortFormattedAddress_)) { com.google.protobuf.GeneratedMessage.writeString(output, 51, shortFormattedAddress_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { output.writeMessage(52, getEditorialSummary()); } for (int i = 0; i < reviews_.size(); i++) { @@ -29688,88 +31282,91 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < photos_.size(); i++) { output.writeMessage(54, photos_.get(i)); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { output.writeBool(55, outdoorSeating_); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { output.writeBool(56, liveMusic_); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { output.writeBool(57, menuForChildren_); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { output.writeBool(58, servesCocktails_); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { output.writeBool(59, servesDessert_); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x40000000) != 0)) { output.writeBool(60, servesCoffee_); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { output.writeBool(62, goodForChildren_); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x00000001) != 0)) { output.writeBool(63, allowsDogs_); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { output.writeBool(64, restroom_); } - if (((bitField1_ & 0x00000002) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { output.writeBool(65, goodForGroups_); } - if (((bitField1_ & 0x00000004) != 0)) { + if (((bitField1_ & 0x00000008) != 0)) { output.writeBool(66, goodForWatchingSports_); } - if (((bitField1_ & 0x00000008) != 0)) { + if (((bitField1_ & 0x00000010) != 0)) { output.writeMessage(67, getPaymentOptions()); } - if (((bitField1_ & 0x00000010) != 0)) { + if (((bitField1_ & 0x00000020) != 0)) { output.writeMessage(70, getParkingOptions()); } for (int i = 0; i < subDestinations_.size(); i++) { output.writeMessage(71, subDestinations_.get(i)); } - if (((bitField1_ & 0x00000020) != 0)) { + if (((bitField1_ & 0x00000040) != 0)) { output.writeMessage(72, getAccessibilityOptions()); } - if (((bitField1_ & 0x00000040) != 0)) { + if (((bitField1_ & 0x00000080) != 0)) { output.writeMessage(78, getFuelOptions()); } - if (((bitField1_ & 0x00000080) != 0)) { + if (((bitField1_ & 0x00000100) != 0)) { output.writeMessage(79, getEvChargeOptions()); } - if (((bitField1_ & 0x00000100) != 0)) { + if (((bitField1_ & 0x00000200) != 0)) { output.writeMessage(80, getGenerativeSummary()); } for (int i = 0; i < containingPlaces_.size(); i++) { output.writeMessage(82, containingPlaces_.get(i)); } - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000400) != 0)) { output.writeBool(83, pureServiceAreaBusiness_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { output.writeMessage(84, getAddressDescriptor()); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { + output.writeMessage(85, getGoogleMapsLinks()); + } + if (((bitField1_ & 0x00002000) != 0)) { output.writeMessage(86, getPriceRange()); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00004000) != 0)) { output.writeMessage(87, getReviewSummary()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(88, getTimeZone()); } - if (((bitField1_ & 0x00002000) != 0)) { + if (((bitField1_ & 0x00008000) != 0)) { output.writeMessage(89, getEvChargeAmenitySummary()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(90, getPostalAddress()); } - if (((bitField1_ & 0x00004000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { output.writeMessage(91, getNeighborhoodSummary()); } - if (((bitField1_ & 0x00008000) != 0)) { + if (((bitField1_ & 0x00020000) != 0)) { output.writeMessage(92, getConsumerAlert()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(movedPlace_)) { @@ -29778,6 +31375,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(movedPlaceId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 94, movedPlaceId_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(96, getGoogleMapsTypeLabel()); + } getUnknownFields().writeTo(output); } @@ -29814,13 +31414,13 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, addressComponents_.get(i)); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getPlusCode()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getLocation()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getViewport()); } if (java.lang.Double.doubleToRawLongBits(rating_) != 0) { @@ -29832,11 +31432,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(websiteUri_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(16, websiteUri_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRegularOpeningHours()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, utcOffsetMinutes_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(adrFormatAddress_)) { @@ -29852,7 +31452,7 @@ public int getSerializedSize() { for (int i = 0; i < attributions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, attributions_.get(i)); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(28, userRatingCount_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconMaskBaseUri_)) { @@ -29868,43 +31468,43 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getPrimaryTypeDisplayName()); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, takeout_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(34, delivery_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(35, dineIn_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(36, curbsidePickup_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(38, reservable_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(39, servesBreakfast_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(40, servesLunch_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(41, servesDinner_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(42, servesBeer_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(43, servesWine_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(44, servesBrunch_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(45, servesVegetarianFood_); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getCurrentOpeningHours()); } @@ -29924,7 +31524,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(shortFormattedAddress_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(51, shortFormattedAddress_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getEditorialSummary()); } for (int i = 0; i < reviews_.size(); i++) { @@ -29933,92 +31533,95 @@ public int getSerializedSize() { for (int i = 0; i < photos_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(54, photos_.get(i)); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(55, outdoorSeating_); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(56, liveMusic_); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(57, menuForChildren_); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(58, servesCocktails_); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(59, servesDessert_); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(60, servesCoffee_); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(62, goodForChildren_); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(63, allowsDogs_); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(64, restroom_); } - if (((bitField1_ & 0x00000002) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(65, goodForGroups_); } - if (((bitField1_ & 0x00000004) != 0)) { + if (((bitField1_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(66, goodForWatchingSports_); } - if (((bitField1_ & 0x00000008) != 0)) { + if (((bitField1_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(67, getPaymentOptions()); } - if (((bitField1_ & 0x00000010) != 0)) { + if (((bitField1_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(70, getParkingOptions()); } for (int i = 0; i < subDestinations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(71, subDestinations_.get(i)); } - if (((bitField1_ & 0x00000020) != 0)) { + if (((bitField1_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(72, getAccessibilityOptions()); } - if (((bitField1_ & 0x00000040) != 0)) { + if (((bitField1_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(78, getFuelOptions()); } - if (((bitField1_ & 0x00000080) != 0)) { + if (((bitField1_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(79, getEvChargeOptions()); } - if (((bitField1_ & 0x00000100) != 0)) { + if (((bitField1_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(80, getGenerativeSummary()); } for (int i = 0; i < containingPlaces_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(82, containingPlaces_.get(i)); } - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(83, pureServiceAreaBusiness_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(84, getAddressDescriptor()); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(85, getGoogleMapsLinks()); + } + if (((bitField1_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(86, getPriceRange()); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(87, getReviewSummary()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(88, getTimeZone()); } - if (((bitField1_ & 0x00002000) != 0)) { + if (((bitField1_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(89, getEvChargeAmenitySummary()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(90, getPostalAddress()); } - if (((bitField1_ & 0x00004000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(91, getNeighborhoodSummary()); } - if (((bitField1_ & 0x00008000) != 0)) { + if (((bitField1_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(92, getConsumerAlert()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(movedPlace_)) { @@ -30027,6 +31630,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(movedPlaceId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(94, movedPlaceId_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(96, getGoogleMapsTypeLabel()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -30054,6 +31661,10 @@ public boolean equals(final java.lang.Object obj) { if (hasPrimaryTypeDisplayName()) { if (!getPrimaryTypeDisplayName().equals(other.getPrimaryTypeDisplayName())) return false; } + if (hasGoogleMapsTypeLabel() != other.hasGoogleMapsTypeLabel()) return false; + if (hasGoogleMapsTypeLabel()) { + if (!getGoogleMapsTypeLabel().equals(other.getGoogleMapsTypeLabel())) return false; + } if (!getNationalPhoneNumber().equals(other.getNationalPhoneNumber())) return false; if (!getInternationalPhoneNumber().equals(other.getInternationalPhoneNumber())) return false; if (!getFormattedAddress().equals(other.getFormattedAddress())) return false; @@ -30241,6 +31852,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAddressDescriptor()) { if (!getAddressDescriptor().equals(other.getAddressDescriptor())) return false; } + if (hasGoogleMapsLinks() != other.hasGoogleMapsLinks()) return false; + if (hasGoogleMapsLinks()) { + if (!getGoogleMapsLinks().equals(other.getGoogleMapsLinks())) return false; + } if (hasPriceRange() != other.hasPriceRange()) return false; if (hasPriceRange()) { if (!getPriceRange().equals(other.getPriceRange())) return false; @@ -30292,6 +31907,10 @@ public int hashCode() { hash = (37 * hash) + PRIMARY_TYPE_DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getPrimaryTypeDisplayName().hashCode(); } + if (hasGoogleMapsTypeLabel()) { + hash = (37 * hash) + GOOGLE_MAPS_TYPE_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getGoogleMapsTypeLabel().hashCode(); + } hash = (37 * hash) + NATIONAL_PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getNationalPhoneNumber().hashCode(); hash = (37 * hash) + INTERNATIONAL_PHONE_NUMBER_FIELD_NUMBER; @@ -30514,6 +32133,10 @@ public int hashCode() { hash = (37 * hash) + ADDRESS_DESCRIPTOR_FIELD_NUMBER; hash = (53 * hash) + getAddressDescriptor().hashCode(); } + if (hasGoogleMapsLinks()) { + hash = (37 * hash) + GOOGLE_MAPS_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleMapsLinks().hashCode(); + } if (hasPriceRange()) { hash = (37 * hash) + PRICE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getPriceRange().hashCode(); @@ -30679,6 +32302,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetDisplayNameFieldBuilder(); internalGetPrimaryTypeDisplayNameFieldBuilder(); + internalGetGoogleMapsTypeLabelFieldBuilder(); internalGetPostalAddressFieldBuilder(); internalGetAddressComponentsFieldBuilder(); internalGetPlusCodeFieldBuilder(); @@ -30702,6 +32326,7 @@ private void maybeForceBuilderInitialization() { internalGetGenerativeSummaryFieldBuilder(); internalGetContainingPlacesFieldBuilder(); internalGetAddressDescriptorFieldBuilder(); + internalGetGoogleMapsLinksFieldBuilder(); internalGetPriceRangeFieldBuilder(); internalGetReviewSummaryFieldBuilder(); internalGetEvChargeAmenitySummaryFieldBuilder(); @@ -30730,6 +32355,11 @@ public Builder clear() { primaryTypeDisplayNameBuilder_.dispose(); primaryTypeDisplayNameBuilder_ = null; } + googleMapsTypeLabel_ = null; + if (googleMapsTypeLabelBuilder_ != null) { + googleMapsTypeLabelBuilder_.dispose(); + googleMapsTypeLabelBuilder_ = null; + } nationalPhoneNumber_ = ""; internationalPhoneNumber_ = ""; formattedAddress_ = ""; @@ -30745,7 +32375,7 @@ public Builder clear() { addressComponents_ = null; addressComponentsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); plusCode_ = null; if (plusCodeBuilder_ != null) { plusCodeBuilder_.dispose(); @@ -30770,7 +32400,7 @@ public Builder clear() { reviews_ = null; reviewsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); regularOpeningHours_ = null; if (regularOpeningHoursBuilder_ != null) { regularOpeningHoursBuilder_.dispose(); @@ -30788,7 +32418,7 @@ public Builder clear() { photos_ = null; photosBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); adrFormatAddress_ = ""; businessStatus_ = 0; priceLevel_ = 0; @@ -30798,7 +32428,7 @@ public Builder clear() { attributions_ = null; attributionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); userRatingCount_ = 0; iconMaskBaseUri_ = ""; iconBackgroundColor_ = ""; @@ -30825,14 +32455,14 @@ public Builder clear() { currentSecondaryOpeningHours_ = null; currentSecondaryOpeningHoursBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00000800); + bitField1_ = (bitField1_ & ~0x00001000); if (regularSecondaryOpeningHoursBuilder_ == null) { regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); } else { regularSecondaryOpeningHours_ = null; regularSecondaryOpeningHoursBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00002000); editorialSummary_ = null; if (editorialSummaryBuilder_ != null) { editorialSummaryBuilder_.dispose(); @@ -30865,7 +32495,7 @@ public Builder clear() { subDestinations_ = null; subDestinationsBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x08000000); + bitField1_ = (bitField1_ & ~0x10000000); accessibilityOptions_ = null; if (accessibilityOptionsBuilder_ != null) { accessibilityOptionsBuilder_.dispose(); @@ -30892,13 +32522,18 @@ public Builder clear() { containingPlaces_ = null; containingPlacesBuilder_.clear(); } - bitField2_ = (bitField2_ & ~0x00000001); + bitField2_ = (bitField2_ & ~0x00000002); pureServiceAreaBusiness_ = false; addressDescriptor_ = null; if (addressDescriptorBuilder_ != null) { addressDescriptorBuilder_.dispose(); addressDescriptorBuilder_ = null; } + googleMapsLinks_ = null; + if (googleMapsLinksBuilder_ != null) { + googleMapsLinksBuilder_.dispose(); + googleMapsLinksBuilder_ = null; + } priceRange_ = null; if (priceRangeBuilder_ != null) { priceRangeBuilder_.dispose(); @@ -30968,74 +32603,74 @@ public com.google.maps.places.v1.Place buildPartial() { private void buildPartialRepeatedFields(com.google.maps.places.v1.Place result) { if (addressComponentsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { addressComponents_ = java.util.Collections.unmodifiableList(addressComponents_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.addressComponents_ = addressComponents_; } else { result.addressComponents_ = addressComponentsBuilder_.build(); } if (reviewsBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { reviews_ = java.util.Collections.unmodifiableList(reviews_); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); } result.reviews_ = reviews_; } else { result.reviews_ = reviewsBuilder_.build(); } if (photosBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { photos_ = java.util.Collections.unmodifiableList(photos_); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); } result.photos_ = photos_; } else { result.photos_ = photosBuilder_.build(); } if (attributionsBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { attributions_ = java.util.Collections.unmodifiableList(attributions_); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); } result.attributions_ = attributions_; } else { result.attributions_ = attributionsBuilder_.build(); } if (currentSecondaryOpeningHoursBuilder_ == null) { - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { currentSecondaryOpeningHours_ = java.util.Collections.unmodifiableList(currentSecondaryOpeningHours_); - bitField1_ = (bitField1_ & ~0x00000800); + bitField1_ = (bitField1_ & ~0x00001000); } result.currentSecondaryOpeningHours_ = currentSecondaryOpeningHours_; } else { result.currentSecondaryOpeningHours_ = currentSecondaryOpeningHoursBuilder_.build(); } if (regularSecondaryOpeningHoursBuilder_ == null) { - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00002000) != 0)) { regularSecondaryOpeningHours_ = java.util.Collections.unmodifiableList(regularSecondaryOpeningHours_); - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00002000); } result.regularSecondaryOpeningHours_ = regularSecondaryOpeningHours_; } else { result.regularSecondaryOpeningHours_ = regularSecondaryOpeningHoursBuilder_.build(); } if (subDestinationsBuilder_ == null) { - if (((bitField1_ & 0x08000000) != 0)) { + if (((bitField1_ & 0x10000000) != 0)) { subDestinations_ = java.util.Collections.unmodifiableList(subDestinations_); - bitField1_ = (bitField1_ & ~0x08000000); + bitField1_ = (bitField1_ & ~0x10000000); } result.subDestinations_ = subDestinations_; } else { result.subDestinations_ = subDestinationsBuilder_.build(); } if (containingPlacesBuilder_ == null) { - if (((bitField2_ & 0x00000001) != 0)) { + if (((bitField2_ & 0x00000002) != 0)) { containingPlaces_ = java.util.Collections.unmodifiableList(containingPlaces_); - bitField2_ = (bitField2_ & ~0x00000001); + bitField2_ = (bitField2_ & ~0x00000002); } result.containingPlaces_ = containingPlaces_; } else { @@ -31072,83 +32707,86 @@ private void buildPartial0(com.google.maps.places.v1.Place result) { to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.nationalPhoneNumber_ = nationalPhoneNumber_; + result.googleMapsTypeLabel_ = + googleMapsTypeLabelBuilder_ == null + ? googleMapsTypeLabel_ + : googleMapsTypeLabelBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.internationalPhoneNumber_ = internationalPhoneNumber_; + result.nationalPhoneNumber_ = nationalPhoneNumber_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.formattedAddress_ = formattedAddress_; + result.internationalPhoneNumber_ = internationalPhoneNumber_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.shortFormattedAddress_ = shortFormattedAddress_; + result.formattedAddress_ = formattedAddress_; } if (((from_bitField0_ & 0x00000400) != 0)) { + result.shortFormattedAddress_ = shortFormattedAddress_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { result.postalAddress_ = postalAddressBuilder_ == null ? postalAddress_ : postalAddressBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.plusCode_ = plusCodeBuilder_ == null ? plusCode_ : plusCodeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); + result.plusCode_ = plusCodeBuilder_ == null ? plusCode_ : plusCodeBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.viewport_ = viewportBuilder_ == null ? viewport_ : viewportBuilder_.build(); + result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.rating_ = rating_; + result.viewport_ = viewportBuilder_ == null ? viewport_ : viewportBuilder_.build(); + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.googleMapsUri_ = googleMapsUri_; + result.rating_ = rating_; } if (((from_bitField0_ & 0x00020000) != 0)) { + result.googleMapsUri_ = googleMapsUri_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { result.websiteUri_ = websiteUri_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.regularOpeningHours_ = regularOpeningHoursBuilder_ == null ? regularOpeningHours_ : regularOpeningHoursBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.utcOffsetMinutes_ = utcOffsetMinutes_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.timeZone_ = timeZoneBuilder_ == null ? timeZone_ : timeZoneBuilder_.build(); + result.utcOffsetMinutes_ = utcOffsetMinutes_; to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.adrFormatAddress_ = adrFormatAddress_; + if (((from_bitField0_ & 0x00400000) != 0)) { + result.timeZone_ = timeZoneBuilder_ == null ? timeZone_ : timeZoneBuilder_.build(); + to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.businessStatus_ = businessStatus_; + result.adrFormatAddress_ = adrFormatAddress_; } if (((from_bitField0_ & 0x02000000) != 0)) { - result.priceLevel_ = priceLevel_; + result.businessStatus_ = businessStatus_; } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.userRatingCount_ = userRatingCount_; - to_bitField0_ |= 0x00000200; + if (((from_bitField0_ & 0x04000000) != 0)) { + result.priceLevel_ = priceLevel_; } if (((from_bitField0_ & 0x10000000) != 0)) { - result.iconMaskBaseUri_ = iconMaskBaseUri_; + result.userRatingCount_ = userRatingCount_; + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x20000000) != 0)) { - result.iconBackgroundColor_ = iconBackgroundColor_; + result.iconMaskBaseUri_ = iconMaskBaseUri_; } if (((from_bitField0_ & 0x40000000) != 0)) { - result.takeout_ = takeout_; - to_bitField0_ |= 0x00000400; + result.iconBackgroundColor_ = iconBackgroundColor_; } if (((from_bitField0_ & 0x80000000) != 0)) { - result.delivery_ = delivery_; + result.takeout_ = takeout_; to_bitField0_ |= 0x00000800; } result.bitField0_ |= to_bitField0_; @@ -31158,134 +32796,131 @@ private void buildPartial1(com.google.maps.places.v1.Place result) { int from_bitField1_ = bitField1_; int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { - result.dineIn_ = dineIn_; + result.delivery_ = delivery_; to_bitField0_ |= 0x00001000; } if (((from_bitField1_ & 0x00000002) != 0)) { - result.curbsidePickup_ = curbsidePickup_; + result.dineIn_ = dineIn_; to_bitField0_ |= 0x00002000; } if (((from_bitField1_ & 0x00000004) != 0)) { - result.reservable_ = reservable_; + result.curbsidePickup_ = curbsidePickup_; to_bitField0_ |= 0x00004000; } if (((from_bitField1_ & 0x00000008) != 0)) { - result.servesBreakfast_ = servesBreakfast_; + result.reservable_ = reservable_; to_bitField0_ |= 0x00008000; } if (((from_bitField1_ & 0x00000010) != 0)) { - result.servesLunch_ = servesLunch_; + result.servesBreakfast_ = servesBreakfast_; to_bitField0_ |= 0x00010000; } if (((from_bitField1_ & 0x00000020) != 0)) { - result.servesDinner_ = servesDinner_; + result.servesLunch_ = servesLunch_; to_bitField0_ |= 0x00020000; } if (((from_bitField1_ & 0x00000040) != 0)) { - result.servesBeer_ = servesBeer_; + result.servesDinner_ = servesDinner_; to_bitField0_ |= 0x00040000; } if (((from_bitField1_ & 0x00000080) != 0)) { - result.servesWine_ = servesWine_; + result.servesBeer_ = servesBeer_; to_bitField0_ |= 0x00080000; } if (((from_bitField1_ & 0x00000100) != 0)) { - result.servesBrunch_ = servesBrunch_; + result.servesWine_ = servesWine_; to_bitField0_ |= 0x00100000; } if (((from_bitField1_ & 0x00000200) != 0)) { - result.servesVegetarianFood_ = servesVegetarianFood_; + result.servesBrunch_ = servesBrunch_; to_bitField0_ |= 0x00200000; } if (((from_bitField1_ & 0x00000400) != 0)) { + result.servesVegetarianFood_ = servesVegetarianFood_; + to_bitField0_ |= 0x00400000; + } + if (((from_bitField1_ & 0x00000800) != 0)) { result.currentOpeningHours_ = currentOpeningHoursBuilder_ == null ? currentOpeningHours_ : currentOpeningHoursBuilder_.build(); - to_bitField0_ |= 0x00400000; - } - if (((from_bitField1_ & 0x00002000) != 0)) { - result.editorialSummary_ = - editorialSummaryBuilder_ == null ? editorialSummary_ : editorialSummaryBuilder_.build(); to_bitField0_ |= 0x00800000; } if (((from_bitField1_ & 0x00004000) != 0)) { - result.outdoorSeating_ = outdoorSeating_; + result.editorialSummary_ = + editorialSummaryBuilder_ == null ? editorialSummary_ : editorialSummaryBuilder_.build(); to_bitField0_ |= 0x01000000; } if (((from_bitField1_ & 0x00008000) != 0)) { - result.liveMusic_ = liveMusic_; + result.outdoorSeating_ = outdoorSeating_; to_bitField0_ |= 0x02000000; } if (((from_bitField1_ & 0x00010000) != 0)) { - result.menuForChildren_ = menuForChildren_; + result.liveMusic_ = liveMusic_; to_bitField0_ |= 0x04000000; } if (((from_bitField1_ & 0x00020000) != 0)) { - result.servesCocktails_ = servesCocktails_; + result.menuForChildren_ = menuForChildren_; to_bitField0_ |= 0x08000000; } if (((from_bitField1_ & 0x00040000) != 0)) { - result.servesDessert_ = servesDessert_; + result.servesCocktails_ = servesCocktails_; to_bitField0_ |= 0x10000000; } if (((from_bitField1_ & 0x00080000) != 0)) { - result.servesCoffee_ = servesCoffee_; + result.servesDessert_ = servesDessert_; to_bitField0_ |= 0x20000000; } if (((from_bitField1_ & 0x00100000) != 0)) { - result.goodForChildren_ = goodForChildren_; + result.servesCoffee_ = servesCoffee_; to_bitField0_ |= 0x40000000; } if (((from_bitField1_ & 0x00200000) != 0)) { - result.allowsDogs_ = allowsDogs_; + result.goodForChildren_ = goodForChildren_; to_bitField0_ |= 0x80000000; } int to_bitField1_ = 0; if (((from_bitField1_ & 0x00400000) != 0)) { - result.restroom_ = restroom_; + result.allowsDogs_ = allowsDogs_; to_bitField1_ |= 0x00000001; } if (((from_bitField1_ & 0x00800000) != 0)) { - result.goodForGroups_ = goodForGroups_; + result.restroom_ = restroom_; to_bitField1_ |= 0x00000002; } if (((from_bitField1_ & 0x01000000) != 0)) { - result.goodForWatchingSports_ = goodForWatchingSports_; + result.goodForGroups_ = goodForGroups_; to_bitField1_ |= 0x00000004; } if (((from_bitField1_ & 0x02000000) != 0)) { - result.paymentOptions_ = - paymentOptionsBuilder_ == null ? paymentOptions_ : paymentOptionsBuilder_.build(); + result.goodForWatchingSports_ = goodForWatchingSports_; to_bitField1_ |= 0x00000008; } if (((from_bitField1_ & 0x04000000) != 0)) { + result.paymentOptions_ = + paymentOptionsBuilder_ == null ? paymentOptions_ : paymentOptionsBuilder_.build(); + to_bitField1_ |= 0x00000010; + } + if (((from_bitField1_ & 0x08000000) != 0)) { result.parkingOptions_ = parkingOptionsBuilder_ == null ? parkingOptions_ : parkingOptionsBuilder_.build(); - to_bitField1_ |= 0x00000010; + to_bitField1_ |= 0x00000020; } - if (((from_bitField1_ & 0x10000000) != 0)) { + if (((from_bitField1_ & 0x20000000) != 0)) { result.accessibilityOptions_ = accessibilityOptionsBuilder_ == null ? accessibilityOptions_ : accessibilityOptionsBuilder_.build(); - to_bitField1_ |= 0x00000020; - } - if (((from_bitField1_ & 0x20000000) != 0)) { - result.fuelOptions_ = - fuelOptionsBuilder_ == null ? fuelOptions_ : fuelOptionsBuilder_.build(); to_bitField1_ |= 0x00000040; } if (((from_bitField1_ & 0x40000000) != 0)) { - result.evChargeOptions_ = - evChargeOptionsBuilder_ == null ? evChargeOptions_ : evChargeOptionsBuilder_.build(); + result.fuelOptions_ = + fuelOptionsBuilder_ == null ? fuelOptions_ : fuelOptionsBuilder_.build(); to_bitField1_ |= 0x00000080; } if (((from_bitField1_ & 0x80000000) != 0)) { - result.generativeSummary_ = - generativeSummaryBuilder_ == null - ? generativeSummary_ - : generativeSummaryBuilder_.build(); + result.evChargeOptions_ = + evChargeOptionsBuilder_ == null ? evChargeOptions_ : evChargeOptionsBuilder_.build(); to_bitField1_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; @@ -31295,49 +32930,61 @@ private void buildPartial1(com.google.maps.places.v1.Place result) { private void buildPartial2(com.google.maps.places.v1.Place result) { int from_bitField2_ = bitField2_; int to_bitField1_ = 0; - if (((from_bitField2_ & 0x00000002) != 0)) { - result.pureServiceAreaBusiness_ = pureServiceAreaBusiness_; + if (((from_bitField2_ & 0x00000001) != 0)) { + result.generativeSummary_ = + generativeSummaryBuilder_ == null + ? generativeSummary_ + : generativeSummaryBuilder_.build(); to_bitField1_ |= 0x00000200; } if (((from_bitField2_ & 0x00000004) != 0)) { + result.pureServiceAreaBusiness_ = pureServiceAreaBusiness_; + to_bitField1_ |= 0x00000400; + } + if (((from_bitField2_ & 0x00000008) != 0)) { result.addressDescriptor_ = addressDescriptorBuilder_ == null ? addressDescriptor_ : addressDescriptorBuilder_.build(); - to_bitField1_ |= 0x00000400; - } - if (((from_bitField2_ & 0x00000008) != 0)) { - result.priceRange_ = priceRangeBuilder_ == null ? priceRange_ : priceRangeBuilder_.build(); to_bitField1_ |= 0x00000800; } if (((from_bitField2_ & 0x00000010) != 0)) { - result.reviewSummary_ = - reviewSummaryBuilder_ == null ? reviewSummary_ : reviewSummaryBuilder_.build(); + result.googleMapsLinks_ = + googleMapsLinksBuilder_ == null ? googleMapsLinks_ : googleMapsLinksBuilder_.build(); to_bitField1_ |= 0x00001000; } if (((from_bitField2_ & 0x00000020) != 0)) { + result.priceRange_ = priceRangeBuilder_ == null ? priceRange_ : priceRangeBuilder_.build(); + to_bitField1_ |= 0x00002000; + } + if (((from_bitField2_ & 0x00000040) != 0)) { + result.reviewSummary_ = + reviewSummaryBuilder_ == null ? reviewSummary_ : reviewSummaryBuilder_.build(); + to_bitField1_ |= 0x00004000; + } + if (((from_bitField2_ & 0x00000080) != 0)) { result.evChargeAmenitySummary_ = evChargeAmenitySummaryBuilder_ == null ? evChargeAmenitySummary_ : evChargeAmenitySummaryBuilder_.build(); - to_bitField1_ |= 0x00002000; + to_bitField1_ |= 0x00008000; } - if (((from_bitField2_ & 0x00000040) != 0)) { + if (((from_bitField2_ & 0x00000100) != 0)) { result.neighborhoodSummary_ = neighborhoodSummaryBuilder_ == null ? neighborhoodSummary_ : neighborhoodSummaryBuilder_.build(); - to_bitField1_ |= 0x00004000; + to_bitField1_ |= 0x00010000; } - if (((from_bitField2_ & 0x00000080) != 0)) { + if (((from_bitField2_ & 0x00000200) != 0)) { result.consumerAlert_ = consumerAlertBuilder_ == null ? consumerAlert_ : consumerAlertBuilder_.build(); - to_bitField1_ |= 0x00008000; + to_bitField1_ |= 0x00020000; } - if (((from_bitField2_ & 0x00000100) != 0)) { + if (((from_bitField2_ & 0x00000400) != 0)) { result.movedPlace_ = movedPlace_; } - if (((from_bitField2_ & 0x00000200) != 0)) { + if (((from_bitField2_ & 0x00000800) != 0)) { result.movedPlaceId_ = movedPlaceId_; } result.bitField1_ |= to_bitField1_; @@ -31386,24 +33033,27 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (other.hasPrimaryTypeDisplayName()) { mergePrimaryTypeDisplayName(other.getPrimaryTypeDisplayName()); } + if (other.hasGoogleMapsTypeLabel()) { + mergeGoogleMapsTypeLabel(other.getGoogleMapsTypeLabel()); + } if (!other.getNationalPhoneNumber().isEmpty()) { nationalPhoneNumber_ = other.nationalPhoneNumber_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getInternationalPhoneNumber().isEmpty()) { internationalPhoneNumber_ = other.internationalPhoneNumber_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getFormattedAddress().isEmpty()) { formattedAddress_ = other.formattedAddress_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getShortFormattedAddress().isEmpty()) { shortFormattedAddress_ = other.shortFormattedAddress_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasPostalAddress()) { @@ -31413,7 +33063,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (!other.addressComponents_.isEmpty()) { if (addressComponents_.isEmpty()) { addressComponents_ = other.addressComponents_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureAddressComponentsIsMutable(); addressComponents_.addAll(other.addressComponents_); @@ -31426,7 +33076,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { addressComponentsBuilder_.dispose(); addressComponentsBuilder_ = null; addressComponents_ = other.addressComponents_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); addressComponentsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetAddressComponentsFieldBuilder() @@ -31450,19 +33100,19 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { } if (!other.getGoogleMapsUri().isEmpty()) { googleMapsUri_ = other.googleMapsUri_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (!other.getWebsiteUri().isEmpty()) { websiteUri_ = other.websiteUri_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (reviewsBuilder_ == null) { if (!other.reviews_.isEmpty()) { if (reviews_.isEmpty()) { reviews_ = other.reviews_; - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); } else { ensureReviewsIsMutable(); reviews_.addAll(other.reviews_); @@ -31475,7 +33125,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { reviewsBuilder_.dispose(); reviewsBuilder_ = null; reviews_ = other.reviews_; - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); reviewsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetReviewsFieldBuilder() @@ -31498,7 +33148,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (!other.photos_.isEmpty()) { if (photos_.isEmpty()) { photos_ = other.photos_; - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); } else { ensurePhotosIsMutable(); photos_.addAll(other.photos_); @@ -31511,7 +33161,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { photosBuilder_.dispose(); photosBuilder_ = null; photos_ = other.photos_; - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); photosBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetPhotosFieldBuilder() @@ -31523,7 +33173,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { } if (!other.getAdrFormatAddress().isEmpty()) { adrFormatAddress_ = other.adrFormatAddress_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } if (other.businessStatus_ != 0) { @@ -31536,7 +33186,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (!other.attributions_.isEmpty()) { if (attributions_.isEmpty()) { attributions_ = other.attributions_; - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); } else { ensureAttributionsIsMutable(); attributions_.addAll(other.attributions_); @@ -31549,7 +33199,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { attributionsBuilder_.dispose(); attributionsBuilder_ = null; attributions_ = other.attributions_; - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); attributionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetAttributionsFieldBuilder() @@ -31564,12 +33214,12 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { } if (!other.getIconMaskBaseUri().isEmpty()) { iconMaskBaseUri_ = other.iconMaskBaseUri_; - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); } if (!other.getIconBackgroundColor().isEmpty()) { iconBackgroundColor_ = other.iconBackgroundColor_; - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); } if (other.hasTakeout()) { @@ -31615,7 +33265,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (!other.currentSecondaryOpeningHours_.isEmpty()) { if (currentSecondaryOpeningHours_.isEmpty()) { currentSecondaryOpeningHours_ = other.currentSecondaryOpeningHours_; - bitField1_ = (bitField1_ & ~0x00000800); + bitField1_ = (bitField1_ & ~0x00001000); } else { ensureCurrentSecondaryOpeningHoursIsMutable(); currentSecondaryOpeningHours_.addAll(other.currentSecondaryOpeningHours_); @@ -31628,7 +33278,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { currentSecondaryOpeningHoursBuilder_.dispose(); currentSecondaryOpeningHoursBuilder_ = null; currentSecondaryOpeningHours_ = other.currentSecondaryOpeningHours_; - bitField1_ = (bitField1_ & ~0x00000800); + bitField1_ = (bitField1_ & ~0x00001000); currentSecondaryOpeningHoursBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetCurrentSecondaryOpeningHoursFieldBuilder() @@ -31643,7 +33293,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (!other.regularSecondaryOpeningHours_.isEmpty()) { if (regularSecondaryOpeningHours_.isEmpty()) { regularSecondaryOpeningHours_ = other.regularSecondaryOpeningHours_; - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00002000); } else { ensureRegularSecondaryOpeningHoursIsMutable(); regularSecondaryOpeningHours_.addAll(other.regularSecondaryOpeningHours_); @@ -31656,7 +33306,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { regularSecondaryOpeningHoursBuilder_.dispose(); regularSecondaryOpeningHoursBuilder_ = null; regularSecondaryOpeningHours_ = other.regularSecondaryOpeningHours_; - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00002000); regularSecondaryOpeningHoursBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetRegularSecondaryOpeningHoursFieldBuilder() @@ -31713,7 +33363,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (!other.subDestinations_.isEmpty()) { if (subDestinations_.isEmpty()) { subDestinations_ = other.subDestinations_; - bitField1_ = (bitField1_ & ~0x08000000); + bitField1_ = (bitField1_ & ~0x10000000); } else { ensureSubDestinationsIsMutable(); subDestinations_.addAll(other.subDestinations_); @@ -31726,7 +33376,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { subDestinationsBuilder_.dispose(); subDestinationsBuilder_ = null; subDestinations_ = other.subDestinations_; - bitField1_ = (bitField1_ & ~0x08000000); + bitField1_ = (bitField1_ & ~0x10000000); subDestinationsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetSubDestinationsFieldBuilder() @@ -31752,7 +33402,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (!other.containingPlaces_.isEmpty()) { if (containingPlaces_.isEmpty()) { containingPlaces_ = other.containingPlaces_; - bitField2_ = (bitField2_ & ~0x00000001); + bitField2_ = (bitField2_ & ~0x00000002); } else { ensureContainingPlacesIsMutable(); containingPlaces_.addAll(other.containingPlaces_); @@ -31765,7 +33415,7 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { containingPlacesBuilder_.dispose(); containingPlacesBuilder_ = null; containingPlaces_ = other.containingPlaces_; - bitField2_ = (bitField2_ & ~0x00000001); + bitField2_ = (bitField2_ & ~0x00000002); containingPlacesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetContainingPlacesFieldBuilder() @@ -31781,6 +33431,9 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (other.hasAddressDescriptor()) { mergeAddressDescriptor(other.getAddressDescriptor()); } + if (other.hasGoogleMapsLinks()) { + mergeGoogleMapsLinks(other.getGoogleMapsLinks()); + } if (other.hasPriceRange()) { mergePriceRange(other.getPriceRange()); } @@ -31798,12 +33451,12 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { } if (!other.getMovedPlace().isEmpty()) { movedPlace_ = other.movedPlace_; - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000400; onChanged(); } if (!other.getMovedPlaceId().isEmpty()) { movedPlaceId_ = other.movedPlaceId_; - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -31854,19 +33507,19 @@ public Builder mergeFrom( case 58: { nationalPhoneNumber_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: { internationalPhoneNumber_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 case 74: { formattedAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 case 82: @@ -31887,70 +33540,70 @@ public Builder mergeFrom( { input.readMessage( internalGetPlusCodeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 90 case 98: { input.readMessage( internalGetLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 98 case 106: { input.readMessage( internalGetViewportFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 106 case 113: { rating_ = input.readDouble(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 113 case 122: { googleMapsUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 122 case 130: { websiteUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 130 case 170: { input.readMessage( internalGetRegularOpeningHoursFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 170 case 176: { utcOffsetMinutes_ = input.readInt32(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 176 case 194: { adrFormatAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 194 case 200: { businessStatus_ = input.readEnum(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 200 case 208: { priceLevel_ = input.readEnum(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 208 case 218: @@ -31969,19 +33622,19 @@ public Builder mergeFrom( case 224: { userRatingCount_ = input.readInt32(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 224 case 234: { iconMaskBaseUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; break; } // case 234 case 242: { iconBackgroundColor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; break; } // case 242 case 250: @@ -32002,80 +33655,80 @@ public Builder mergeFrom( case 264: { takeout_ = input.readBool(); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; break; } // case 264 case 272: { delivery_ = input.readBool(); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; break; } // case 272 case 280: { dineIn_ = input.readBool(); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; break; } // case 280 case 288: { curbsidePickup_ = input.readBool(); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; break; } // case 288 case 304: { reservable_ = input.readBool(); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; break; } // case 304 case 312: { servesBreakfast_ = input.readBool(); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000010; break; } // case 312 case 320: { servesLunch_ = input.readBool(); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000020; break; } // case 320 case 328: { servesDinner_ = input.readBool(); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; break; } // case 328 case 336: { servesBeer_ = input.readBool(); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; break; } // case 336 case 344: { servesWine_ = input.readBool(); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000100; break; } // case 344 case 352: { servesBrunch_ = input.readBool(); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000200; break; } // case 352 case 360: { servesVegetarianFood_ = input.readBool(); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; break; } // case 360 case 370: { input.readMessage( internalGetCurrentOpeningHoursFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; break; } // case 370 case 378: @@ -32113,14 +33766,14 @@ public Builder mergeFrom( case 410: { shortFormattedAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 410 case 418: { input.readMessage( internalGetEditorialSummaryFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00002000; + bitField1_ |= 0x00004000; break; } // case 418 case 426: @@ -32150,81 +33803,81 @@ public Builder mergeFrom( case 440: { outdoorSeating_ = input.readBool(); - bitField1_ |= 0x00004000; + bitField1_ |= 0x00008000; break; } // case 440 case 448: { liveMusic_ = input.readBool(); - bitField1_ |= 0x00008000; + bitField1_ |= 0x00010000; break; } // case 448 case 456: { menuForChildren_ = input.readBool(); - bitField1_ |= 0x00010000; + bitField1_ |= 0x00020000; break; } // case 456 case 464: { servesCocktails_ = input.readBool(); - bitField1_ |= 0x00020000; + bitField1_ |= 0x00040000; break; } // case 464 case 472: { servesDessert_ = input.readBool(); - bitField1_ |= 0x00040000; + bitField1_ |= 0x00080000; break; } // case 472 case 480: { servesCoffee_ = input.readBool(); - bitField1_ |= 0x00080000; + bitField1_ |= 0x00100000; break; } // case 480 case 496: { goodForChildren_ = input.readBool(); - bitField1_ |= 0x00100000; + bitField1_ |= 0x00200000; break; } // case 496 case 504: { allowsDogs_ = input.readBool(); - bitField1_ |= 0x00200000; + bitField1_ |= 0x00400000; break; } // case 504 case 512: { restroom_ = input.readBool(); - bitField1_ |= 0x00400000; + bitField1_ |= 0x00800000; break; } // case 512 case 520: { goodForGroups_ = input.readBool(); - bitField1_ |= 0x00800000; + bitField1_ |= 0x01000000; break; } // case 520 case 528: { goodForWatchingSports_ = input.readBool(); - bitField1_ |= 0x01000000; + bitField1_ |= 0x02000000; break; } // case 528 case 538: { input.readMessage( internalGetPaymentOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x02000000; + bitField1_ |= 0x04000000; break; } // case 538 case 562: { input.readMessage( internalGetParkingOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x04000000; + bitField1_ |= 0x08000000; break; } // case 562 case 570: @@ -32244,28 +33897,28 @@ public Builder mergeFrom( { input.readMessage( internalGetAccessibilityOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x10000000; + bitField1_ |= 0x20000000; break; } // case 578 case 626: { input.readMessage( internalGetFuelOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x20000000; + bitField1_ |= 0x40000000; break; } // case 626 case 634: { input.readMessage( internalGetEvChargeOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x40000000; + bitField1_ |= 0x80000000; break; } // case 634 case 642: { input.readMessage( internalGetGenerativeSummaryFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; break; } // case 642 case 658: @@ -32285,35 +33938,42 @@ public Builder mergeFrom( case 664: { pureServiceAreaBusiness_ = input.readBool(); - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; break; } // case 664 case 674: { input.readMessage( internalGetAddressDescriptorFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; break; } // case 674 + case 682: + { + input.readMessage( + internalGetGoogleMapsLinksFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000010; + break; + } // case 682 case 690: { input.readMessage( internalGetPriceRangeFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000020; break; } // case 690 case 698: { input.readMessage( internalGetReviewSummaryFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000040; break; } // case 698 case 706: { input.readMessage( internalGetTimeZoneFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 706 case 714: @@ -32321,42 +33981,49 @@ public Builder mergeFrom( input.readMessage( internalGetEvChargeAmenitySummaryFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000080; break; } // case 714 case 722: { input.readMessage( internalGetPostalAddressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 722 case 730: { input.readMessage( internalGetNeighborhoodSummaryFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; break; } // case 730 case 738: { input.readMessage( internalGetConsumerAlertFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000200; break; } // case 738 case 746: { movedPlace_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000400; break; } // case 746 case 754: { movedPlaceId_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000800; break; } // case 754 + case 770: + { + input.readMessage( + internalGetGoogleMapsTypeLabelFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 770 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -33404,6 +35071,236 @@ public com.google.type.LocalizedTextOrBuilder getPrimaryTypeDisplayNameOrBuilder return primaryTypeDisplayNameBuilder_; } + private com.google.type.LocalizedText googleMapsTypeLabel_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + googleMapsTypeLabelBuilder_; + + /** + * + * + *
+     * The type label of the place on Google Maps, localized to the request
+     * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+     * The type label may be different from the primary type display name and may
+     * not be a supported type in [Places API Place Types
+     * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+     * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + * + * @return Whether the googleMapsTypeLabel field is set. + */ + public boolean hasGoogleMapsTypeLabel() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * The type label of the place on Google Maps, localized to the request
+     * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+     * The type label may be different from the primary type display name and may
+     * not be a supported type in [Places API Place Types
+     * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+     * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + * + * @return The googleMapsTypeLabel. + */ + public com.google.type.LocalizedText getGoogleMapsTypeLabel() { + if (googleMapsTypeLabelBuilder_ == null) { + return googleMapsTypeLabel_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : googleMapsTypeLabel_; + } else { + return googleMapsTypeLabelBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The type label of the place on Google Maps, localized to the request
+     * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+     * The type label may be different from the primary type display name and may
+     * not be a supported type in [Places API Place Types
+     * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+     * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + */ + public Builder setGoogleMapsTypeLabel(com.google.type.LocalizedText value) { + if (googleMapsTypeLabelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleMapsTypeLabel_ = value; + } else { + googleMapsTypeLabelBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * The type label of the place on Google Maps, localized to the request
+     * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+     * The type label may be different from the primary type display name and may
+     * not be a supported type in [Places API Place Types
+     * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+     * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + */ + public Builder setGoogleMapsTypeLabel(com.google.type.LocalizedText.Builder builderForValue) { + if (googleMapsTypeLabelBuilder_ == null) { + googleMapsTypeLabel_ = builderForValue.build(); + } else { + googleMapsTypeLabelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * The type label of the place on Google Maps, localized to the request
+     * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+     * The type label may be different from the primary type display name and may
+     * not be a supported type in [Places API Place Types
+     * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+     * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + */ + public Builder mergeGoogleMapsTypeLabel(com.google.type.LocalizedText value) { + if (googleMapsTypeLabelBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && googleMapsTypeLabel_ != null + && googleMapsTypeLabel_ != com.google.type.LocalizedText.getDefaultInstance()) { + getGoogleMapsTypeLabelBuilder().mergeFrom(value); + } else { + googleMapsTypeLabel_ = value; + } + } else { + googleMapsTypeLabelBuilder_.mergeFrom(value); + } + if (googleMapsTypeLabel_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The type label of the place on Google Maps, localized to the request
+     * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+     * The type label may be different from the primary type display name and may
+     * not be a supported type in [Places API Place Types
+     * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+     * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + */ + public Builder clearGoogleMapsTypeLabel() { + bitField0_ = (bitField0_ & ~0x00000040); + googleMapsTypeLabel_ = null; + if (googleMapsTypeLabelBuilder_ != null) { + googleMapsTypeLabelBuilder_.dispose(); + googleMapsTypeLabelBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The type label of the place on Google Maps, localized to the request
+     * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+     * The type label may be different from the primary type display name and may
+     * not be a supported type in [Places API Place Types
+     * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+     * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + */ + public com.google.type.LocalizedText.Builder getGoogleMapsTypeLabelBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetGoogleMapsTypeLabelFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The type label of the place on Google Maps, localized to the request
+     * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+     * The type label may be different from the primary type display name and may
+     * not be a supported type in [Places API Place Types
+     * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+     * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + */ + public com.google.type.LocalizedTextOrBuilder getGoogleMapsTypeLabelOrBuilder() { + if (googleMapsTypeLabelBuilder_ != null) { + return googleMapsTypeLabelBuilder_.getMessageOrBuilder(); + } else { + return googleMapsTypeLabel_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : googleMapsTypeLabel_; + } + } + + /** + * + * + *
+     * The type label of the place on Google Maps, localized to the request
+     * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+     * The type label may be different from the primary type display name and may
+     * not be a supported type in [Places API Place Types
+     * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+     * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + internalGetGoogleMapsTypeLabelFieldBuilder() { + if (googleMapsTypeLabelBuilder_ == null) { + googleMapsTypeLabelBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getGoogleMapsTypeLabel(), getParentForChildren(), isClean()); + googleMapsTypeLabel_ = null; + } + return googleMapsTypeLabelBuilder_; + } + private java.lang.Object nationalPhoneNumber_ = ""; /** @@ -33469,7 +35366,7 @@ public Builder setNationalPhoneNumber(java.lang.String value) { throw new NullPointerException(); } nationalPhoneNumber_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -33487,7 +35384,7 @@ public Builder setNationalPhoneNumber(java.lang.String value) { */ public Builder clearNationalPhoneNumber() { nationalPhoneNumber_ = getDefaultInstance().getNationalPhoneNumber(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -33510,7 +35407,7 @@ public Builder setNationalPhoneNumberBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); nationalPhoneNumber_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -33580,7 +35477,7 @@ public Builder setInternationalPhoneNumber(java.lang.String value) { throw new NullPointerException(); } internationalPhoneNumber_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -33598,7 +35495,7 @@ public Builder setInternationalPhoneNumber(java.lang.String value) { */ public Builder clearInternationalPhoneNumber() { internationalPhoneNumber_ = getDefaultInstance().getInternationalPhoneNumber(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -33621,7 +35518,7 @@ public Builder setInternationalPhoneNumberBytes(com.google.protobuf.ByteString v } checkByteStringIsUtf8(value); internationalPhoneNumber_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -33691,7 +35588,7 @@ public Builder setFormattedAddress(java.lang.String value) { throw new NullPointerException(); } formattedAddress_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -33709,7 +35606,7 @@ public Builder setFormattedAddress(java.lang.String value) { */ public Builder clearFormattedAddress() { formattedAddress_ = getDefaultInstance().getFormattedAddress(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -33732,7 +35629,7 @@ public Builder setFormattedAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); formattedAddress_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -33802,7 +35699,7 @@ public Builder setShortFormattedAddress(java.lang.String value) { throw new NullPointerException(); } shortFormattedAddress_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -33820,7 +35717,7 @@ public Builder setShortFormattedAddress(java.lang.String value) { */ public Builder clearShortFormattedAddress() { shortFormattedAddress_ = getDefaultInstance().getShortFormattedAddress(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -33843,7 +35740,7 @@ public Builder setShortFormattedAddressBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); shortFormattedAddress_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -33867,7 +35764,7 @@ public Builder setShortFormattedAddressBytes(com.google.protobuf.ByteString valu * @return Whether the postalAddress field is set. */ public boolean hasPostalAddress() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -33909,7 +35806,7 @@ public Builder setPostalAddress(com.google.type.PostalAddress value) { } else { postalAddressBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -33929,7 +35826,7 @@ public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderFor } else { postalAddressBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -33945,7 +35842,7 @@ public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderFor */ public Builder mergePostalAddress(com.google.type.PostalAddress value) { if (postalAddressBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && postalAddress_ != null && postalAddress_ != com.google.type.PostalAddress.getDefaultInstance()) { getPostalAddressBuilder().mergeFrom(value); @@ -33956,7 +35853,7 @@ public Builder mergePostalAddress(com.google.type.PostalAddress value) { postalAddressBuilder_.mergeFrom(value); } if (postalAddress_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -33972,7 +35869,7 @@ public Builder mergePostalAddress(com.google.type.PostalAddress value) { * .google.type.PostalAddress postal_address = 90; */ public Builder clearPostalAddress() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); postalAddress_ = null; if (postalAddressBuilder_ != null) { postalAddressBuilder_.dispose(); @@ -33992,7 +35889,7 @@ public Builder clearPostalAddress() { * .google.type.PostalAddress postal_address = 90; */ public com.google.type.PostalAddress.Builder getPostalAddressBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetPostalAddressFieldBuilder().getBuilder(); } @@ -34046,11 +35943,11 @@ public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { java.util.Collections.emptyList(); private void ensureAddressComponentsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { addressComponents_ = new java.util.ArrayList( addressComponents_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -34422,7 +36319,7 @@ public Builder addAllAddressComponents( public Builder clearAddressComponents() { if (addressComponentsBuilder_ == null) { addressComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { addressComponentsBuilder_.clear(); @@ -34646,7 +36543,7 @@ public com.google.maps.places.v1.Place.AddressComponent.Builder addAddressCompon com.google.maps.places.v1.Place.AddressComponent.Builder, com.google.maps.places.v1.Place.AddressComponentOrBuilder>( addressComponents_, - ((bitField0_ & 0x00000800) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); addressComponents_ = null; @@ -34673,7 +36570,7 @@ public com.google.maps.places.v1.Place.AddressComponent.Builder addAddressCompon * @return Whether the plusCode field is set. */ public boolean hasPlusCode() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -34715,7 +36612,7 @@ public Builder setPlusCode(com.google.maps.places.v1.Place.PlusCode value) { } else { plusCodeBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -34735,7 +36632,7 @@ public Builder setPlusCode(com.google.maps.places.v1.Place.PlusCode.Builder buil } else { plusCodeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -34751,7 +36648,7 @@ public Builder setPlusCode(com.google.maps.places.v1.Place.PlusCode.Builder buil */ public Builder mergePlusCode(com.google.maps.places.v1.Place.PlusCode value) { if (plusCodeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && plusCode_ != null && plusCode_ != com.google.maps.places.v1.Place.PlusCode.getDefaultInstance()) { getPlusCodeBuilder().mergeFrom(value); @@ -34762,7 +36659,7 @@ public Builder mergePlusCode(com.google.maps.places.v1.Place.PlusCode value) { plusCodeBuilder_.mergeFrom(value); } if (plusCode_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -34778,7 +36675,7 @@ public Builder mergePlusCode(com.google.maps.places.v1.Place.PlusCode value) { * .google.maps.places.v1.Place.PlusCode plus_code = 11; */ public Builder clearPlusCode() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); plusCode_ = null; if (plusCodeBuilder_ != null) { plusCodeBuilder_.dispose(); @@ -34798,7 +36695,7 @@ public Builder clearPlusCode() { * .google.maps.places.v1.Place.PlusCode plus_code = 11; */ public com.google.maps.places.v1.Place.PlusCode.Builder getPlusCodeBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetPlusCodeFieldBuilder().getBuilder(); } @@ -34865,7 +36762,7 @@ public com.google.maps.places.v1.Place.PlusCodeOrBuilder getPlusCodeOrBuilder() * @return Whether the location field is set. */ public boolean hasLocation() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -34905,7 +36802,7 @@ public Builder setLocation(com.google.type.LatLng value) { } else { locationBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -34925,7 +36822,7 @@ public Builder setLocation(com.google.type.LatLng.Builder builderForValue) { } else { locationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -34941,7 +36838,7 @@ public Builder setLocation(com.google.type.LatLng.Builder builderForValue) { */ public Builder mergeLocation(com.google.type.LatLng value) { if (locationBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && location_ != null && location_ != com.google.type.LatLng.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); @@ -34952,7 +36849,7 @@ public Builder mergeLocation(com.google.type.LatLng value) { locationBuilder_.mergeFrom(value); } if (location_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -34968,7 +36865,7 @@ public Builder mergeLocation(com.google.type.LatLng value) { * .google.type.LatLng location = 12; */ public Builder clearLocation() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); @@ -34988,7 +36885,7 @@ public Builder clearLocation() { * .google.type.LatLng location = 12; */ public com.google.type.LatLng.Builder getLocationBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetLocationFieldBuilder().getBuilder(); } @@ -35054,7 +36951,7 @@ public com.google.type.LatLngOrBuilder getLocationOrBuilder() { * @return Whether the viewport field is set. */ public boolean hasViewport() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -35098,7 +36995,7 @@ public Builder setViewport(com.google.geo.type.Viewport value) { } else { viewportBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -35120,7 +37017,7 @@ public Builder setViewport(com.google.geo.type.Viewport.Builder builderForValue) } else { viewportBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -35138,7 +37035,7 @@ public Builder setViewport(com.google.geo.type.Viewport.Builder builderForValue) */ public Builder mergeViewport(com.google.geo.type.Viewport value) { if (viewportBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && viewport_ != null && viewport_ != com.google.geo.type.Viewport.getDefaultInstance()) { getViewportBuilder().mergeFrom(value); @@ -35149,7 +37046,7 @@ public Builder mergeViewport(com.google.geo.type.Viewport value) { viewportBuilder_.mergeFrom(value); } if (viewport_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -35167,7 +37064,7 @@ public Builder mergeViewport(com.google.geo.type.Viewport value) { * .google.geo.type.Viewport viewport = 13; */ public Builder clearViewport() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); viewport_ = null; if (viewportBuilder_ != null) { viewportBuilder_.dispose(); @@ -35189,7 +37086,7 @@ public Builder clearViewport() { * .google.geo.type.Viewport viewport = 13; */ public com.google.geo.type.Viewport.Builder getViewportBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetViewportFieldBuilder().getBuilder(); } @@ -35274,7 +37171,7 @@ public double getRating() { public Builder setRating(double value) { rating_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -35291,7 +37188,7 @@ public Builder setRating(double value) { * @return This builder for chaining. */ public Builder clearRating() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); rating_ = 0D; onChanged(); return this; @@ -35362,7 +37259,7 @@ public Builder setGoogleMapsUri(java.lang.String value) { throw new NullPointerException(); } googleMapsUri_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -35380,7 +37277,7 @@ public Builder setGoogleMapsUri(java.lang.String value) { */ public Builder clearGoogleMapsUri() { googleMapsUri_ = getDefaultInstance().getGoogleMapsUri(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -35403,7 +37300,7 @@ public Builder setGoogleMapsUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); googleMapsUri_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -35482,7 +37379,7 @@ public Builder setWebsiteUri(java.lang.String value) { throw new NullPointerException(); } websiteUri_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -35503,7 +37400,7 @@ public Builder setWebsiteUri(java.lang.String value) { */ public Builder clearWebsiteUri() { websiteUri_ = getDefaultInstance().getWebsiteUri(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -35529,7 +37426,7 @@ public Builder setWebsiteUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); websiteUri_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -35538,9 +37435,9 @@ public Builder setWebsiteUriBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureReviewsIsMutable() { - if (!((bitField0_ & 0x00040000) != 0)) { + if (!((bitField0_ & 0x00080000) != 0)) { reviews_ = new java.util.ArrayList(reviews_); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; } } @@ -35774,7 +37671,7 @@ public Builder addAllReviews( public Builder clearReviews() { if (reviewsBuilder_ == null) { reviews_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); } else { reviewsBuilder_.clear(); @@ -35909,7 +37806,7 @@ public java.util.List getReviewsBuilde com.google.maps.places.v1.Review, com.google.maps.places.v1.Review.Builder, com.google.maps.places.v1.ReviewOrBuilder>( - reviews_, ((bitField0_ & 0x00040000) != 0), getParentForChildren(), isClean()); + reviews_, ((bitField0_ & 0x00080000) != 0), getParentForChildren(), isClean()); reviews_ = null; } return reviewsBuilder_; @@ -35944,7 +37841,7 @@ public java.util.List getReviewsBuilde * @return Whether the regularOpeningHours field is set. */ public boolean hasRegularOpeningHours() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -36006,7 +37903,7 @@ public Builder setRegularOpeningHours(com.google.maps.places.v1.Place.OpeningHou } else { regularOpeningHoursBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -36037,7 +37934,7 @@ public Builder setRegularOpeningHours( } else { regularOpeningHoursBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -36063,7 +37960,7 @@ public Builder setRegularOpeningHours( */ public Builder mergeRegularOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { if (regularOpeningHoursBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && regularOpeningHours_ != null && regularOpeningHours_ != com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()) { @@ -36075,7 +37972,7 @@ public Builder mergeRegularOpeningHours(com.google.maps.places.v1.Place.OpeningH regularOpeningHoursBuilder_.mergeFrom(value); } if (regularOpeningHours_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -36101,7 +37998,7 @@ public Builder mergeRegularOpeningHours(com.google.maps.places.v1.Place.OpeningH * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; */ public Builder clearRegularOpeningHours() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); regularOpeningHours_ = null; if (regularOpeningHoursBuilder_ != null) { regularOpeningHoursBuilder_.dispose(); @@ -36131,7 +38028,7 @@ public Builder clearRegularOpeningHours() { * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; */ public com.google.maps.places.v1.Place.OpeningHours.Builder getRegularOpeningHoursBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return internalGetRegularOpeningHoursFieldBuilder().getBuilder(); } @@ -36218,7 +38115,7 @@ public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularOpeningHo */ @java.lang.Override public boolean hasUtcOffsetMinutes() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -36256,7 +38153,7 @@ public int getUtcOffsetMinutes() { public Builder setUtcOffsetMinutes(int value) { utcOffsetMinutes_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -36275,7 +38172,7 @@ public Builder setUtcOffsetMinutes(int value) { * @return This builder for chaining. */ public Builder clearUtcOffsetMinutes() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); utcOffsetMinutes_ = 0; onChanged(); return this; @@ -36300,7 +38197,7 @@ public Builder clearUtcOffsetMinutes() { * @return Whether the timeZone field is set. */ public boolean hasTimeZone() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -36340,7 +38237,7 @@ public Builder setTimeZone(com.google.type.TimeZone value) { } else { timeZoneBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -36360,7 +38257,7 @@ public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { } else { timeZoneBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -36376,7 +38273,7 @@ public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { */ public Builder mergeTimeZone(com.google.type.TimeZone value) { if (timeZoneBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) + if (((bitField0_ & 0x00400000) != 0) && timeZone_ != null && timeZone_ != com.google.type.TimeZone.getDefaultInstance()) { getTimeZoneBuilder().mergeFrom(value); @@ -36387,7 +38284,7 @@ public Builder mergeTimeZone(com.google.type.TimeZone value) { timeZoneBuilder_.mergeFrom(value); } if (timeZone_ != null) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -36403,7 +38300,7 @@ public Builder mergeTimeZone(com.google.type.TimeZone value) { * .google.type.TimeZone time_zone = 88; */ public Builder clearTimeZone() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); timeZone_ = null; if (timeZoneBuilder_ != null) { timeZoneBuilder_.dispose(); @@ -36423,7 +38320,7 @@ public Builder clearTimeZone() { * .google.type.TimeZone time_zone = 88; */ public com.google.type.TimeZone.Builder getTimeZoneBuilder() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return internalGetTimeZoneFieldBuilder().getBuilder(); } @@ -36475,9 +38372,9 @@ public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { java.util.Collections.emptyList(); private void ensurePhotosIsMutable() { - if (!((bitField0_ & 0x00400000) != 0)) { + if (!((bitField0_ & 0x00800000) != 0)) { photos_ = new java.util.ArrayList(photos_); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; } } @@ -36711,7 +38608,7 @@ public Builder addAllPhotos( public Builder clearPhotos() { if (photosBuilder_ == null) { photos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); } else { photosBuilder_.clear(); @@ -36846,7 +38743,7 @@ public java.util.List getPhotosBuilderL com.google.maps.places.v1.Photo, com.google.maps.places.v1.Photo.Builder, com.google.maps.places.v1.PhotoOrBuilder>( - photos_, ((bitField0_ & 0x00400000) != 0), getParentForChildren(), isClean()); + photos_, ((bitField0_ & 0x00800000) != 0), getParentForChildren(), isClean()); photos_ = null; } return photosBuilder_; @@ -36917,7 +38814,7 @@ public Builder setAdrFormatAddress(java.lang.String value) { throw new NullPointerException(); } adrFormatAddress_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -36935,7 +38832,7 @@ public Builder setAdrFormatAddress(java.lang.String value) { */ public Builder clearAdrFormatAddress() { adrFormatAddress_ = getDefaultInstance().getAdrFormatAddress(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } @@ -36958,7 +38855,7 @@ public Builder setAdrFormatAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); adrFormatAddress_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -36995,7 +38892,7 @@ public int getBusinessStatusValue() { */ public Builder setBusinessStatusValue(int value) { businessStatus_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -37034,7 +38931,7 @@ public Builder setBusinessStatus(com.google.maps.places.v1.Place.BusinessStatus if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; businessStatus_ = value.getNumber(); onChanged(); return this; @@ -37052,7 +38949,7 @@ public Builder setBusinessStatus(com.google.maps.places.v1.Place.BusinessStatus * @return This builder for chaining. */ public Builder clearBusinessStatus() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); businessStatus_ = 0; onChanged(); return this; @@ -37090,7 +38987,7 @@ public int getPriceLevelValue() { */ public Builder setPriceLevelValue(int value) { priceLevel_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -37129,7 +39026,7 @@ public Builder setPriceLevel(com.google.maps.places.v1.PriceLevel value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; priceLevel_ = value.getNumber(); onChanged(); return this; @@ -37147,7 +39044,7 @@ public Builder setPriceLevel(com.google.maps.places.v1.PriceLevel value) { * @return This builder for chaining. */ public Builder clearPriceLevel() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); priceLevel_ = 0; onChanged(); return this; @@ -37157,10 +39054,10 @@ public Builder clearPriceLevel() { java.util.Collections.emptyList(); private void ensureAttributionsIsMutable() { - if (!((bitField0_ & 0x04000000) != 0)) { + if (!((bitField0_ & 0x08000000) != 0)) { attributions_ = new java.util.ArrayList(attributions_); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; } } @@ -37386,7 +39283,7 @@ public Builder addAllAttributions( public Builder clearAttributions() { if (attributionsBuilder_ == null) { attributions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); onChanged(); } else { attributionsBuilder_.clear(); @@ -37516,7 +39413,7 @@ public com.google.maps.places.v1.Place.Attribution.Builder addAttributionsBuilde com.google.maps.places.v1.Place.Attribution, com.google.maps.places.v1.Place.Attribution.Builder, com.google.maps.places.v1.Place.AttributionOrBuilder>( - attributions_, ((bitField0_ & 0x04000000) != 0), getParentForChildren(), isClean()); + attributions_, ((bitField0_ & 0x08000000) != 0), getParentForChildren(), isClean()); attributions_ = null; } return attributionsBuilder_; @@ -37537,7 +39434,7 @@ public com.google.maps.places.v1.Place.Attribution.Builder addAttributionsBuilde */ @java.lang.Override public boolean hasUserRatingCount() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -37571,7 +39468,7 @@ public int getUserRatingCount() { public Builder setUserRatingCount(int value) { userRatingCount_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -37588,7 +39485,7 @@ public Builder setUserRatingCount(int value) { * @return This builder for chaining. */ public Builder clearUserRatingCount() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); userRatingCount_ = 0; onChanged(); return this; @@ -37662,7 +39559,7 @@ public Builder setIconMaskBaseUri(java.lang.String value) { throw new NullPointerException(); } iconMaskBaseUri_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -37681,7 +39578,7 @@ public Builder setIconMaskBaseUri(java.lang.String value) { */ public Builder clearIconMaskBaseUri() { iconMaskBaseUri_ = getDefaultInstance().getIconMaskBaseUri(); - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x20000000); onChanged(); return this; } @@ -37705,7 +39602,7 @@ public Builder setIconMaskBaseUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); iconMaskBaseUri_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -37775,7 +39672,7 @@ public Builder setIconBackgroundColor(java.lang.String value) { throw new NullPointerException(); } iconBackgroundColor_ = value; - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -37793,7 +39690,7 @@ public Builder setIconBackgroundColor(java.lang.String value) { */ public Builder clearIconBackgroundColor() { iconBackgroundColor_ = getDefaultInstance().getIconBackgroundColor(); - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } @@ -37816,7 +39713,7 @@ public Builder setIconBackgroundColorBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); iconBackgroundColor_ = value; - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -37836,7 +39733,7 @@ public Builder setIconBackgroundColorBytes(com.google.protobuf.ByteString value) */ @java.lang.Override public boolean hasTakeout() { - return ((bitField0_ & 0x40000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** @@ -37870,7 +39767,7 @@ public boolean getTakeout() { public Builder setTakeout(boolean value) { takeout_ = value; - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -37887,7 +39784,7 @@ public Builder setTakeout(boolean value) { * @return This builder for chaining. */ public Builder clearTakeout() { - bitField0_ = (bitField0_ & ~0x40000000); + bitField0_ = (bitField0_ & ~0x80000000); takeout_ = false; onChanged(); return this; @@ -37908,7 +39805,7 @@ public Builder clearTakeout() { */ @java.lang.Override public boolean hasDelivery() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField1_ & 0x00000001) != 0); } /** @@ -37942,7 +39839,7 @@ public boolean getDelivery() { public Builder setDelivery(boolean value) { delivery_ = value; - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -37959,7 +39856,7 @@ public Builder setDelivery(boolean value) { * @return This builder for chaining. */ public Builder clearDelivery() { - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000001); delivery_ = false; onChanged(); return this; @@ -37980,7 +39877,7 @@ public Builder clearDelivery() { */ @java.lang.Override public boolean hasDineIn() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** @@ -38014,7 +39911,7 @@ public boolean getDineIn() { public Builder setDineIn(boolean value) { dineIn_ = value; - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -38031,7 +39928,7 @@ public Builder setDineIn(boolean value) { * @return This builder for chaining. */ public Builder clearDineIn() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); dineIn_ = false; onChanged(); return this; @@ -38052,7 +39949,7 @@ public Builder clearDineIn() { */ @java.lang.Override public boolean hasCurbsidePickup() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000004) != 0); } /** @@ -38086,7 +39983,7 @@ public boolean getCurbsidePickup() { public Builder setCurbsidePickup(boolean value) { curbsidePickup_ = value; - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; onChanged(); return this; } @@ -38103,7 +40000,7 @@ public Builder setCurbsidePickup(boolean value) { * @return This builder for chaining. */ public Builder clearCurbsidePickup() { - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000004); curbsidePickup_ = false; onChanged(); return this; @@ -38124,7 +40021,7 @@ public Builder clearCurbsidePickup() { */ @java.lang.Override public boolean hasReservable() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** @@ -38158,7 +40055,7 @@ public boolean getReservable() { public Builder setReservable(boolean value) { reservable_ = value; - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -38175,7 +40072,7 @@ public Builder setReservable(boolean value) { * @return This builder for chaining. */ public Builder clearReservable() { - bitField1_ = (bitField1_ & ~0x00000004); + bitField1_ = (bitField1_ & ~0x00000008); reservable_ = false; onChanged(); return this; @@ -38196,7 +40093,7 @@ public Builder clearReservable() { */ @java.lang.Override public boolean hasServesBreakfast() { - return ((bitField1_ & 0x00000008) != 0); + return ((bitField1_ & 0x00000010) != 0); } /** @@ -38230,7 +40127,7 @@ public boolean getServesBreakfast() { public Builder setServesBreakfast(boolean value) { servesBreakfast_ = value; - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -38247,7 +40144,7 @@ public Builder setServesBreakfast(boolean value) { * @return This builder for chaining. */ public Builder clearServesBreakfast() { - bitField1_ = (bitField1_ & ~0x00000008); + bitField1_ = (bitField1_ & ~0x00000010); servesBreakfast_ = false; onChanged(); return this; @@ -38268,7 +40165,7 @@ public Builder clearServesBreakfast() { */ @java.lang.Override public boolean hasServesLunch() { - return ((bitField1_ & 0x00000010) != 0); + return ((bitField1_ & 0x00000020) != 0); } /** @@ -38302,7 +40199,7 @@ public boolean getServesLunch() { public Builder setServesLunch(boolean value) { servesLunch_ = value; - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000020; onChanged(); return this; } @@ -38319,7 +40216,7 @@ public Builder setServesLunch(boolean value) { * @return This builder for chaining. */ public Builder clearServesLunch() { - bitField1_ = (bitField1_ & ~0x00000010); + bitField1_ = (bitField1_ & ~0x00000020); servesLunch_ = false; onChanged(); return this; @@ -38340,7 +40237,7 @@ public Builder clearServesLunch() { */ @java.lang.Override public boolean hasServesDinner() { - return ((bitField1_ & 0x00000020) != 0); + return ((bitField1_ & 0x00000040) != 0); } /** @@ -38374,7 +40271,7 @@ public boolean getServesDinner() { public Builder setServesDinner(boolean value) { servesDinner_ = value; - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -38391,7 +40288,7 @@ public Builder setServesDinner(boolean value) { * @return This builder for chaining. */ public Builder clearServesDinner() { - bitField1_ = (bitField1_ & ~0x00000020); + bitField1_ = (bitField1_ & ~0x00000040); servesDinner_ = false; onChanged(); return this; @@ -38412,7 +40309,7 @@ public Builder clearServesDinner() { */ @java.lang.Override public boolean hasServesBeer() { - return ((bitField1_ & 0x00000040) != 0); + return ((bitField1_ & 0x00000080) != 0); } /** @@ -38446,7 +40343,7 @@ public boolean getServesBeer() { public Builder setServesBeer(boolean value) { servesBeer_ = value; - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -38463,7 +40360,7 @@ public Builder setServesBeer(boolean value) { * @return This builder for chaining. */ public Builder clearServesBeer() { - bitField1_ = (bitField1_ & ~0x00000040); + bitField1_ = (bitField1_ & ~0x00000080); servesBeer_ = false; onChanged(); return this; @@ -38484,7 +40381,7 @@ public Builder clearServesBeer() { */ @java.lang.Override public boolean hasServesWine() { - return ((bitField1_ & 0x00000080) != 0); + return ((bitField1_ & 0x00000100) != 0); } /** @@ -38518,7 +40415,7 @@ public boolean getServesWine() { public Builder setServesWine(boolean value) { servesWine_ = value; - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000100; onChanged(); return this; } @@ -38535,7 +40432,7 @@ public Builder setServesWine(boolean value) { * @return This builder for chaining. */ public Builder clearServesWine() { - bitField1_ = (bitField1_ & ~0x00000080); + bitField1_ = (bitField1_ & ~0x00000100); servesWine_ = false; onChanged(); return this; @@ -38556,7 +40453,7 @@ public Builder clearServesWine() { */ @java.lang.Override public boolean hasServesBrunch() { - return ((bitField1_ & 0x00000100) != 0); + return ((bitField1_ & 0x00000200) != 0); } /** @@ -38590,7 +40487,7 @@ public boolean getServesBrunch() { public Builder setServesBrunch(boolean value) { servesBrunch_ = value; - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000200; onChanged(); return this; } @@ -38607,7 +40504,7 @@ public Builder setServesBrunch(boolean value) { * @return This builder for chaining. */ public Builder clearServesBrunch() { - bitField1_ = (bitField1_ & ~0x00000100); + bitField1_ = (bitField1_ & ~0x00000200); servesBrunch_ = false; onChanged(); return this; @@ -38628,7 +40525,7 @@ public Builder clearServesBrunch() { */ @java.lang.Override public boolean hasServesVegetarianFood() { - return ((bitField1_ & 0x00000200) != 0); + return ((bitField1_ & 0x00000400) != 0); } /** @@ -38662,7 +40559,7 @@ public boolean getServesVegetarianFood() { public Builder setServesVegetarianFood(boolean value) { servesVegetarianFood_ = value; - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; onChanged(); return this; } @@ -38679,7 +40576,7 @@ public Builder setServesVegetarianFood(boolean value) { * @return This builder for chaining. */ public Builder clearServesVegetarianFood() { - bitField1_ = (bitField1_ & ~0x00000200); + bitField1_ = (bitField1_ & ~0x00000400); servesVegetarianFood_ = false; onChanged(); return this; @@ -38707,7 +40604,7 @@ public Builder clearServesVegetarianFood() { * @return Whether the currentOpeningHours field is set. */ public boolean hasCurrentOpeningHours() { - return ((bitField1_ & 0x00000400) != 0); + return ((bitField1_ & 0x00000800) != 0); } /** @@ -38755,7 +40652,7 @@ public Builder setCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningHou } else { currentOpeningHoursBuilder_.setMessage(value); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; onChanged(); return this; } @@ -38779,7 +40676,7 @@ public Builder setCurrentOpeningHours( } else { currentOpeningHoursBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; onChanged(); return this; } @@ -38798,7 +40695,7 @@ public Builder setCurrentOpeningHours( */ public Builder mergeCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { if (currentOpeningHoursBuilder_ == null) { - if (((bitField1_ & 0x00000400) != 0) + if (((bitField1_ & 0x00000800) != 0) && currentOpeningHours_ != null && currentOpeningHours_ != com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()) { @@ -38810,7 +40707,7 @@ public Builder mergeCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningH currentOpeningHoursBuilder_.mergeFrom(value); } if (currentOpeningHours_ != null) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; onChanged(); } return this; @@ -38829,7 +40726,7 @@ public Builder mergeCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningH * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; */ public Builder clearCurrentOpeningHours() { - bitField1_ = (bitField1_ & ~0x00000400); + bitField1_ = (bitField1_ & ~0x00000800); currentOpeningHours_ = null; if (currentOpeningHoursBuilder_ != null) { currentOpeningHoursBuilder_.dispose(); @@ -38852,7 +40749,7 @@ public Builder clearCurrentOpeningHours() { * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; */ public com.google.maps.places.v1.Place.OpeningHours.Builder getCurrentOpeningHoursBuilder() { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; onChanged(); return internalGetCurrentOpeningHoursFieldBuilder().getBuilder(); } @@ -38912,11 +40809,11 @@ public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getCurrentOpeningHo currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); private void ensureCurrentSecondaryOpeningHoursIsMutable() { - if (!((bitField1_ & 0x00000800) != 0)) { + if (!((bitField1_ & 0x00001000) != 0)) { currentSecondaryOpeningHours_ = new java.util.ArrayList( currentSecondaryOpeningHours_); - bitField1_ |= 0x00000800; + bitField1_ |= 0x00001000; } } @@ -39246,7 +41143,7 @@ public Builder addAllCurrentSecondaryOpeningHours( public Builder clearCurrentSecondaryOpeningHours() { if (currentSecondaryOpeningHoursBuilder_ == null) { currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000800); + bitField1_ = (bitField1_ & ~0x00001000); onChanged(); } else { currentSecondaryOpeningHoursBuilder_.clear(); @@ -39443,7 +41340,7 @@ public Builder removeCurrentSecondaryOpeningHours(int index) { com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( currentSecondaryOpeningHours_, - ((bitField1_ & 0x00000800) != 0), + ((bitField1_ & 0x00001000) != 0), getParentForChildren(), isClean()); currentSecondaryOpeningHours_ = null; @@ -39455,11 +41352,11 @@ public Builder removeCurrentSecondaryOpeningHours(int index) { regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); private void ensureRegularSecondaryOpeningHoursIsMutable() { - if (!((bitField1_ & 0x00001000) != 0)) { + if (!((bitField1_ & 0x00002000) != 0)) { regularSecondaryOpeningHours_ = new java.util.ArrayList( regularSecondaryOpeningHours_); - bitField1_ |= 0x00001000; + bitField1_ |= 0x00002000; } } @@ -39767,7 +41664,7 @@ public Builder addAllRegularSecondaryOpeningHours( public Builder clearRegularSecondaryOpeningHours() { if (regularSecondaryOpeningHoursBuilder_ == null) { regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00002000); onChanged(); } else { regularSecondaryOpeningHoursBuilder_.clear(); @@ -39950,7 +41847,7 @@ public Builder removeRegularSecondaryOpeningHours(int index) { com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( regularSecondaryOpeningHours_, - ((bitField1_ & 0x00001000) != 0), + ((bitField1_ & 0x00002000) != 0), getParentForChildren(), isClean()); regularSecondaryOpeningHours_ = null; @@ -39979,7 +41876,7 @@ public Builder removeRegularSecondaryOpeningHours(int index) { * @return Whether the editorialSummary field is set. */ public boolean hasEditorialSummary() { - return ((bitField1_ & 0x00002000) != 0); + return ((bitField1_ & 0x00004000) != 0); } /** @@ -40025,7 +41922,7 @@ public Builder setEditorialSummary(com.google.type.LocalizedText value) { } else { editorialSummaryBuilder_.setMessage(value); } - bitField1_ |= 0x00002000; + bitField1_ |= 0x00004000; onChanged(); return this; } @@ -40047,7 +41944,7 @@ public Builder setEditorialSummary(com.google.type.LocalizedText.Builder builder } else { editorialSummaryBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00002000; + bitField1_ |= 0x00004000; onChanged(); return this; } @@ -40065,7 +41962,7 @@ public Builder setEditorialSummary(com.google.type.LocalizedText.Builder builder */ public Builder mergeEditorialSummary(com.google.type.LocalizedText value) { if (editorialSummaryBuilder_ == null) { - if (((bitField1_ & 0x00002000) != 0) + if (((bitField1_ & 0x00004000) != 0) && editorialSummary_ != null && editorialSummary_ != com.google.type.LocalizedText.getDefaultInstance()) { getEditorialSummaryBuilder().mergeFrom(value); @@ -40076,7 +41973,7 @@ public Builder mergeEditorialSummary(com.google.type.LocalizedText value) { editorialSummaryBuilder_.mergeFrom(value); } if (editorialSummary_ != null) { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00004000; onChanged(); } return this; @@ -40094,7 +41991,7 @@ public Builder mergeEditorialSummary(com.google.type.LocalizedText value) { * .google.type.LocalizedText editorial_summary = 52; */ public Builder clearEditorialSummary() { - bitField1_ = (bitField1_ & ~0x00002000); + bitField1_ = (bitField1_ & ~0x00004000); editorialSummary_ = null; if (editorialSummaryBuilder_ != null) { editorialSummaryBuilder_.dispose(); @@ -40116,7 +42013,7 @@ public Builder clearEditorialSummary() { * .google.type.LocalizedText editorial_summary = 52; */ public com.google.type.LocalizedText.Builder getEditorialSummaryBuilder() { - bitField1_ |= 0x00002000; + bitField1_ |= 0x00004000; onChanged(); return internalGetEditorialSummaryFieldBuilder().getBuilder(); } @@ -40185,7 +42082,7 @@ public com.google.type.LocalizedTextOrBuilder getEditorialSummaryOrBuilder() { */ @java.lang.Override public boolean hasOutdoorSeating() { - return ((bitField1_ & 0x00004000) != 0); + return ((bitField1_ & 0x00008000) != 0); } /** @@ -40219,7 +42116,7 @@ public boolean getOutdoorSeating() { public Builder setOutdoorSeating(boolean value) { outdoorSeating_ = value; - bitField1_ |= 0x00004000; + bitField1_ |= 0x00008000; onChanged(); return this; } @@ -40236,7 +42133,7 @@ public Builder setOutdoorSeating(boolean value) { * @return This builder for chaining. */ public Builder clearOutdoorSeating() { - bitField1_ = (bitField1_ & ~0x00004000); + bitField1_ = (bitField1_ & ~0x00008000); outdoorSeating_ = false; onChanged(); return this; @@ -40257,7 +42154,7 @@ public Builder clearOutdoorSeating() { */ @java.lang.Override public boolean hasLiveMusic() { - return ((bitField1_ & 0x00008000) != 0); + return ((bitField1_ & 0x00010000) != 0); } /** @@ -40291,7 +42188,7 @@ public boolean getLiveMusic() { public Builder setLiveMusic(boolean value) { liveMusic_ = value; - bitField1_ |= 0x00008000; + bitField1_ |= 0x00010000; onChanged(); return this; } @@ -40308,7 +42205,7 @@ public Builder setLiveMusic(boolean value) { * @return This builder for chaining. */ public Builder clearLiveMusic() { - bitField1_ = (bitField1_ & ~0x00008000); + bitField1_ = (bitField1_ & ~0x00010000); liveMusic_ = false; onChanged(); return this; @@ -40329,7 +42226,7 @@ public Builder clearLiveMusic() { */ @java.lang.Override public boolean hasMenuForChildren() { - return ((bitField1_ & 0x00010000) != 0); + return ((bitField1_ & 0x00020000) != 0); } /** @@ -40363,7 +42260,7 @@ public boolean getMenuForChildren() { public Builder setMenuForChildren(boolean value) { menuForChildren_ = value; - bitField1_ |= 0x00010000; + bitField1_ |= 0x00020000; onChanged(); return this; } @@ -40380,7 +42277,7 @@ public Builder setMenuForChildren(boolean value) { * @return This builder for chaining. */ public Builder clearMenuForChildren() { - bitField1_ = (bitField1_ & ~0x00010000); + bitField1_ = (bitField1_ & ~0x00020000); menuForChildren_ = false; onChanged(); return this; @@ -40401,7 +42298,7 @@ public Builder clearMenuForChildren() { */ @java.lang.Override public boolean hasServesCocktails() { - return ((bitField1_ & 0x00020000) != 0); + return ((bitField1_ & 0x00040000) != 0); } /** @@ -40435,7 +42332,7 @@ public boolean getServesCocktails() { public Builder setServesCocktails(boolean value) { servesCocktails_ = value; - bitField1_ |= 0x00020000; + bitField1_ |= 0x00040000; onChanged(); return this; } @@ -40452,7 +42349,7 @@ public Builder setServesCocktails(boolean value) { * @return This builder for chaining. */ public Builder clearServesCocktails() { - bitField1_ = (bitField1_ & ~0x00020000); + bitField1_ = (bitField1_ & ~0x00040000); servesCocktails_ = false; onChanged(); return this; @@ -40473,7 +42370,7 @@ public Builder clearServesCocktails() { */ @java.lang.Override public boolean hasServesDessert() { - return ((bitField1_ & 0x00040000) != 0); + return ((bitField1_ & 0x00080000) != 0); } /** @@ -40507,7 +42404,7 @@ public boolean getServesDessert() { public Builder setServesDessert(boolean value) { servesDessert_ = value; - bitField1_ |= 0x00040000; + bitField1_ |= 0x00080000; onChanged(); return this; } @@ -40524,7 +42421,7 @@ public Builder setServesDessert(boolean value) { * @return This builder for chaining. */ public Builder clearServesDessert() { - bitField1_ = (bitField1_ & ~0x00040000); + bitField1_ = (bitField1_ & ~0x00080000); servesDessert_ = false; onChanged(); return this; @@ -40545,7 +42442,7 @@ public Builder clearServesDessert() { */ @java.lang.Override public boolean hasServesCoffee() { - return ((bitField1_ & 0x00080000) != 0); + return ((bitField1_ & 0x00100000) != 0); } /** @@ -40579,7 +42476,7 @@ public boolean getServesCoffee() { public Builder setServesCoffee(boolean value) { servesCoffee_ = value; - bitField1_ |= 0x00080000; + bitField1_ |= 0x00100000; onChanged(); return this; } @@ -40596,7 +42493,7 @@ public Builder setServesCoffee(boolean value) { * @return This builder for chaining. */ public Builder clearServesCoffee() { - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00100000); servesCoffee_ = false; onChanged(); return this; @@ -40617,7 +42514,7 @@ public Builder clearServesCoffee() { */ @java.lang.Override public boolean hasGoodForChildren() { - return ((bitField1_ & 0x00100000) != 0); + return ((bitField1_ & 0x00200000) != 0); } /** @@ -40651,7 +42548,7 @@ public boolean getGoodForChildren() { public Builder setGoodForChildren(boolean value) { goodForChildren_ = value; - bitField1_ |= 0x00100000; + bitField1_ |= 0x00200000; onChanged(); return this; } @@ -40668,7 +42565,7 @@ public Builder setGoodForChildren(boolean value) { * @return This builder for chaining. */ public Builder clearGoodForChildren() { - bitField1_ = (bitField1_ & ~0x00100000); + bitField1_ = (bitField1_ & ~0x00200000); goodForChildren_ = false; onChanged(); return this; @@ -40689,7 +42586,7 @@ public Builder clearGoodForChildren() { */ @java.lang.Override public boolean hasAllowsDogs() { - return ((bitField1_ & 0x00200000) != 0); + return ((bitField1_ & 0x00400000) != 0); } /** @@ -40723,7 +42620,7 @@ public boolean getAllowsDogs() { public Builder setAllowsDogs(boolean value) { allowsDogs_ = value; - bitField1_ |= 0x00200000; + bitField1_ |= 0x00400000; onChanged(); return this; } @@ -40740,7 +42637,7 @@ public Builder setAllowsDogs(boolean value) { * @return This builder for chaining. */ public Builder clearAllowsDogs() { - bitField1_ = (bitField1_ & ~0x00200000); + bitField1_ = (bitField1_ & ~0x00400000); allowsDogs_ = false; onChanged(); return this; @@ -40761,7 +42658,7 @@ public Builder clearAllowsDogs() { */ @java.lang.Override public boolean hasRestroom() { - return ((bitField1_ & 0x00400000) != 0); + return ((bitField1_ & 0x00800000) != 0); } /** @@ -40795,7 +42692,7 @@ public boolean getRestroom() { public Builder setRestroom(boolean value) { restroom_ = value; - bitField1_ |= 0x00400000; + bitField1_ |= 0x00800000; onChanged(); return this; } @@ -40812,7 +42709,7 @@ public Builder setRestroom(boolean value) { * @return This builder for chaining. */ public Builder clearRestroom() { - bitField1_ = (bitField1_ & ~0x00400000); + bitField1_ = (bitField1_ & ~0x00800000); restroom_ = false; onChanged(); return this; @@ -40833,7 +42730,7 @@ public Builder clearRestroom() { */ @java.lang.Override public boolean hasGoodForGroups() { - return ((bitField1_ & 0x00800000) != 0); + return ((bitField1_ & 0x01000000) != 0); } /** @@ -40867,7 +42764,7 @@ public boolean getGoodForGroups() { public Builder setGoodForGroups(boolean value) { goodForGroups_ = value; - bitField1_ |= 0x00800000; + bitField1_ |= 0x01000000; onChanged(); return this; } @@ -40884,7 +42781,7 @@ public Builder setGoodForGroups(boolean value) { * @return This builder for chaining. */ public Builder clearGoodForGroups() { - bitField1_ = (bitField1_ & ~0x00800000); + bitField1_ = (bitField1_ & ~0x01000000); goodForGroups_ = false; onChanged(); return this; @@ -40905,7 +42802,7 @@ public Builder clearGoodForGroups() { */ @java.lang.Override public boolean hasGoodForWatchingSports() { - return ((bitField1_ & 0x01000000) != 0); + return ((bitField1_ & 0x02000000) != 0); } /** @@ -40939,7 +42836,7 @@ public boolean getGoodForWatchingSports() { public Builder setGoodForWatchingSports(boolean value) { goodForWatchingSports_ = value; - bitField1_ |= 0x01000000; + bitField1_ |= 0x02000000; onChanged(); return this; } @@ -40956,7 +42853,7 @@ public Builder setGoodForWatchingSports(boolean value) { * @return This builder for chaining. */ public Builder clearGoodForWatchingSports() { - bitField1_ = (bitField1_ & ~0x01000000); + bitField1_ = (bitField1_ & ~0x02000000); goodForWatchingSports_ = false; onChanged(); return this; @@ -40982,7 +42879,7 @@ public Builder clearGoodForWatchingSports() { * @return Whether the paymentOptions field is set. */ public boolean hasPaymentOptions() { - return ((bitField1_ & 0x02000000) != 0); + return ((bitField1_ & 0x04000000) != 0); } /** @@ -41026,7 +42923,7 @@ public Builder setPaymentOptions(com.google.maps.places.v1.Place.PaymentOptions } else { paymentOptionsBuilder_.setMessage(value); } - bitField1_ |= 0x02000000; + bitField1_ |= 0x04000000; onChanged(); return this; } @@ -41048,7 +42945,7 @@ public Builder setPaymentOptions( } else { paymentOptionsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x02000000; + bitField1_ |= 0x04000000; onChanged(); return this; } @@ -41065,7 +42962,7 @@ public Builder setPaymentOptions( */ public Builder mergePaymentOptions(com.google.maps.places.v1.Place.PaymentOptions value) { if (paymentOptionsBuilder_ == null) { - if (((bitField1_ & 0x02000000) != 0) + if (((bitField1_ & 0x04000000) != 0) && paymentOptions_ != null && paymentOptions_ != com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance()) { @@ -41077,7 +42974,7 @@ public Builder mergePaymentOptions(com.google.maps.places.v1.Place.PaymentOption paymentOptionsBuilder_.mergeFrom(value); } if (paymentOptions_ != null) { - bitField1_ |= 0x02000000; + bitField1_ |= 0x04000000; onChanged(); } return this; @@ -41094,7 +42991,7 @@ public Builder mergePaymentOptions(com.google.maps.places.v1.Place.PaymentOption * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; */ public Builder clearPaymentOptions() { - bitField1_ = (bitField1_ & ~0x02000000); + bitField1_ = (bitField1_ & ~0x04000000); paymentOptions_ = null; if (paymentOptionsBuilder_ != null) { paymentOptionsBuilder_.dispose(); @@ -41115,7 +43012,7 @@ public Builder clearPaymentOptions() { * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; */ public com.google.maps.places.v1.Place.PaymentOptions.Builder getPaymentOptionsBuilder() { - bitField1_ |= 0x02000000; + bitField1_ |= 0x04000000; onChanged(); return internalGetPaymentOptionsFieldBuilder().getBuilder(); } @@ -41186,7 +43083,7 @@ public com.google.maps.places.v1.Place.PaymentOptionsOrBuilder getPaymentOptions * @return Whether the parkingOptions field is set. */ public boolean hasParkingOptions() { - return ((bitField1_ & 0x04000000) != 0); + return ((bitField1_ & 0x08000000) != 0); } /** @@ -41228,7 +43125,7 @@ public Builder setParkingOptions(com.google.maps.places.v1.Place.ParkingOptions } else { parkingOptionsBuilder_.setMessage(value); } - bitField1_ |= 0x04000000; + bitField1_ |= 0x08000000; onChanged(); return this; } @@ -41249,7 +43146,7 @@ public Builder setParkingOptions( } else { parkingOptionsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x04000000; + bitField1_ |= 0x08000000; onChanged(); return this; } @@ -41265,7 +43162,7 @@ public Builder setParkingOptions( */ public Builder mergeParkingOptions(com.google.maps.places.v1.Place.ParkingOptions value) { if (parkingOptionsBuilder_ == null) { - if (((bitField1_ & 0x04000000) != 0) + if (((bitField1_ & 0x08000000) != 0) && parkingOptions_ != null && parkingOptions_ != com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance()) { @@ -41277,7 +43174,7 @@ public Builder mergeParkingOptions(com.google.maps.places.v1.Place.ParkingOption parkingOptionsBuilder_.mergeFrom(value); } if (parkingOptions_ != null) { - bitField1_ |= 0x04000000; + bitField1_ |= 0x08000000; onChanged(); } return this; @@ -41293,7 +43190,7 @@ public Builder mergeParkingOptions(com.google.maps.places.v1.Place.ParkingOption * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; */ public Builder clearParkingOptions() { - bitField1_ = (bitField1_ & ~0x04000000); + bitField1_ = (bitField1_ & ~0x08000000); parkingOptions_ = null; if (parkingOptionsBuilder_ != null) { parkingOptionsBuilder_.dispose(); @@ -41313,7 +43210,7 @@ public Builder clearParkingOptions() { * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; */ public com.google.maps.places.v1.Place.ParkingOptions.Builder getParkingOptionsBuilder() { - bitField1_ |= 0x04000000; + bitField1_ |= 0x08000000; onChanged(); return internalGetParkingOptionsFieldBuilder().getBuilder(); } @@ -41367,11 +43264,11 @@ public com.google.maps.places.v1.Place.ParkingOptionsOrBuilder getParkingOptions java.util.Collections.emptyList(); private void ensureSubDestinationsIsMutable() { - if (!((bitField1_ & 0x08000000) != 0)) { + if (!((bitField1_ & 0x10000000) != 0)) { subDestinations_ = new java.util.ArrayList( subDestinations_); - bitField1_ |= 0x08000000; + bitField1_ |= 0x10000000; } } @@ -41599,7 +43496,7 @@ public Builder addAllSubDestinations( public Builder clearSubDestinations() { if (subDestinationsBuilder_ == null) { subDestinations_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x08000000); + bitField1_ = (bitField1_ & ~0x10000000); onChanged(); } else { subDestinationsBuilder_.clear(); @@ -41732,7 +43629,7 @@ public com.google.maps.places.v1.Place.SubDestination.Builder addSubDestinations com.google.maps.places.v1.Place.SubDestination.Builder, com.google.maps.places.v1.Place.SubDestinationOrBuilder>( subDestinations_, - ((bitField1_ & 0x08000000) != 0), + ((bitField1_ & 0x10000000) != 0), getParentForChildren(), isClean()); subDestinations_ = null; @@ -41760,7 +43657,7 @@ public com.google.maps.places.v1.Place.SubDestination.Builder addSubDestinations * @return Whether the accessibilityOptions field is set. */ public boolean hasAccessibilityOptions() { - return ((bitField1_ & 0x10000000) != 0); + return ((bitField1_ & 0x20000000) != 0); } /** @@ -41805,7 +43702,7 @@ public Builder setAccessibilityOptions( } else { accessibilityOptionsBuilder_.setMessage(value); } - bitField1_ |= 0x10000000; + bitField1_ |= 0x20000000; onChanged(); return this; } @@ -41827,7 +43724,7 @@ public Builder setAccessibilityOptions( } else { accessibilityOptionsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x10000000; + bitField1_ |= 0x20000000; onChanged(); return this; } @@ -41845,7 +43742,7 @@ public Builder setAccessibilityOptions( public Builder mergeAccessibilityOptions( com.google.maps.places.v1.Place.AccessibilityOptions value) { if (accessibilityOptionsBuilder_ == null) { - if (((bitField1_ & 0x10000000) != 0) + if (((bitField1_ & 0x20000000) != 0) && accessibilityOptions_ != null && accessibilityOptions_ != com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance()) { @@ -41857,7 +43754,7 @@ public Builder mergeAccessibilityOptions( accessibilityOptionsBuilder_.mergeFrom(value); } if (accessibilityOptions_ != null) { - bitField1_ |= 0x10000000; + bitField1_ |= 0x20000000; onChanged(); } return this; @@ -41874,7 +43771,7 @@ public Builder mergeAccessibilityOptions( *
*/ public Builder clearAccessibilityOptions() { - bitField1_ = (bitField1_ & ~0x10000000); + bitField1_ = (bitField1_ & ~0x20000000); accessibilityOptions_ = null; if (accessibilityOptionsBuilder_ != null) { accessibilityOptionsBuilder_.dispose(); @@ -41896,7 +43793,7 @@ public Builder clearAccessibilityOptions() { */ public com.google.maps.places.v1.Place.AccessibilityOptions.Builder getAccessibilityOptionsBuilder() { - bitField1_ |= 0x10000000; + bitField1_ |= 0x20000000; onChanged(); return internalGetAccessibilityOptionsFieldBuilder().getBuilder(); } @@ -41969,7 +43866,7 @@ public Builder clearAccessibilityOptions() { * @return Whether the fuelOptions field is set. */ public boolean hasFuelOptions() { - return ((bitField1_ & 0x20000000) != 0); + return ((bitField1_ & 0x40000000) != 0); } /** @@ -42013,7 +43910,7 @@ public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions value) { } else { fuelOptionsBuilder_.setMessage(value); } - bitField1_ |= 0x20000000; + bitField1_ |= 0x40000000; onChanged(); return this; } @@ -42034,7 +43931,7 @@ public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions.Builder buil } else { fuelOptionsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x20000000; + bitField1_ |= 0x40000000; onChanged(); return this; } @@ -42051,7 +43948,7 @@ public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions.Builder buil */ public Builder mergeFuelOptions(com.google.maps.places.v1.FuelOptions value) { if (fuelOptionsBuilder_ == null) { - if (((bitField1_ & 0x20000000) != 0) + if (((bitField1_ & 0x40000000) != 0) && fuelOptions_ != null && fuelOptions_ != com.google.maps.places.v1.FuelOptions.getDefaultInstance()) { getFuelOptionsBuilder().mergeFrom(value); @@ -42062,7 +43959,7 @@ public Builder mergeFuelOptions(com.google.maps.places.v1.FuelOptions value) { fuelOptionsBuilder_.mergeFrom(value); } if (fuelOptions_ != null) { - bitField1_ |= 0x20000000; + bitField1_ |= 0x40000000; onChanged(); } return this; @@ -42079,7 +43976,7 @@ public Builder mergeFuelOptions(com.google.maps.places.v1.FuelOptions value) { * .google.maps.places.v1.FuelOptions fuel_options = 78; */ public Builder clearFuelOptions() { - bitField1_ = (bitField1_ & ~0x20000000); + bitField1_ = (bitField1_ & ~0x40000000); fuelOptions_ = null; if (fuelOptionsBuilder_ != null) { fuelOptionsBuilder_.dispose(); @@ -42100,7 +43997,7 @@ public Builder clearFuelOptions() { * .google.maps.places.v1.FuelOptions fuel_options = 78; */ public com.google.maps.places.v1.FuelOptions.Builder getFuelOptionsBuilder() { - bitField1_ |= 0x20000000; + bitField1_ |= 0x40000000; onChanged(); return internalGetFuelOptionsFieldBuilder().getBuilder(); } @@ -42171,7 +44068,7 @@ public com.google.maps.places.v1.FuelOptionsOrBuilder getFuelOptionsOrBuilder() * @return Whether the evChargeOptions field is set. */ public boolean hasEvChargeOptions() { - return ((bitField1_ & 0x40000000) != 0); + return ((bitField1_ & 0x80000000) != 0); } /** @@ -42213,7 +44110,7 @@ public Builder setEvChargeOptions(com.google.maps.places.v1.EVChargeOptions valu } else { evChargeOptionsBuilder_.setMessage(value); } - bitField1_ |= 0x40000000; + bitField1_ |= 0x80000000; onChanged(); return this; } @@ -42234,7 +44131,7 @@ public Builder setEvChargeOptions( } else { evChargeOptionsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x40000000; + bitField1_ |= 0x80000000; onChanged(); return this; } @@ -42250,7 +44147,7 @@ public Builder setEvChargeOptions( */ public Builder mergeEvChargeOptions(com.google.maps.places.v1.EVChargeOptions value) { if (evChargeOptionsBuilder_ == null) { - if (((bitField1_ & 0x40000000) != 0) + if (((bitField1_ & 0x80000000) != 0) && evChargeOptions_ != null && evChargeOptions_ != com.google.maps.places.v1.EVChargeOptions.getDefaultInstance()) { getEvChargeOptionsBuilder().mergeFrom(value); @@ -42261,7 +44158,7 @@ public Builder mergeEvChargeOptions(com.google.maps.places.v1.EVChargeOptions va evChargeOptionsBuilder_.mergeFrom(value); } if (evChargeOptions_ != null) { - bitField1_ |= 0x40000000; + bitField1_ |= 0x80000000; onChanged(); } return this; @@ -42277,7 +44174,7 @@ public Builder mergeEvChargeOptions(com.google.maps.places.v1.EVChargeOptions va * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; */ public Builder clearEvChargeOptions() { - bitField1_ = (bitField1_ & ~0x40000000); + bitField1_ = (bitField1_ & ~0x80000000); evChargeOptions_ = null; if (evChargeOptionsBuilder_ != null) { evChargeOptionsBuilder_.dispose(); @@ -42297,7 +44194,7 @@ public Builder clearEvChargeOptions() { * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; */ public com.google.maps.places.v1.EVChargeOptions.Builder getEvChargeOptionsBuilder() { - bitField1_ |= 0x40000000; + bitField1_ |= 0x80000000; onChanged(); return internalGetEvChargeOptionsFieldBuilder().getBuilder(); } @@ -42366,7 +44263,7 @@ public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBu * @return Whether the generativeSummary field is set. */ public boolean hasGenerativeSummary() { - return ((bitField1_ & 0x80000000) != 0); + return ((bitField2_ & 0x00000001) != 0); } /** @@ -42408,7 +44305,7 @@ public Builder setGenerativeSummary(com.google.maps.places.v1.Place.GenerativeSu } else { generativeSummaryBuilder_.setMessage(value); } - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; onChanged(); return this; } @@ -42429,7 +44326,7 @@ public Builder setGenerativeSummary( } else { generativeSummaryBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; onChanged(); return this; } @@ -42445,7 +44342,7 @@ public Builder setGenerativeSummary( */ public Builder mergeGenerativeSummary(com.google.maps.places.v1.Place.GenerativeSummary value) { if (generativeSummaryBuilder_ == null) { - if (((bitField1_ & 0x80000000) != 0) + if (((bitField2_ & 0x00000001) != 0) && generativeSummary_ != null && generativeSummary_ != com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance()) { @@ -42457,7 +44354,7 @@ public Builder mergeGenerativeSummary(com.google.maps.places.v1.Place.Generative generativeSummaryBuilder_.mergeFrom(value); } if (generativeSummary_ != null) { - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; onChanged(); } return this; @@ -42473,7 +44370,7 @@ public Builder mergeGenerativeSummary(com.google.maps.places.v1.Place.Generative * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; */ public Builder clearGenerativeSummary() { - bitField1_ = (bitField1_ & ~0x80000000); + bitField2_ = (bitField2_ & ~0x00000001); generativeSummary_ = null; if (generativeSummaryBuilder_ != null) { generativeSummaryBuilder_.dispose(); @@ -42493,7 +44390,7 @@ public Builder clearGenerativeSummary() { * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; */ public com.google.maps.places.v1.Place.GenerativeSummary.Builder getGenerativeSummaryBuilder() { - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000001; onChanged(); return internalGetGenerativeSummaryFieldBuilder().getBuilder(); } @@ -42548,11 +44445,11 @@ public com.google.maps.places.v1.Place.GenerativeSummary.Builder getGenerativeSu java.util.Collections.emptyList(); private void ensureContainingPlacesIsMutable() { - if (!((bitField2_ & 0x00000001) != 0)) { + if (!((bitField2_ & 0x00000002) != 0)) { containingPlaces_ = new java.util.ArrayList( containingPlaces_); - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000002; } } @@ -42781,7 +44678,7 @@ public Builder addAllContainingPlaces( public Builder clearContainingPlaces() { if (containingPlacesBuilder_ == null) { containingPlaces_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x00000001); + bitField2_ = (bitField2_ & ~0x00000002); onChanged(); } else { containingPlacesBuilder_.clear(); @@ -42914,7 +44811,7 @@ public com.google.maps.places.v1.Place.ContainingPlace.Builder addContainingPlac com.google.maps.places.v1.Place.ContainingPlace.Builder, com.google.maps.places.v1.Place.ContainingPlaceOrBuilder>( containingPlaces_, - ((bitField2_ & 0x00000001) != 0), + ((bitField2_ & 0x00000002) != 0), getParentForChildren(), isClean()); containingPlaces_ = null; @@ -42941,7 +44838,7 @@ public com.google.maps.places.v1.Place.ContainingPlace.Builder addContainingPlac */ @java.lang.Override public boolean hasPureServiceAreaBusiness() { - return ((bitField2_ & 0x00000002) != 0); + return ((bitField2_ & 0x00000004) != 0); } /** @@ -42983,7 +44880,7 @@ public boolean getPureServiceAreaBusiness() { public Builder setPureServiceAreaBusiness(boolean value) { pureServiceAreaBusiness_ = value; - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -43004,7 +44901,7 @@ public Builder setPureServiceAreaBusiness(boolean value) { * @return This builder for chaining. */ public Builder clearPureServiceAreaBusiness() { - bitField2_ = (bitField2_ & ~0x00000002); + bitField2_ = (bitField2_ & ~0x00000004); pureServiceAreaBusiness_ = false; onChanged(); return this; @@ -43032,7 +44929,7 @@ public Builder clearPureServiceAreaBusiness() { * @return Whether the addressDescriptor field is set. */ public boolean hasAddressDescriptor() { - return ((bitField2_ & 0x00000004) != 0); + return ((bitField2_ & 0x00000008) != 0); } /** @@ -43080,7 +44977,7 @@ public Builder setAddressDescriptor(com.google.maps.places.v1.AddressDescriptor } else { addressDescriptorBuilder_.setMessage(value); } - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; onChanged(); return this; } @@ -43104,7 +45001,7 @@ public Builder setAddressDescriptor( } else { addressDescriptorBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; onChanged(); return this; } @@ -43123,7 +45020,7 @@ public Builder setAddressDescriptor( */ public Builder mergeAddressDescriptor(com.google.maps.places.v1.AddressDescriptor value) { if (addressDescriptorBuilder_ == null) { - if (((bitField2_ & 0x00000004) != 0) + if (((bitField2_ & 0x00000008) != 0) && addressDescriptor_ != null && addressDescriptor_ != com.google.maps.places.v1.AddressDescriptor.getDefaultInstance()) { @@ -43135,7 +45032,7 @@ public Builder mergeAddressDescriptor(com.google.maps.places.v1.AddressDescripto addressDescriptorBuilder_.mergeFrom(value); } if (addressDescriptor_ != null) { - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; onChanged(); } return this; @@ -43154,7 +45051,7 @@ public Builder mergeAddressDescriptor(com.google.maps.places.v1.AddressDescripto * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; */ public Builder clearAddressDescriptor() { - bitField2_ = (bitField2_ & ~0x00000004); + bitField2_ = (bitField2_ & ~0x00000008); addressDescriptor_ = null; if (addressDescriptorBuilder_ != null) { addressDescriptorBuilder_.dispose(); @@ -43177,7 +45074,7 @@ public Builder clearAddressDescriptor() { * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; */ public com.google.maps.places.v1.AddressDescriptor.Builder getAddressDescriptorBuilder() { - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000008; onChanged(); return internalGetAddressDescriptorFieldBuilder().getBuilder(); } @@ -43233,6 +45130,202 @@ public com.google.maps.places.v1.AddressDescriptorOrBuilder getAddressDescriptor return addressDescriptorBuilder_; } + private com.google.maps.places.v1.Place.GoogleMapsLinks googleMapsLinks_; + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.places.v1.Place.GoogleMapsLinks, + com.google.maps.places.v1.Place.GoogleMapsLinks.Builder, + com.google.maps.places.v1.Place.GoogleMapsLinksOrBuilder> + googleMapsLinksBuilder_; + + /** + * + * + *
+     * Links to trigger different Google Maps actions.
+     * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + * + * @return Whether the googleMapsLinks field is set. + */ + public boolean hasGoogleMapsLinks() { + return ((bitField2_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Links to trigger different Google Maps actions.
+     * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + * + * @return The googleMapsLinks. + */ + public com.google.maps.places.v1.Place.GoogleMapsLinks getGoogleMapsLinks() { + if (googleMapsLinksBuilder_ == null) { + return googleMapsLinks_ == null + ? com.google.maps.places.v1.Place.GoogleMapsLinks.getDefaultInstance() + : googleMapsLinks_; + } else { + return googleMapsLinksBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Links to trigger different Google Maps actions.
+     * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + */ + public Builder setGoogleMapsLinks(com.google.maps.places.v1.Place.GoogleMapsLinks value) { + if (googleMapsLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleMapsLinks_ = value; + } else { + googleMapsLinksBuilder_.setMessage(value); + } + bitField2_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Links to trigger different Google Maps actions.
+     * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + */ + public Builder setGoogleMapsLinks( + com.google.maps.places.v1.Place.GoogleMapsLinks.Builder builderForValue) { + if (googleMapsLinksBuilder_ == null) { + googleMapsLinks_ = builderForValue.build(); + } else { + googleMapsLinksBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Links to trigger different Google Maps actions.
+     * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + */ + public Builder mergeGoogleMapsLinks(com.google.maps.places.v1.Place.GoogleMapsLinks value) { + if (googleMapsLinksBuilder_ == null) { + if (((bitField2_ & 0x00000010) != 0) + && googleMapsLinks_ != null + && googleMapsLinks_ + != com.google.maps.places.v1.Place.GoogleMapsLinks.getDefaultInstance()) { + getGoogleMapsLinksBuilder().mergeFrom(value); + } else { + googleMapsLinks_ = value; + } + } else { + googleMapsLinksBuilder_.mergeFrom(value); + } + if (googleMapsLinks_ != null) { + bitField2_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Links to trigger different Google Maps actions.
+     * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + */ + public Builder clearGoogleMapsLinks() { + bitField2_ = (bitField2_ & ~0x00000010); + googleMapsLinks_ = null; + if (googleMapsLinksBuilder_ != null) { + googleMapsLinksBuilder_.dispose(); + googleMapsLinksBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Links to trigger different Google Maps actions.
+     * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + */ + public com.google.maps.places.v1.Place.GoogleMapsLinks.Builder getGoogleMapsLinksBuilder() { + bitField2_ |= 0x00000010; + onChanged(); + return internalGetGoogleMapsLinksFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Links to trigger different Google Maps actions.
+     * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + */ + public com.google.maps.places.v1.Place.GoogleMapsLinksOrBuilder getGoogleMapsLinksOrBuilder() { + if (googleMapsLinksBuilder_ != null) { + return googleMapsLinksBuilder_.getMessageOrBuilder(); + } else { + return googleMapsLinks_ == null + ? com.google.maps.places.v1.Place.GoogleMapsLinks.getDefaultInstance() + : googleMapsLinks_; + } + } + + /** + * + * + *
+     * Links to trigger different Google Maps actions.
+     * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.maps.places.v1.Place.GoogleMapsLinks, + com.google.maps.places.v1.Place.GoogleMapsLinks.Builder, + com.google.maps.places.v1.Place.GoogleMapsLinksOrBuilder> + internalGetGoogleMapsLinksFieldBuilder() { + if (googleMapsLinksBuilder_ == null) { + googleMapsLinksBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.maps.places.v1.Place.GoogleMapsLinks, + com.google.maps.places.v1.Place.GoogleMapsLinks.Builder, + com.google.maps.places.v1.Place.GoogleMapsLinksOrBuilder>( + getGoogleMapsLinks(), getParentForChildren(), isClean()); + googleMapsLinks_ = null; + } + return googleMapsLinksBuilder_; + } + private com.google.maps.places.v1.PriceRange priceRange_; private com.google.protobuf.SingleFieldBuilder< com.google.maps.places.v1.PriceRange, @@ -43252,7 +45345,7 @@ public com.google.maps.places.v1.AddressDescriptorOrBuilder getAddressDescriptor * @return Whether the priceRange field is set. */ public boolean hasPriceRange() { - return ((bitField2_ & 0x00000008) != 0); + return ((bitField2_ & 0x00000020) != 0); } /** @@ -43294,7 +45387,7 @@ public Builder setPriceRange(com.google.maps.places.v1.PriceRange value) { } else { priceRangeBuilder_.setMessage(value); } - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000020; onChanged(); return this; } @@ -43314,7 +45407,7 @@ public Builder setPriceRange(com.google.maps.places.v1.PriceRange.Builder builde } else { priceRangeBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000020; onChanged(); return this; } @@ -43330,7 +45423,7 @@ public Builder setPriceRange(com.google.maps.places.v1.PriceRange.Builder builde */ public Builder mergePriceRange(com.google.maps.places.v1.PriceRange value) { if (priceRangeBuilder_ == null) { - if (((bitField2_ & 0x00000008) != 0) + if (((bitField2_ & 0x00000020) != 0) && priceRange_ != null && priceRange_ != com.google.maps.places.v1.PriceRange.getDefaultInstance()) { getPriceRangeBuilder().mergeFrom(value); @@ -43341,7 +45434,7 @@ public Builder mergePriceRange(com.google.maps.places.v1.PriceRange value) { priceRangeBuilder_.mergeFrom(value); } if (priceRange_ != null) { - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000020; onChanged(); } return this; @@ -43357,7 +45450,7 @@ public Builder mergePriceRange(com.google.maps.places.v1.PriceRange value) { * .google.maps.places.v1.PriceRange price_range = 86; */ public Builder clearPriceRange() { - bitField2_ = (bitField2_ & ~0x00000008); + bitField2_ = (bitField2_ & ~0x00000020); priceRange_ = null; if (priceRangeBuilder_ != null) { priceRangeBuilder_.dispose(); @@ -43377,7 +45470,7 @@ public Builder clearPriceRange() { * .google.maps.places.v1.PriceRange price_range = 86; */ public com.google.maps.places.v1.PriceRange.Builder getPriceRangeBuilder() { - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000020; onChanged(); return internalGetPriceRangeFieldBuilder().getBuilder(); } @@ -43446,7 +45539,7 @@ public com.google.maps.places.v1.PriceRangeOrBuilder getPriceRangeOrBuilder() { * @return Whether the reviewSummary field is set. */ public boolean hasReviewSummary() { - return ((bitField2_ & 0x00000010) != 0); + return ((bitField2_ & 0x00000040) != 0); } /** @@ -43488,7 +45581,7 @@ public Builder setReviewSummary(com.google.maps.places.v1.Place.ReviewSummary va } else { reviewSummaryBuilder_.setMessage(value); } - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000040; onChanged(); return this; } @@ -43509,7 +45602,7 @@ public Builder setReviewSummary( } else { reviewSummaryBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000040; onChanged(); return this; } @@ -43525,7 +45618,7 @@ public Builder setReviewSummary( */ public Builder mergeReviewSummary(com.google.maps.places.v1.Place.ReviewSummary value) { if (reviewSummaryBuilder_ == null) { - if (((bitField2_ & 0x00000010) != 0) + if (((bitField2_ & 0x00000040) != 0) && reviewSummary_ != null && reviewSummary_ != com.google.maps.places.v1.Place.ReviewSummary.getDefaultInstance()) { @@ -43537,7 +45630,7 @@ public Builder mergeReviewSummary(com.google.maps.places.v1.Place.ReviewSummary reviewSummaryBuilder_.mergeFrom(value); } if (reviewSummary_ != null) { - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000040; onChanged(); } return this; @@ -43553,7 +45646,7 @@ public Builder mergeReviewSummary(com.google.maps.places.v1.Place.ReviewSummary * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; */ public Builder clearReviewSummary() { - bitField2_ = (bitField2_ & ~0x00000010); + bitField2_ = (bitField2_ & ~0x00000040); reviewSummary_ = null; if (reviewSummaryBuilder_ != null) { reviewSummaryBuilder_.dispose(); @@ -43573,7 +45666,7 @@ public Builder clearReviewSummary() { * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; */ public com.google.maps.places.v1.Place.ReviewSummary.Builder getReviewSummaryBuilder() { - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000040; onChanged(); return internalGetReviewSummaryFieldBuilder().getBuilder(); } @@ -43643,7 +45736,7 @@ public com.google.maps.places.v1.Place.ReviewSummaryOrBuilder getReviewSummaryOr * @return Whether the evChargeAmenitySummary field is set. */ public boolean hasEvChargeAmenitySummary() { - return ((bitField2_ & 0x00000020) != 0); + return ((bitField2_ & 0x00000080) != 0); } /** @@ -43688,7 +45781,7 @@ public Builder setEvChargeAmenitySummary( } else { evChargeAmenitySummaryBuilder_.setMessage(value); } - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000080; onChanged(); return this; } @@ -43710,7 +45803,7 @@ public Builder setEvChargeAmenitySummary( } else { evChargeAmenitySummaryBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000080; onChanged(); return this; } @@ -43728,7 +45821,7 @@ public Builder setEvChargeAmenitySummary( public Builder mergeEvChargeAmenitySummary( com.google.maps.places.v1.Place.EvChargeAmenitySummary value) { if (evChargeAmenitySummaryBuilder_ == null) { - if (((bitField2_ & 0x00000020) != 0) + if (((bitField2_ & 0x00000080) != 0) && evChargeAmenitySummary_ != null && evChargeAmenitySummary_ != com.google.maps.places.v1.Place.EvChargeAmenitySummary.getDefaultInstance()) { @@ -43740,7 +45833,7 @@ public Builder mergeEvChargeAmenitySummary( evChargeAmenitySummaryBuilder_.mergeFrom(value); } if (evChargeAmenitySummary_ != null) { - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000080; onChanged(); } return this; @@ -43757,7 +45850,7 @@ public Builder mergeEvChargeAmenitySummary( *
*/ public Builder clearEvChargeAmenitySummary() { - bitField2_ = (bitField2_ & ~0x00000020); + bitField2_ = (bitField2_ & ~0x00000080); evChargeAmenitySummary_ = null; if (evChargeAmenitySummaryBuilder_ != null) { evChargeAmenitySummaryBuilder_.dispose(); @@ -43779,7 +45872,7 @@ public Builder clearEvChargeAmenitySummary() { */ public com.google.maps.places.v1.Place.EvChargeAmenitySummary.Builder getEvChargeAmenitySummaryBuilder() { - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000080; onChanged(); return internalGetEvChargeAmenitySummaryFieldBuilder().getBuilder(); } @@ -43851,7 +45944,7 @@ public Builder clearEvChargeAmenitySummary() { * @return Whether the neighborhoodSummary field is set. */ public boolean hasNeighborhoodSummary() { - return ((bitField2_ & 0x00000040) != 0); + return ((bitField2_ & 0x00000100) != 0); } /** @@ -43894,7 +45987,7 @@ public Builder setNeighborhoodSummary( } else { neighborhoodSummaryBuilder_.setMessage(value); } - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; onChanged(); return this; } @@ -43915,7 +46008,7 @@ public Builder setNeighborhoodSummary( } else { neighborhoodSummaryBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; onChanged(); return this; } @@ -43932,7 +46025,7 @@ public Builder setNeighborhoodSummary( public Builder mergeNeighborhoodSummary( com.google.maps.places.v1.Place.NeighborhoodSummary value) { if (neighborhoodSummaryBuilder_ == null) { - if (((bitField2_ & 0x00000040) != 0) + if (((bitField2_ & 0x00000100) != 0) && neighborhoodSummary_ != null && neighborhoodSummary_ != com.google.maps.places.v1.Place.NeighborhoodSummary.getDefaultInstance()) { @@ -43944,7 +46037,7 @@ public Builder mergeNeighborhoodSummary( neighborhoodSummaryBuilder_.mergeFrom(value); } if (neighborhoodSummary_ != null) { - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; onChanged(); } return this; @@ -43960,7 +46053,7 @@ public Builder mergeNeighborhoodSummary( * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; */ public Builder clearNeighborhoodSummary() { - bitField2_ = (bitField2_ & ~0x00000040); + bitField2_ = (bitField2_ & ~0x00000100); neighborhoodSummary_ = null; if (neighborhoodSummaryBuilder_ != null) { neighborhoodSummaryBuilder_.dispose(); @@ -43981,7 +46074,7 @@ public Builder clearNeighborhoodSummary() { */ public com.google.maps.places.v1.Place.NeighborhoodSummary.Builder getNeighborhoodSummaryBuilder() { - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; onChanged(); return internalGetNeighborhoodSummaryFieldBuilder().getBuilder(); } @@ -44052,7 +46145,7 @@ public Builder clearNeighborhoodSummary() { * @return Whether the consumerAlert field is set. */ public boolean hasConsumerAlert() { - return ((bitField2_ & 0x00000080) != 0); + return ((bitField2_ & 0x00000200) != 0); } /** @@ -44096,7 +46189,7 @@ public Builder setConsumerAlert(com.google.maps.places.v1.Place.ConsumerAlert va } else { consumerAlertBuilder_.setMessage(value); } - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000200; onChanged(); return this; } @@ -44118,7 +46211,7 @@ public Builder setConsumerAlert( } else { consumerAlertBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000200; onChanged(); return this; } @@ -44135,7 +46228,7 @@ public Builder setConsumerAlert( */ public Builder mergeConsumerAlert(com.google.maps.places.v1.Place.ConsumerAlert value) { if (consumerAlertBuilder_ == null) { - if (((bitField2_ & 0x00000080) != 0) + if (((bitField2_ & 0x00000200) != 0) && consumerAlert_ != null && consumerAlert_ != com.google.maps.places.v1.Place.ConsumerAlert.getDefaultInstance()) { @@ -44147,7 +46240,7 @@ public Builder mergeConsumerAlert(com.google.maps.places.v1.Place.ConsumerAlert consumerAlertBuilder_.mergeFrom(value); } if (consumerAlert_ != null) { - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000200; onChanged(); } return this; @@ -44164,7 +46257,7 @@ public Builder mergeConsumerAlert(com.google.maps.places.v1.Place.ConsumerAlert * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; */ public Builder clearConsumerAlert() { - bitField2_ = (bitField2_ & ~0x00000080); + bitField2_ = (bitField2_ & ~0x00000200); consumerAlert_ = null; if (consumerAlertBuilder_ != null) { consumerAlertBuilder_.dispose(); @@ -44185,7 +46278,7 @@ public Builder clearConsumerAlert() { * .google.maps.places.v1.Place.ConsumerAlert consumer_alert = 92; */ public com.google.maps.places.v1.Place.ConsumerAlert.Builder getConsumerAlertBuilder() { - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000200; onChanged(); return internalGetConsumerAlertFieldBuilder().getBuilder(); } @@ -44314,7 +46407,7 @@ public Builder setMovedPlace(java.lang.String value) { throw new NullPointerException(); } movedPlace_ = value; - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000400; onChanged(); return this; } @@ -44336,7 +46429,7 @@ public Builder setMovedPlace(java.lang.String value) { */ public Builder clearMovedPlace() { movedPlace_ = getDefaultInstance().getMovedPlace(); - bitField2_ = (bitField2_ & ~0x00000100); + bitField2_ = (bitField2_ & ~0x00000400); onChanged(); return this; } @@ -44363,7 +46456,7 @@ public Builder setMovedPlaceBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); movedPlace_ = value; - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000400; onChanged(); return this; } @@ -44442,7 +46535,7 @@ public Builder setMovedPlaceId(java.lang.String value) { throw new NullPointerException(); } movedPlaceId_ = value; - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000800; onChanged(); return this; } @@ -44463,7 +46556,7 @@ public Builder setMovedPlaceId(java.lang.String value) { */ public Builder clearMovedPlaceId() { movedPlaceId_ = getDefaultInstance().getMovedPlaceId(); - bitField2_ = (bitField2_ & ~0x00000200); + bitField2_ = (bitField2_ & ~0x00000800); onChanged(); return this; } @@ -44489,7 +46582,7 @@ public Builder setMovedPlaceIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); movedPlaceId_ = value; - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000800; onChanged(); return this; } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java index 29b6feaebf79..6d7d8498c3f9 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java @@ -278,6 +278,55 @@ public interface PlaceOrBuilder */ com.google.type.LocalizedTextOrBuilder getPrimaryTypeDisplayNameOrBuilder(); + /** + * + * + *
+   * The type label of the place on Google Maps, localized to the request
+   * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+   * The type label may be different from the primary type display name and may
+   * not be a supported type in [Places API Place Types
+   * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+   * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + * + * @return Whether the googleMapsTypeLabel field is set. + */ + boolean hasGoogleMapsTypeLabel(); + + /** + * + * + *
+   * The type label of the place on Google Maps, localized to the request
+   * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+   * The type label may be different from the primary type display name and may
+   * not be a supported type in [Places API Place Types
+   * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+   * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + * + * @return The googleMapsTypeLabel. + */ + com.google.type.LocalizedText getGoogleMapsTypeLabel(); + + /** + * + * + *
+   * The type label of the place on Google Maps, localized to the request
+   * language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
+   * The type label may be different from the primary type display name and may
+   * not be a supported type in [Places API Place Types
+   * table](https://developers.google.com/maps/documentation/places/web-service/place-types).
+   * 
+ * + * .google.type.LocalizedText google_maps_type_label = 96; + */ + com.google.type.LocalizedTextOrBuilder getGoogleMapsTypeLabelOrBuilder(); + /** * * @@ -2493,6 +2542,43 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening */ com.google.maps.places.v1.AddressDescriptorOrBuilder getAddressDescriptorOrBuilder(); + /** + * + * + *
+   * Links to trigger different Google Maps actions.
+   * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + * + * @return Whether the googleMapsLinks field is set. + */ + boolean hasGoogleMapsLinks(); + + /** + * + * + *
+   * Links to trigger different Google Maps actions.
+   * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + * + * @return The googleMapsLinks. + */ + com.google.maps.places.v1.Place.GoogleMapsLinks getGoogleMapsLinks(); + + /** + * + * + *
+   * Links to trigger different Google Maps actions.
+   * 
+ * + * .google.maps.places.v1.Place.GoogleMapsLinks google_maps_links = 85; + */ + com.google.maps.places.v1.Place.GoogleMapsLinksOrBuilder getGoogleMapsLinksOrBuilder(); + /** * * diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java index acff3b4b9f79..497240a6901d 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java @@ -96,6 +96,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_maps_places_v1_Place_ContainingPlace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_Place_GoogleMapsLinks_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_places_v1_Place_GoogleMapsLinks_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_maps_places_v1_Place_ReviewSummary_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -140,14 +144,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.proto\032\"google/maps/places/v1/review.pr" + "oto\032\037google/protobuf/timestamp.proto\032\026go" + "ogle/type/date.proto\032\032google/type/datetime.proto\032\030google/type/latlng.proto\032" - + " google/type/localized_text.proto\032 google/type/postal_address.proto\"\264:\n" + + " google/type/localized_text.proto\032 google/type/postal_address.proto\"\275<\n" + "\005Place\022\014\n" + "\004name\030\001 \001(\t\022\n\n" + "\002id\030\002 \001(\t\0220\n" + "\014display_name\030\037 \001(\0132\032.google.type.LocalizedText\022\r\n" + "\005types\030\005 \003(\t\022\024\n" + "\014primary_type\0302 \001(\t\022=\n" - + "\031primary_type_display_name\030 \001(\0132\032.google.type.LocalizedText\022\035\n" + + "\031primary_type_display_name\030 \001(\0132\032.google.type.LocalizedText\022:\n" + + "\026google_maps_type_label\030` \001(\0132\032.google.type.LocalizedText\022\035\n" + "\025national_phone_number\030\007 \001(\t\022\"\n" + "\032international_phone_number\030\010 \001(\t\022\031\n" + "\021formatted_address\030\t \001(\t\022\037\n" @@ -169,8 +174,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\ttime_zone\030X \001(\0132\025.google.type.TimeZone\022,\n" + "\006photos\0306 \003(\0132\034.google.maps.places.v1.Photo\022\032\n" + "\022adr_format_address\030\030 \001(\t\022D\n" - + "\017business_status\030\031 \001" - + "(\0162+.google.maps.places.v1.Place.BusinessStatus\0226\n" + + "\017business_status\030\031" + + " \001(\0162+.google.maps.places.v1.Place.BusinessStatus\0226\n" + "\013price_level\030\032 \001(\0162!.google.maps.places.v1.PriceLevel\022>\n" + "\014attributions\030\033 \003(\0132(.google.maps.places.v1.Place.Attribution\022\036\n" + "\021user_rating_count\030\034 \001(\005H\001\210\001\001\022\032\n" @@ -192,10 +197,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022H\n" + "\025current_opening_hours\030." + " \001(\0132).google.maps.places.v1.Place.OpeningHours\022R\n" - + "\037current_secondary_opening_hours\030/" - + " \003(\0132).google.maps.places.v1.Place.OpeningHours\022R\n" - + "\037regular_secondary_opening_hours\0301" - + " \003(\0132).google.maps.places.v1.Place.OpeningHours\0225\n" + + "\037current_secondary_opening_hours\030/ \003(\0132)" + + ".google.maps.places.v1.Place.OpeningHours\022R\n" + + "\037regular_secondary_opening_hours\0301 \003" + + "(\0132).google.maps.places.v1.Place.OpeningHours\0225\n" + "\021editorial_summary\0304 \001(\0132\032.google.type.LocalizedText\022\034\n" + "\017outdoor_seating\0307 \001(\010H\016\210\001\001\022\027\n\n" + "live_music\0308 \001(\010H\017\210\001\001\022\036\n" @@ -212,16 +217,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017parking_options\030F \001(\0132+.google.maps.places.v1.Place.ParkingOptions\022E\n" + "\020sub_destinations\030G" + " \003(\0132+.google.maps.places.v1.Place.SubDestination\022U\n" - + "\025accessibility_options\030H" - + " \001(\01321.google.maps.places.v1.Place.AccessibilityOptionsH\031\210\001\001\0228\n" + + "\025accessibility_options\030H \001(\01321.google.map" + + "s.places.v1.Place.AccessibilityOptionsH\031\210\001\001\0228\n" + "\014fuel_options\030N \001(\0132\".google.maps.places.v1.FuelOptions\022A\n" + "\021ev_charge_options\030O \001(\0132&.google.maps.places.v1.EVChargeOptions\022J\n" - + "\022generative_summary\030P" - + " \001(\0132..google.maps.places.v1.Place.GenerativeSummary\022G\n" + + "\022generative_summary\030P \001(\0132..g" + + "oogle.maps.places.v1.Place.GenerativeSummary\022G\n" + "\021containing_places\030R" + " \003(\0132,.google.maps.places.v1.Place.ContainingPlace\022\'\n" + "\032pure_service_area_business\030S \001(\010H\032\210\001\001\022D\n" - + "\022address_descriptor\030T \001(\0132(.google.maps.places.v1.AddressDescriptor\0226\n" + + "\022address_descriptor\030T \001(\0132(.google.maps.places.v1.AddressDescriptor\022G\n" + + "\021google_maps_links\030U" + + " \001(\0132,.google.maps.places.v1.Place.GoogleMapsLinks\0226\n" + "\013price_range\030V \001(\0132!.google.maps.places.v1.PriceRange\022B\n" + "\016review_summary\030W \001(\0132*.google.maps.places.v1.Place.ReviewSummary\022V\n" + "\031ev_charge_amenity_summary\030Y" @@ -242,20 +249,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "compound_code\030\002 \001(\t\032\375\007\n" + "\014OpeningHours\022\025\n" + "\010open_now\030\001 \001(\010H\000\210\001\001\022A\n" - + "\007periods\030\002" - + " \003(\01320.google.maps.places.v1.Place.OpeningHours.Period\022\034\n" + + "\007periods\030\002 \003(\01320.google." + + "maps.places.v1.Place.OpeningHours.Period\022\034\n" + "\024weekday_descriptions\030\003 \003(\t\022Z\n" - + "\024secondary_hours_type\030\004" - + " \001(\0162<.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType\022J\n" - + "\014special_days\030\005" - + " \003(\01324.google.maps.places.v1.Place.OpeningHours.SpecialDay\0222\n" + + "\024secondary_hours_type\030\004 \001(\0162<.google.maps.place" + + "s.v1.Place.OpeningHours.SecondaryHoursType\022J\n" + + "\014special_days\030\005 \003(\01324.google.maps.p" + + "laces.v1.Place.OpeningHours.SpecialDay\0222\n" + "\016next_open_time\030\006 \001(\0132\032.google.protobuf.Timestamp\0223\n" + "\017next_close_time\030\007 \001(\0132\032.google.protobuf.Timestamp\032\251\002\n" + "\006Period\022D\n" - + "\004open\030\001 \001(\01326.go" - + "ogle.maps.places.v1.Place.OpeningHours.Period.Point\022E\n" - + "\005close\030\002 \001(\01326.google.maps" - + ".places.v1.Place.OpeningHours.Period.Point\032\221\001\n" + + "\004open\030\001" + + " \001(\01326.google.maps.places.v1.Place.OpeningHours.Period.Point\022E\n" + + "\005close\030\002 \001(\0132" + + "6.google.maps.places.v1.Place.OpeningHours.Period.Point\032\221\001\n" + "\005Point\022\020\n" + "\003day\030\001 \001(\005H\000\210\001\001\022\021\n" + "\004hour\030\002 \001(\005H\001\210\001\001\022\023\n" @@ -269,8 +276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004date\030\001 \001(\0132\021.google.type.Date\"\373\001\n" + "\022SecondaryHoursType\022$\n" + " SECONDARY_HOURS_TYPE_UNSPECIFIED\020\000\022\021\n\r" - + "DRIVE_THROUGH\020\001\022\016\n" - + "\n" + + "DRIVE_THROUGH\020\001\022\016\n\n" + "HAPPY_HOUR\020\002\022\014\n" + "\010DELIVERY\020\003\022\013\n" + "\007TAKEOUT\020\004\022\013\n" @@ -333,7 +339,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017ContainingPlace\022.\n" + "\004name\030\001 \001(\tB \372A\035\n" + "\033places.googleapis.com/Place\022\n\n" - + "\002id\030\002 \001(\t\032\235\001\n\r" + + "\002id\030\002 \001(\t\032\201\001\n" + + "\017GoogleMapsLinks\022\026\n" + + "\016directions_uri\030\001 \001(\t\022\021\n" + + "\tplace_uri\030\002 \001(\t\022\032\n" + + "\022write_a_review_uri\030\003 \001(\t\022\023\n" + + "\013reviews_uri\030\004 \001(\t\022\022\n\n" + + "photos_uri\030\005 \001(\t\032\235\001\n\r" + "ReviewSummary\022(\n" + "\004text\030\001 \001(\0132\032.google.type.LocalizedText\022\030\n" + "\020flag_content_uri\030\002 \001(\t\0223\n" @@ -353,14 +365,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017disclosure_text\030\004 \001(\0132\032.google.type.LocalizedText\032\236\002\n\r" + "ConsumerAlert\022\020\n" + "\010overview\030\001 \001(\t\022C\n" - + "\007details\030\002 \001(\0132" - + "2.google.maps.places.v1.Place.ConsumerAlert.Details\022\025\n\r" + + "\007details\030\002" + + " \001(\01322.google.maps.places.v1.Place.ConsumerAlert.Details\022\025\n\r" + "language_code\030\003 \001(\t\032\236\001\n" + "\007Details\022\r\n" + "\005title\030\001 \001(\t\022\023\n" + "\013description\030\002 \001(\t\022K\n\n" - + "about_link\030\003 \001(\01327.google.maps.pla" - + "ces.v1.Place.ConsumerAlert.Details.Link\032\"\n" + + "about_link\030\003" + + " \001(\01327.google.maps.places.v1.Place.ConsumerAlert.Details.Link\032\"\n" + "\004Link\022\r\n" + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\"r\n" @@ -377,8 +389,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_dine_inB\022\n" + "\020_curbside_pickupB\r\n" + "\013_reservableB\023\n" - + "\021_serves_breakfastB\017\n" - + "\r" + + "\021_serves_breakfastB\017\n\r" + "_serves_lunchB\020\n" + "\016_serves_dinnerB\016\n" + "\014_serves_beerB\016\n" @@ -406,9 +417,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PRICE_LEVEL_EXPENSIVE\020\004\022\036\n" + "\032PRICE_LEVEL_VERY_EXPENSIVE\020\005B\233\001\n" + "\031com.google.maps.places.v1B\n" - + "PlaceProtoP\001Z7cloud.google.com/go/maps/places/a" - + "piv1/placespb;placespb\242\002\006GMPSV1\252\002\025Google" - + ".Maps.Places.V1\312\002\025Google\\Maps\\Places\\V1b\006proto3" + + "PlaceProtoP\001Z7cloud.google.com/go/maps/places/apiv1/placespb;p" + + "lacespb\242\002\006GMPSV1\252\002\025Google.Maps.Places.V1" + + "\312\002\025Google\\Maps\\Places\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -441,6 +452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Types", "PrimaryType", "PrimaryTypeDisplayName", + "GoogleMapsTypeLabel", "NationalPhoneNumber", "InternationalPhoneNumber", "FormattedAddress", @@ -502,6 +514,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContainingPlaces", "PureServiceAreaBusiness", "AddressDescriptor", + "GoogleMapsLinks", "PriceRange", "ReviewSummary", "EvChargeAmenitySummary", @@ -629,8 +642,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Id", }); - internal_static_google_maps_places_v1_Place_ReviewSummary_descriptor = + internal_static_google_maps_places_v1_Place_GoogleMapsLinks_descriptor = internal_static_google_maps_places_v1_Place_descriptor.getNestedType(10); + internal_static_google_maps_places_v1_Place_GoogleMapsLinks_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_places_v1_Place_GoogleMapsLinks_descriptor, + new java.lang.String[] { + "DirectionsUri", "PlaceUri", "WriteAReviewUri", "ReviewsUri", "PhotosUri", + }); + internal_static_google_maps_places_v1_Place_ReviewSummary_descriptor = + internal_static_google_maps_places_v1_Place_descriptor.getNestedType(11); internal_static_google_maps_places_v1_Place_ReviewSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_maps_places_v1_Place_ReviewSummary_descriptor, @@ -638,7 +659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "FlagContentUri", "DisclosureText", "ReviewsUri", }); internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_descriptor = - internal_static_google_maps_places_v1_Place_descriptor.getNestedType(11); + internal_static_google_maps_places_v1_Place_descriptor.getNestedType(12); internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_descriptor, @@ -646,7 +667,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Overview", "Coffee", "Restaurant", "Store", "FlagContentUri", "DisclosureText", }); internal_static_google_maps_places_v1_Place_NeighborhoodSummary_descriptor = - internal_static_google_maps_places_v1_Place_descriptor.getNestedType(12); + internal_static_google_maps_places_v1_Place_descriptor.getNestedType(13); internal_static_google_maps_places_v1_Place_NeighborhoodSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_maps_places_v1_Place_NeighborhoodSummary_descriptor, @@ -654,7 +675,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Overview", "Description", "FlagContentUri", "DisclosureText", }); internal_static_google_maps_places_v1_Place_ConsumerAlert_descriptor = - internal_static_google_maps_places_v1_Place_descriptor.getNestedType(13); + internal_static_google_maps_places_v1_Place_descriptor.getNestedType(14); internal_static_google_maps_places_v1_Place_ConsumerAlert_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_maps_places_v1_Place_ConsumerAlert_descriptor, diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/address_descriptor.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/address_descriptor.proto index b368b1253d59..22cde6c5fe3c 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/address_descriptor.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/address_descriptor.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/attribution.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/attribution.proto index 0c8cd64ec534..8a5171ec4025 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/attribution.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/attribution.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/content_block.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/content_block.proto index d0ebc04f36c7..b1e672c74fd2 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/content_block.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/content_block.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,7 +16,7 @@ syntax = "proto3"; package google.maps.places.v1; -import "google/maps/places/v1/reference.proto"; +import "google/api/resource.proto"; import "google/type/localized_text.proto"; option csharp_namespace = "Google.Maps.Places.V1"; @@ -29,16 +29,12 @@ option php_namespace = "Google\\Maps\\Places\\V1"; // A block of content that can be served individually. message ContentBlock { - // The topic of the content, for example "overview" or "restaurant". - string topic = 1; - // Content related to the topic. google.type.LocalizedText content = 2; - // Experimental: See - // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative - // for more details. - // - // References that are related to this block of content. - References references = 3; + // The list of resource names of the referenced places. This name can be used + // in other APIs that accept Place resource names. + repeated string referenced_places = 4 [ + (google.api.resource_reference) = { type: "places.googleapis.com/Place" } + ]; } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/contextual_content.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/contextual_content.proto index 58e22a02a0cd..eed88b587fbf 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/contextual_content.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/contextual_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. @@ -103,11 +103,11 @@ message ContextualContent { } } - // List of reviews about this place, contexual to the place query. + // List of reviews about this place, contextual to the place query. repeated Review reviews = 1; - // Information (including references) about photos of this place, contexual to - // the place query. + // Information (including references) about photos of this place, contextual + // to the place query. repeated Photo photos = 2; // Experimental: See diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/ev_charging.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/ev_charging.proto index 929639cd2892..2cb59d6093d2 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/ev_charging.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/ev_charging.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/fuel_options.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/fuel_options.proto index 64183abb1f13..eab2e79a39d8 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/fuel_options.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/fuel_options.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/geometry.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/geometry.proto index 447dc00e41c8..7da16e7db113 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/geometry.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/photo.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/photo.proto index f9bfee5fad62..fac3893dd8c4 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/photo.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/photo.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto index 4bf04c6da97e..33d37736b107 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.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. @@ -348,6 +348,25 @@ message Place { string id = 2; } + // Links to trigger different Google Maps actions. + message GoogleMapsLinks { + // A link to show the directions to the place. The link only populates the + // destination location and uses the default travel mode `DRIVE`. + string directions_uri = 1; + + // A link to show this place. + string place_uri = 2; + + // A link to write a review for this place on Google Maps. + string write_a_review_uri = 3; + + // A link to show reviews of this place on Google Maps. + string reviews_uri = 4; + + // A link to show photos of this place on Google Maps. + string photos_uri = 5; + } + // AI-generated summary of the place using user reviews. message ReviewSummary { // The summary of user reviews. @@ -480,6 +499,13 @@ message Place { // supported type. google.type.LocalizedText primary_type_display_name = 32; + // The type label of the place on Google Maps, localized to the request + // language if applicable, for example, "Restaurant", "Cafe", "Airport", etc. + // The type label may be different from the primary type display name and may + // not be a supported type in [Places API Place Types + // table](https://developers.google.com/maps/documentation/places/web-service/place-types). + google.type.LocalizedText google_maps_type_label = 96; + // A human-readable phone number for the place, in national format. string national_phone_number = 7; @@ -722,6 +748,9 @@ message Place { // https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage. AddressDescriptor address_descriptor = 84; + // Links to trigger different Google Maps actions. + GoogleMapsLinks google_maps_links = 85; + // The price range associated with a Place. PriceRange price_range = 86; diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto index 15d8ad05e66c..4deb856af524 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/polyline.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/polyline.proto index b5a9adcbe711..e5fffce9e755 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/polyline.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/polyline.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/price_range.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/price_range.proto index 45d02ddf227b..6a1e6795df6b 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/price_range.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/price_range.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto index be57f447c27d..c829d1891f30 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/route_modifiers.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/route_modifiers.proto index 1a2569c33e23..074127179c95 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/route_modifiers.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/route_modifiers.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/routing_preference.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/routing_preference.proto index 4a290b057102..bb1eaec9d7e4 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/routing_preference.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/routing_preference.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/routing_summary.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/routing_summary.proto index 362d8e21c3ec..b301e6915669 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/routing_summary.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/routing_summary.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-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/travel_mode.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/travel_mode.proto index eb4e912a8864..69688bc8cc87 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/travel_mode.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/travel_mode.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-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml b/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml index ea654f773ab5..78d13ddbc1c5 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml +++ b/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-routeoptimization-bom - 0.42.0 + 0.43.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-routeoptimization - 0.42.0 + 0.43.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.42.0 + 0.43.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.42.0 + 0.43.0
diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml b/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml index 77c805164673..29bbd40f4084 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml +++ b/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-routeoptimization - 0.42.0 + 0.43.0 jar Google Route Optimization API Route Optimization API The Route Optimization API assigns tasks and routes to a vehicle fleet, optimizing against the objectives and constraints that you supply for your transportation goals. com.google.maps google-maps-routeoptimization-parent - 0.42.0 + 0.43.0 google-maps-routeoptimization diff --git a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml index 8280b1621211..ba8373e671c2 100644 --- a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml +++ b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.42.0 + 0.43.0 grpc-google-maps-routeoptimization-v1 GRPC library for google-maps-routeoptimization com.google.maps google-maps-routeoptimization-parent - 0.42.0 + 0.43.0 diff --git a/java-maps-routeoptimization/pom.xml b/java-maps-routeoptimization/pom.xml index e8a60eb16943..99a0f1add93a 100644 --- a/java-maps-routeoptimization/pom.xml +++ b/java-maps-routeoptimization/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-routeoptimization-parent pom - 0.42.0 + 0.43.0 Google Route Optimization API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-routeoptimization - 0.42.0 + 0.43.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.42.0 + 0.43.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.42.0 + 0.43.0 diff --git a/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml b/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml index 9663704eb514..13250602960f 100644 --- a/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml +++ b/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.42.0 + 0.43.0 proto-google-maps-routeoptimization-v1 Proto library for google-maps-routeoptimization com.google.maps google-maps-routeoptimization-parent - 0.42.0 + 0.43.0 diff --git a/java-maps-routing/google-maps-routing-bom/pom.xml b/java-maps-routing/google-maps-routing-bom/pom.xml index bf58f4f0bf63..94380c54d036 100644 --- a/java-maps-routing/google-maps-routing-bom/pom.xml +++ b/java-maps-routing/google-maps-routing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-routing-bom - 1.69.0 + 1.70.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-routing - 1.69.0 + 1.70.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.69.0 + 1.70.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.69.0 + 1.70.0 diff --git a/java-maps-routing/google-maps-routing/pom.xml b/java-maps-routing/google-maps-routing/pom.xml index 369794de8c79..93026e0cf6e6 100644 --- a/java-maps-routing/google-maps-routing/pom.xml +++ b/java-maps-routing/google-maps-routing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-routing - 1.69.0 + 1.70.0 jar Google Routes API Routes API Routes API is the next generation, performance optimized version of the existing Directions API and Distance Matrix API. It helps you find the ideal route from A to Z, calculates ETAs and distances for matrices of origin and destination locations, and also offers new features. com.google.maps google-maps-routing-parent - 1.69.0 + 1.70.0 google-maps-routing diff --git a/java-maps-routing/grpc-google-maps-routing-v2/pom.xml b/java-maps-routing/grpc-google-maps-routing-v2/pom.xml index add9ec43a533..aacd383d23dc 100644 --- a/java-maps-routing/grpc-google-maps-routing-v2/pom.xml +++ b/java-maps-routing/grpc-google-maps-routing-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.69.0 + 1.70.0 grpc-google-maps-routing-v2 GRPC library for google-maps-routing com.google.maps google-maps-routing-parent - 1.69.0 + 1.70.0 diff --git a/java-maps-routing/pom.xml b/java-maps-routing/pom.xml index 20eda9be61aa..74597e2ea10f 100644 --- a/java-maps-routing/pom.xml +++ b/java-maps-routing/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-routing-parent pom - 1.69.0 + 1.70.0 Google Routes API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-routing - 1.69.0 + 1.70.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.69.0 + 1.70.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.69.0 + 1.70.0 diff --git a/java-maps-routing/proto-google-maps-routing-v2/pom.xml b/java-maps-routing/proto-google-maps-routing-v2/pom.xml index 8cf3b99735b1..443b160b7bf2 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/pom.xml +++ b/java-maps-routing/proto-google-maps-routing-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.69.0 + 1.70.0 proto-google-maps-routing-v2 Proto library for google-maps-routing com.google.maps google-maps-routing-parent - 1.69.0 + 1.70.0 diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index 381adacebef6..6b7b4a90d795 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-solar - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.42.0' +implementation 'com.google.maps:google-maps-solar:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.42.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.43.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/google-maps-solar/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.43.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-maps-solar/google-maps-solar-bom/pom.xml b/java-maps-solar/google-maps-solar-bom/pom.xml index cb9791c9b1cf..def3836f0475 100644 --- a/java-maps-solar/google-maps-solar-bom/pom.xml +++ b/java-maps-solar/google-maps-solar-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-solar-bom - 0.43.0 + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-solar - 0.43.0 + 0.44.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.43.0 + 0.44.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.43.0 + 0.44.0 diff --git a/java-maps-solar/google-maps-solar/pom.xml b/java-maps-solar/google-maps-solar/pom.xml index 47b4713174b6..954da3dde9a2 100644 --- a/java-maps-solar/google-maps-solar/pom.xml +++ b/java-maps-solar/google-maps-solar/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-solar - 0.43.0 + 0.44.0 jar Google Solar API Solar API The Solar API allows users to read details about the solar potential of over 60 million buildings. This includes measurements of the building's roof (e.g., size and tilt/azimuth), energy production for a range of sizes of solar installations, and financial costs and benefits. com.google.maps google-maps-solar-parent - 0.43.0 + 0.44.0 google-maps-solar diff --git a/java-maps-solar/grpc-google-maps-solar-v1/pom.xml b/java-maps-solar/grpc-google-maps-solar-v1/pom.xml index 8ea7aac9284c..b860273c8c8c 100644 --- a/java-maps-solar/grpc-google-maps-solar-v1/pom.xml +++ b/java-maps-solar/grpc-google-maps-solar-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.43.0 + 0.44.0 grpc-google-maps-solar-v1 GRPC library for google-maps-solar com.google.maps google-maps-solar-parent - 0.43.0 + 0.44.0 diff --git a/java-maps-solar/pom.xml b/java-maps-solar/pom.xml index 1b2e6751f1c8..e59a678079fd 100644 --- a/java-maps-solar/pom.xml +++ b/java-maps-solar/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-solar-parent pom - 0.43.0 + 0.44.0 Google Solar API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-solar - 0.43.0 + 0.44.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.43.0 + 0.44.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.43.0 + 0.44.0 diff --git a/java-maps-solar/proto-google-maps-solar-v1/pom.xml b/java-maps-solar/proto-google-maps-solar-v1/pom.xml index f5cea4dfb366..24f728328242 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/pom.xml +++ b/java-maps-solar/proto-google-maps-solar-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.43.0 + 0.44.0 proto-google-maps-solar-v1 Proto library for google-maps-solar com.google.maps google-maps-solar-parent - 0.43.0 + 0.44.0 diff --git a/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/DataLayers.java b/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/DataLayers.java index 34ddda7f1159..1834e6a3980f 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/DataLayers.java +++ b/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/DataLayers.java @@ -261,7 +261,7 @@ public com.google.protobuf.ByteString getDsmUrlBytes() { * * *
-   * The URL for an image of RGB data (aerial photo) of the region.
+   * The URL for an image of RGB data (aerial or satellite photo) of the region.
    * 
* * string rgb_url = 4; @@ -285,7 +285,7 @@ public java.lang.String getRgbUrl() { * * *
-   * The URL for an image of RGB data (aerial photo) of the region.
+   * The URL for an image of RGB data (aerial or satellite photo) of the region.
    * 
* * string rgb_url = 4; @@ -1779,7 +1779,7 @@ public Builder setDsmUrlBytes(com.google.protobuf.ByteString value) { * * *
-     * The URL for an image of RGB data (aerial photo) of the region.
+     * The URL for an image of RGB data (aerial or satellite photo) of the region.
      * 
* * string rgb_url = 4; @@ -1802,7 +1802,7 @@ public java.lang.String getRgbUrl() { * * *
-     * The URL for an image of RGB data (aerial photo) of the region.
+     * The URL for an image of RGB data (aerial or satellite photo) of the region.
      * 
* * string rgb_url = 4; @@ -1825,7 +1825,7 @@ public com.google.protobuf.ByteString getRgbUrlBytes() { * * *
-     * The URL for an image of RGB data (aerial photo) of the region.
+     * The URL for an image of RGB data (aerial or satellite photo) of the region.
      * 
* * string rgb_url = 4; @@ -1847,7 +1847,7 @@ public Builder setRgbUrl(java.lang.String value) { * * *
-     * The URL for an image of RGB data (aerial photo) of the region.
+     * The URL for an image of RGB data (aerial or satellite photo) of the region.
      * 
* * string rgb_url = 4; @@ -1865,7 +1865,7 @@ public Builder clearRgbUrl() { * * *
-     * The URL for an image of RGB data (aerial photo) of the region.
+     * The URL for an image of RGB data (aerial or satellite photo) of the region.
      * 
* * string rgb_url = 4; diff --git a/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/DataLayersOrBuilder.java b/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/DataLayersOrBuilder.java index f2615c98bfd7..815832a7beff 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/DataLayersOrBuilder.java +++ b/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/DataLayersOrBuilder.java @@ -140,7 +140,7 @@ public interface DataLayersOrBuilder * * *
-   * The URL for an image of RGB data (aerial photo) of the region.
+   * The URL for an image of RGB data (aerial or satellite photo) of the region.
    * 
* * string rgb_url = 4; @@ -153,7 +153,7 @@ public interface DataLayersOrBuilder * * *
-   * The URL for an image of RGB data (aerial photo) of the region.
+   * The URL for an image of RGB data (aerial or satellite photo) of the region.
    * 
* * string rgb_url = 4; diff --git a/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/Experiment.java b/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/Experiment.java index 7264e1b0071c..7984527ec83b 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/Experiment.java +++ b/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/Experiment.java @@ -25,6 +25,15 @@ * *
  * Specifies pre-GA experiments that can be enabled in the API.
+ *
+ * Requests using this field are classified as a pre-GA offering
+ * under the [Google Maps Platform Service Specific
+ * Terms](https://cloud.google.com/maps-platform/terms/maps-service-terms). See
+ * [launch stage
+ * descriptions](https://cloud.google.com/maps-platform/terms/launch-stages) for
+ * more details.
+ *
+ * New values may be added to this enum in the future.
  * 
* * Protobuf enum {@code google.maps.solar.v1.Experiment} diff --git a/java-maps-solar/proto-google-maps-solar-v1/src/main/proto/google/maps/solar/v1/solar_service.proto b/java-maps-solar/proto-google-maps-solar-v1/src/main/proto/google/maps/solar/v1/solar_service.proto index 3e3b33dd5549..1d2cf2accf1b 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/src/main/proto/google/maps/solar/v1/solar_service.proto +++ b/java-maps-solar/proto-google-maps-solar-v1/src/main/proto/google/maps/solar/v1/solar_service.proto @@ -595,7 +595,7 @@ message DataLayers { // (where we don't have data) are stored as -9999. string dsm_url = 3; - // The URL for an image of RGB data (aerial photo) of the region. + // The URL for an image of RGB data (aerial or satellite photo) of the region. string rgb_url = 4; // The URL for the building mask image: one bit per pixel saying whether that @@ -721,6 +721,15 @@ enum SolarPanelOrientation { } // Specifies pre-GA experiments that can be enabled in the API. +// +// Requests using this field are classified as a pre-GA offering +// under the [Google Maps Platform Service Specific +// Terms](https://cloud.google.com/maps-platform/terms/maps-service-terms). See +// [launch stage +// descriptions](https://cloud.google.com/maps-platform/terms/launch-stages) for +// more details. +// +// New values may be added to this enum in the future. enum Experiment { // No experiments are specified. EXPERIMENT_UNSPECIFIED = 0; diff --git a/java-marketingplatformadminapi/admin-bom/pom.xml b/java-marketingplatformadminapi/admin-bom/pom.xml index 6312e9034ff2..3775b809b41d 100644 --- a/java-marketingplatformadminapi/admin-bom/pom.xml +++ b/java-marketingplatformadminapi/admin-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.ads-marketingplatform admin-bom - 0.33.0 + 0.34.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.ads-marketingplatform admin - 0.33.0 + 0.34.0 com.google.ads-marketingplatform.api.grpc grpc-admin-v1alpha - 0.33.0 + 0.34.0 com.google.ads-marketingplatform.api.grpc proto-admin-v1alpha - 0.33.0 + 0.34.0
diff --git a/java-marketingplatformadminapi/admin/pom.xml b/java-marketingplatformadminapi/admin/pom.xml index 56676b52103e..5dfebaba6688 100644 --- a/java-marketingplatformadminapi/admin/pom.xml +++ b/java-marketingplatformadminapi/admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.ads-marketingplatform admin - 0.33.0 + 0.34.0 jar Google Google Marketing Platform Admin API Google Marketing Platform Admin API The Google Marketing Platform Admin API allows for programmatic access to the Google Marketing Platform configuration data. You can use the Google Marketing Platform Admin API to manage links between your Google Marketing Platform organization and Google Analytics accounts, and to set the service level of your GA4 properties. com.google.ads-marketingplatform admin-parent - 0.33.0 + 0.34.0 admin diff --git a/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml b/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml index 926d4965c6a3..e27c2e8f7c99 100644 --- a/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml +++ b/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.ads-marketingplatform.api.grpc grpc-admin-v1alpha - 0.33.0 + 0.34.0 grpc-admin-v1alpha GRPC library for admin com.google.ads-marketingplatform admin-parent - 0.33.0 + 0.34.0 diff --git a/java-marketingplatformadminapi/pom.xml b/java-marketingplatformadminapi/pom.xml index a0ba95320ab1..21602a70dedb 100644 --- a/java-marketingplatformadminapi/pom.xml +++ b/java-marketingplatformadminapi/pom.xml @@ -4,7 +4,7 @@ com.google.ads-marketingplatform admin-parent pom - 0.33.0 + 0.34.0 Google Google Marketing Platform 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.ads-marketingplatform admin - 0.33.0 + 0.34.0 com.google.ads-marketingplatform.api.grpc grpc-admin-v1alpha - 0.33.0 + 0.34.0 com.google.ads-marketingplatform.api.grpc proto-admin-v1alpha - 0.33.0 + 0.34.0 diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml b/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml index d786ed9dc577..667e15cd8967 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.ads-marketingplatform.api.grpc proto-admin-v1alpha - 0.33.0 + 0.34.0 proto-admin-v1alpha Proto library for admin com.google.ads-marketingplatform admin-parent - 0.33.0 + 0.34.0 diff --git a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml index 2226b4d7db2f..447143fd40ab 100644 --- a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-mediatranslation-bom - 0.90.0 + 0.91.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-mediatranslation - 0.90.0 + 0.91.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.90.0 + 0.91.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.90.0 + 0.91.0 diff --git a/java-mediatranslation/google-cloud-mediatranslation/pom.xml b/java-mediatranslation/google-cloud-mediatranslation/pom.xml index 3139eaab097f..7ccf020855be 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-mediatranslation - 0.90.0 + 0.91.0 jar Google Media Translation API provides enterprise quality translation from/to various media types. com.google.cloud google-cloud-mediatranslation-parent - 0.90.0 + 0.91.0 google-cloud-mediatranslation diff --git a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml index 3866f10efadc..2510bd392f17 100644 --- a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml +++ b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.90.0 + 0.91.0 grpc-google-cloud-mediatranslation-v1beta1 GRPC library for grpc-google-cloud-mediatranslation-v1beta1 com.google.cloud google-cloud-mediatranslation-parent - 0.90.0 + 0.91.0 diff --git a/java-mediatranslation/pom.xml b/java-mediatranslation/pom.xml index 18e898fa5e56..96a4a9eb9bf5 100644 --- a/java-mediatranslation/pom.xml +++ b/java-mediatranslation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-mediatranslation-parent pom - 0.90.0 + 0.91.0 Google Media Translation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-mediatranslation - 0.90.0 + 0.91.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.90.0 + 0.91.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.90.0 + 0.91.0 diff --git a/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml b/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml index dcac03ceea99..4f324cac0cbf 100644 --- a/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml +++ b/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.90.0 + 0.91.0 proto-google-cloud-mediatranslation-v1beta1 PROTO library for proto-google-cloud-mediatranslation-v1beta1 com.google.cloud google-cloud-mediatranslation-parent - 0.90.0 + 0.91.0 diff --git a/java-meet/google-cloud-meet-bom/pom.xml b/java-meet/google-cloud-meet-bom/pom.xml index 7954c793080a..d6f18a03a9d7 100644 --- a/java-meet/google-cloud-meet-bom/pom.xml +++ b/java-meet/google-cloud-meet-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-meet-bom - 0.51.0 + 0.52.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-meet - 0.51.0 + 0.52.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.51.0 + 0.52.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.51.0 + 0.52.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.51.0 + 0.52.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.51.0 + 0.52.0 diff --git a/java-meet/google-cloud-meet/pom.xml b/java-meet/google-cloud-meet/pom.xml index cb0370999070..a9927253f3e2 100644 --- a/java-meet/google-cloud-meet/pom.xml +++ b/java-meet/google-cloud-meet/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-meet - 0.51.0 + 0.52.0 jar Google Google Meet API Google Meet API The Google Meet REST API lets you create and manage meetings for Google Meet and offers entry points to your users directly from your app com.google.cloud google-cloud-meet-parent - 0.51.0 + 0.52.0 google-cloud-meet diff --git a/java-meet/grpc-google-cloud-meet-v2/pom.xml b/java-meet/grpc-google-cloud-meet-v2/pom.xml index e0342b61832b..bfce50a186ef 100644 --- a/java-meet/grpc-google-cloud-meet-v2/pom.xml +++ b/java-meet/grpc-google-cloud-meet-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.51.0 + 0.52.0 grpc-google-cloud-meet-v2 GRPC library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.51.0 + 0.52.0 diff --git a/java-meet/grpc-google-cloud-meet-v2beta/pom.xml b/java-meet/grpc-google-cloud-meet-v2beta/pom.xml index 66cb43491d89..71df0a5897db 100644 --- a/java-meet/grpc-google-cloud-meet-v2beta/pom.xml +++ b/java-meet/grpc-google-cloud-meet-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.51.0 + 0.52.0 grpc-google-cloud-meet-v2beta GRPC library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.51.0 + 0.52.0 diff --git a/java-meet/pom.xml b/java-meet/pom.xml index ca53bf1a200a..7b9cc367d881 100644 --- a/java-meet/pom.xml +++ b/java-meet/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-meet-parent pom - 0.51.0 + 0.52.0 Google Google Meet API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-meet - 0.51.0 + 0.52.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.51.0 + 0.52.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.51.0 + 0.52.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.51.0 + 0.52.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.51.0 + 0.52.0 diff --git a/java-meet/proto-google-cloud-meet-v2/pom.xml b/java-meet/proto-google-cloud-meet-v2/pom.xml index 912a51a4c5e9..d0dd66c12a16 100644 --- a/java-meet/proto-google-cloud-meet-v2/pom.xml +++ b/java-meet/proto-google-cloud-meet-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.51.0 + 0.52.0 proto-google-cloud-meet-v2 Proto library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.51.0 + 0.52.0 diff --git a/java-meet/proto-google-cloud-meet-v2beta/pom.xml b/java-meet/proto-google-cloud-meet-v2beta/pom.xml index e7dbb70098dd..a275dd02c8f1 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/pom.xml +++ b/java-meet/proto-google-cloud-meet-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.51.0 + 0.52.0 proto-google-cloud-meet-v2beta Proto library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.51.0 + 0.52.0 diff --git a/java-memcache/google-cloud-memcache-bom/pom.xml b/java-memcache/google-cloud-memcache-bom/pom.xml index ffc8b01c58d1..0344d7743e54 100644 --- a/java-memcache/google-cloud-memcache-bom/pom.xml +++ b/java-memcache/google-cloud-memcache-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-memcache-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-memcache - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.84.0 + 2.85.0 diff --git a/java-memcache/google-cloud-memcache/pom.xml b/java-memcache/google-cloud-memcache/pom.xml index 580dc45707d0..356b2707ce15 100644 --- a/java-memcache/google-cloud-memcache/pom.xml +++ b/java-memcache/google-cloud-memcache/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-memcache - 2.84.0 + 2.85.0 jar Google Cloud Memcache Java idiomatic client for Google Cloud memcache com.google.cloud google-cloud-memcache-parent - 2.84.0 + 2.85.0 google-cloud-memcache diff --git a/java-memcache/grpc-google-cloud-memcache-v1/pom.xml b/java-memcache/grpc-google-cloud-memcache-v1/pom.xml index f2c54b9f8e27..3be9a1c3b403 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1/pom.xml +++ b/java-memcache/grpc-google-cloud-memcache-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.84.0 + 2.85.0 grpc-google-cloud-memcache-v1 GRPC library for grpc-google-cloud-memcache-v1 com.google.cloud google-cloud-memcache-parent - 2.84.0 + 2.85.0 diff --git a/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml b/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml index a0863644e7a7..db560e38b0cf 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml +++ b/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.91.0 + 0.92.0 grpc-google-cloud-memcache-v1beta2 GRPC library for grpc-google-cloud-memcache-v1beta2 com.google.cloud google-cloud-memcache-parent - 2.84.0 + 2.85.0 diff --git a/java-memcache/pom.xml b/java-memcache/pom.xml index d7261de7afa2..cb561fd1ad34 100644 --- a/java-memcache/pom.xml +++ b/java-memcache/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-memcache-parent pom - 2.84.0 + 2.85.0 Google Cloud Memcache Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-memcache - 2.84.0 + 2.85.0 diff --git a/java-memcache/proto-google-cloud-memcache-v1/pom.xml b/java-memcache/proto-google-cloud-memcache-v1/pom.xml index 1b0ae2d1cb95..fe42bbb3e1c2 100644 --- a/java-memcache/proto-google-cloud-memcache-v1/pom.xml +++ b/java-memcache/proto-google-cloud-memcache-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.84.0 + 2.85.0 proto-google-cloud-memcache-v1 PROTO library for proto-google-cloud-memcache-v1 com.google.cloud google-cloud-memcache-parent - 2.84.0 + 2.85.0 diff --git a/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml b/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml index e9a0aaf03645..282886764961 100644 --- a/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml +++ b/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.91.0 + 0.92.0 proto-google-cloud-memcache-v1beta2 PROTO library for proto-google-cloud-memcache-v1beta2 com.google.cloud google-cloud-memcache-parent - 2.84.0 + 2.85.0 diff --git a/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml b/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml index b3bd5dc45515..0fb74ca84420 100644 --- a/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml +++ b/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-migrationcenter-bom - 0.66.0 + 0.67.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-migrationcenter - 0.66.0 + 0.67.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.66.0 + 0.67.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.66.0 + 0.67.0 diff --git a/java-migrationcenter/google-cloud-migrationcenter/pom.xml b/java-migrationcenter/google-cloud-migrationcenter/pom.xml index bbd0cc9da95c..93c8be2e08a9 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/pom.xml +++ b/java-migrationcenter/google-cloud-migrationcenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-migrationcenter - 0.66.0 + 0.67.0 jar Google Migration Center API Migration Center API Google Cloud Migration Center is a unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud com.google.cloud google-cloud-migrationcenter-parent - 0.66.0 + 0.67.0 google-cloud-migrationcenter diff --git a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml index a097ce211412..dc55ed9b8273 100644 --- a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml +++ b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.66.0 + 0.67.0 grpc-google-cloud-migrationcenter-v1 GRPC library for google-cloud-migrationcenter com.google.cloud google-cloud-migrationcenter-parent - 0.66.0 + 0.67.0 diff --git a/java-migrationcenter/pom.xml b/java-migrationcenter/pom.xml index 7f4942a07641..666b1501c8c9 100644 --- a/java-migrationcenter/pom.xml +++ b/java-migrationcenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-migrationcenter-parent pom - 0.66.0 + 0.67.0 Google Migration 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-migrationcenter - 0.66.0 + 0.67.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.66.0 + 0.67.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.66.0 + 0.67.0 diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml index 1ff167d7b389..635896880a3a 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.66.0 + 0.67.0 proto-google-cloud-migrationcenter-v1 Proto library for google-cloud-migrationcenter com.google.cloud google-cloud-migrationcenter-parent - 0.66.0 + 0.67.0 diff --git a/java-modelarmor/google-cloud-modelarmor-bom/pom.xml b/java-modelarmor/google-cloud-modelarmor-bom/pom.xml index 044a52f1cebc..fe4555422bdd 100644 --- a/java-modelarmor/google-cloud-modelarmor-bom/pom.xml +++ b/java-modelarmor/google-cloud-modelarmor-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-modelarmor-bom - 0.25.0 + 0.26.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.cloud google-cloud-modelarmor - 0.25.0 + 0.26.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1 - 0.25.0 + 0.26.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1beta - 0.25.0 + 0.26.0 com.google.api.grpc proto-google-cloud-modelarmor-v1 - 0.25.0 + 0.26.0 com.google.api.grpc proto-google-cloud-modelarmor-v1beta - 0.25.0 + 0.26.0 diff --git a/java-modelarmor/google-cloud-modelarmor/pom.xml b/java-modelarmor/google-cloud-modelarmor/pom.xml index 9ee00d0de549..c25480f2eaf8 100644 --- a/java-modelarmor/google-cloud-modelarmor/pom.xml +++ b/java-modelarmor/google-cloud-modelarmor/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-modelarmor - 0.25.0 + 0.26.0 jar Google Model Armor API Model Armor API Model Armor helps you protect against risks like prompt injection, harmful content, and data leakage in generative AI applications by letting you define policies that filter user prompts and model responses. com.google.cloud google-cloud-modelarmor-parent - 0.25.0 + 0.26.0 google-cloud-modelarmor diff --git a/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml b/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml index 09ef5b2382d3..f1a652d47730 100644 --- a/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml +++ b/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1 - 0.25.0 + 0.26.0 grpc-google-cloud-modelarmor-v1 GRPC library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.25.0 + 0.26.0 diff --git a/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml b/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml index def538dc00d6..81090e7d93da 100644 --- a/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml +++ b/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1beta - 0.25.0 + 0.26.0 grpc-google-cloud-modelarmor-v1beta GRPC library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.25.0 + 0.26.0 diff --git a/java-modelarmor/pom.xml b/java-modelarmor/pom.xml index fb2a10bd827d..307711a4654c 100644 --- a/java-modelarmor/pom.xml +++ b/java-modelarmor/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-modelarmor-parent pom - 0.25.0 + 0.26.0 Google Model Armor API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-modelarmor - 0.25.0 + 0.26.0 com.google.api.grpc proto-google-cloud-modelarmor-v1beta - 0.25.0 + 0.26.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1beta - 0.25.0 + 0.26.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1 - 0.25.0 + 0.26.0 com.google.api.grpc proto-google-cloud-modelarmor-v1 - 0.25.0 + 0.26.0 diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml b/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml index d081643a8cb7..358a0bcfd0de 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-modelarmor-v1 - 0.25.0 + 0.26.0 proto-google-cloud-modelarmor-v1 Proto library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.25.0 + 0.26.0 diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml index 4f1fa9b926cf..0eed337f662c 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-modelarmor-v1beta - 0.25.0 + 0.26.0 proto-google-cloud-modelarmor-v1beta Proto library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.25.0 + 0.26.0 diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml index 148f32a8ce2e..48c5c917decd 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard-bom - 2.86.0 + 2.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-monitoring-dashboard - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.86.0 + 2.87.0 diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml index 460c8bbb1504..e9917c35072d 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard - 2.86.0 + 2.87.0 jar Google Cloud Monitoring Dashboard Java idiomatic client for Google Cloud Monitoring Dashboard com.google.cloud google-cloud-monitoring-dashboard-parent - 2.86.0 + 2.87.0 google-cloud-monitoring-dashboard diff --git a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml index 7928912a0023..2f4a173cba72 100644 --- a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.86.0 + 2.87.0 grpc-google-cloud-monitoring-dashboard-v1 GRPC library for grpc-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.86.0 + 2.87.0 diff --git a/java-monitoring-dashboards/pom.xml b/java-monitoring-dashboards/pom.xml index 797355104f91..13db90759f49 100644 --- a/java-monitoring-dashboards/pom.xml +++ b/java-monitoring-dashboards/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-dashboard-parent pom - 2.86.0 + 2.87.0 Google Cloud Monitoring Dashboard Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.86.0 + 2.87.0 com.google.cloud google-cloud-monitoring-dashboard - 2.86.0 + 2.87.0 diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml index db855d523f44..b8924aa6fab5 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.86.0 + 2.87.0 proto-google-cloud-monitoring-dashboard-v1 PROTO library for proto-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.86.0 + 2.87.0 diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml index cb533f5f60cf..e873b801a29a 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.78.0 + 0.79.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-monitoring-metricsscope - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.78.0 + 0.79.0 diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml index 831754b55156..1edd87d24e01 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring-metricsscope - 0.78.0 + 0.79.0 jar Google Monitoring Metrics Scopes Monitoring Metrics Scopes The metrics scope defines the set of Google Cloud projects whose metrics the current Google Cloud project can access. com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.78.0 + 0.79.0 google-cloud-monitoring-metricsscope diff --git a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml index 8f566bcf608f..66ab68e0d292 100644 --- a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml +++ b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.78.0 + 0.79.0 grpc-google-cloud-monitoring-metricsscope-v1 GRPC library for google-cloud-monitoring-metricsscope com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.78.0 + 0.79.0 diff --git a/java-monitoring-metricsscope/pom.xml b/java-monitoring-metricsscope/pom.xml index 262f7f423401..97a4c615fb10 100644 --- a/java-monitoring-metricsscope/pom.xml +++ b/java-monitoring-metricsscope/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-metricsscope-parent pom - 0.78.0 + 0.79.0 Google Monitoring Metrics Scopes Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-monitoring-metricsscope - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.78.0 + 0.79.0 diff --git a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml index fb3c8eb808a1..d411f4696391 100644 --- a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml +++ b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.78.0 + 0.79.0 proto-google-cloud-monitoring-metricsscope-v1 Proto library for google-cloud-monitoring-metricsscope com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.78.0 + 0.79.0 diff --git a/java-monitoring/google-cloud-monitoring-bom/pom.xml b/java-monitoring/google-cloud-monitoring-bom/pom.xml index 8bc7d3b36076..77c2d57b54a8 100644 --- a/java-monitoring/google-cloud-monitoring-bom/pom.xml +++ b/java-monitoring/google-cloud-monitoring-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-bom - 3.85.0 + 3.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-monitoring - 3.85.0 + 3.86.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.85.0 + 3.86.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.85.0 + 3.86.0 diff --git a/java-monitoring/google-cloud-monitoring/pom.xml b/java-monitoring/google-cloud-monitoring/pom.xml index 0dfa0ba659d9..8ed17934a170 100644 --- a/java-monitoring/google-cloud-monitoring/pom.xml +++ b/java-monitoring/google-cloud-monitoring/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring - 3.85.0 + 3.86.0 jar Google Cloud Monitoring Java idiomatic client for Stackdriver Monitoring com.google.cloud google-cloud-monitoring-parent - 3.85.0 + 3.86.0 google-cloud-monitoring diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml b/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml index 5b1da457a341..618c05266d8a 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.85.0 + 3.86.0 grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.cloud google-cloud-monitoring-parent - 3.85.0 + 3.86.0 diff --git a/java-monitoring/pom.xml b/java-monitoring/pom.xml index ac29e054ab1d..1e71e71b5674 100644 --- a/java-monitoring/pom.xml +++ b/java-monitoring/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-parent pom - 3.85.0 + 3.86.0 Google Cloud Monitoring Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.85.0 + 3.86.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.85.0 + 3.86.0 com.google.cloud google-cloud-monitoring - 3.85.0 + 3.86.0 diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml b/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml index e06cdfd16f46..832bd60ac115 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml +++ b/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.85.0 + 3.86.0 proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.cloud google-cloud-monitoring-parent - 3.85.0 + 3.86.0 diff --git a/java-netapp/google-cloud-netapp-bom/pom.xml b/java-netapp/google-cloud-netapp-bom/pom.xml index 11514c7a827f..12dde80e9d20 100644 --- a/java-netapp/google-cloud-netapp-bom/pom.xml +++ b/java-netapp/google-cloud-netapp-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-netapp-bom - 0.63.0 + 0.64.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-netapp - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.63.0 + 0.64.0 diff --git a/java-netapp/google-cloud-netapp/pom.xml b/java-netapp/google-cloud-netapp/pom.xml index a5f8b0a2719c..c8d8798c61d8 100644 --- a/java-netapp/google-cloud-netapp/pom.xml +++ b/java-netapp/google-cloud-netapp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-netapp - 0.63.0 + 0.64.0 jar Google NetApp API NetApp API Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability. com.google.cloud google-cloud-netapp-parent - 0.63.0 + 0.64.0 google-cloud-netapp diff --git a/java-netapp/grpc-google-cloud-netapp-v1/pom.xml b/java-netapp/grpc-google-cloud-netapp-v1/pom.xml index c75293726a45..3d4fc765822f 100644 --- a/java-netapp/grpc-google-cloud-netapp-v1/pom.xml +++ b/java-netapp/grpc-google-cloud-netapp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.63.0 + 0.64.0 grpc-google-cloud-netapp-v1 GRPC library for google-cloud-netapp com.google.cloud google-cloud-netapp-parent - 0.63.0 + 0.64.0 diff --git a/java-netapp/pom.xml b/java-netapp/pom.xml index 5593b5b93e15..cf3eb4fb5a0e 100644 --- a/java-netapp/pom.xml +++ b/java-netapp/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-netapp-parent pom - 0.63.0 + 0.64.0 Google NetApp API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-netapp - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.63.0 + 0.64.0 diff --git a/java-netapp/proto-google-cloud-netapp-v1/pom.xml b/java-netapp/proto-google-cloud-netapp-v1/pom.xml index 6d87f195e8f2..9c5c41c86940 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/pom.xml +++ b/java-netapp/proto-google-cloud-netapp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.63.0 + 0.64.0 proto-google-cloud-netapp-v1 Proto library for google-cloud-netapp com.google.cloud google-cloud-netapp-parent - 0.63.0 + 0.64.0 diff --git a/java-network-management/google-cloud-network-management-bom/pom.xml b/java-network-management/google-cloud-network-management-bom/pom.xml index 85bb31bbc36f..be90b71db583 100644 --- a/java-network-management/google-cloud-network-management-bom/pom.xml +++ b/java-network-management/google-cloud-network-management-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-network-management-bom - 1.85.0 + 1.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-network-management - 1.85.0 + 1.86.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.85.0 + 1.86.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.85.0 + 1.86.0 diff --git a/java-network-management/google-cloud-network-management/pom.xml b/java-network-management/google-cloud-network-management/pom.xml index abc9100add96..2907e95db2e6 100644 --- a/java-network-management/google-cloud-network-management/pom.xml +++ b/java-network-management/google-cloud-network-management/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-network-management - 1.85.0 + 1.86.0 jar Google Network Management API Network Management API provides a collection of network performance monitoring and diagnostic capabilities. com.google.cloud google-cloud-network-management-parent - 1.85.0 + 1.86.0 google-cloud-network-management diff --git a/java-network-management/grpc-google-cloud-network-management-v1/pom.xml b/java-network-management/grpc-google-cloud-network-management-v1/pom.xml index 4379db07d638..4ef12b9c87fa 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1/pom.xml +++ b/java-network-management/grpc-google-cloud-network-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.85.0 + 1.86.0 grpc-google-cloud-network-management-v1 GRPC library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.85.0 + 1.86.0 diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml b/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml index 1369a21eeec2..f9281500a62d 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.87.0 + 0.88.0 grpc-google-cloud-network-management-v1beta1 GRPC library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.85.0 + 1.86.0 diff --git a/java-network-management/pom.xml b/java-network-management/pom.xml index 7b613a162332..92b8694f4f9c 100644 --- a/java-network-management/pom.xml +++ b/java-network-management/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-network-management-parent pom - 1.85.0 + 1.86.0 Google Network 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-network-management - 1.85.0 + 1.86.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.85.0 + 1.86.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.85.0 + 1.86.0 diff --git a/java-network-management/proto-google-cloud-network-management-v1/pom.xml b/java-network-management/proto-google-cloud-network-management-v1/pom.xml index 0dcb37f40d19..622e8c9e4609 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/pom.xml +++ b/java-network-management/proto-google-cloud-network-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.85.0 + 1.86.0 proto-google-cloud-network-management-v1 Proto library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.85.0 + 1.86.0 diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml b/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml index dfb46b0e7150..74b3c5883325 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.87.0 + 0.88.0 proto-google-cloud-network-management-v1beta1 Proto library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.85.0 + 1.86.0 diff --git a/java-network-security/google-cloud-network-security-bom/pom.xml b/java-network-security/google-cloud-network-security-bom/pom.xml index 492ac2a95309..f141a63563e6 100644 --- a/java-network-security/google-cloud-network-security-bom/pom.xml +++ b/java-network-security/google-cloud-network-security-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-network-security-bom - 0.87.0 + 0.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-network-security - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.87.0 + 0.88.0 diff --git a/java-network-security/google-cloud-network-security/pom.xml b/java-network-security/google-cloud-network-security/pom.xml index efb95fcb6e41..ed76151705d2 100644 --- a/java-network-security/google-cloud-network-security/pom.xml +++ b/java-network-security/google-cloud-network-security/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-network-security - 0.87.0 + 0.88.0 jar Google Network Security API Network Security API n/a com.google.cloud google-cloud-network-security-parent - 0.87.0 + 0.88.0 google-cloud-network-security diff --git a/java-network-security/grpc-google-cloud-network-security-v1/pom.xml b/java-network-security/grpc-google-cloud-network-security-v1/pom.xml index d34be692cfe9..f12fb4157229 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1/pom.xml +++ b/java-network-security/grpc-google-cloud-network-security-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.87.0 + 0.88.0 grpc-google-cloud-network-security-v1 GRPC library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.87.0 + 0.88.0 diff --git a/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml b/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml index 3d53e704fcfb..30d21c8b237b 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml +++ b/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.87.0 + 0.88.0 grpc-google-cloud-network-security-v1beta1 GRPC library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.87.0 + 0.88.0 diff --git a/java-network-security/pom.xml b/java-network-security/pom.xml index b5c258e6b580..d043b70c05f1 100644 --- a/java-network-security/pom.xml +++ b/java-network-security/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-network-security-parent pom - 0.87.0 + 0.88.0 Google Network Security API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-network-security - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.87.0 + 0.88.0 diff --git a/java-network-security/proto-google-cloud-network-security-v1/pom.xml b/java-network-security/proto-google-cloud-network-security-v1/pom.xml index 2e7ed1e484a9..3d98b3ec192d 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/pom.xml +++ b/java-network-security/proto-google-cloud-network-security-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.87.0 + 0.88.0 proto-google-cloud-network-security-v1 Proto library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.87.0 + 0.88.0 diff --git a/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml b/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml index 0632342a813f..fafd02923191 100644 --- a/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml +++ b/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.87.0 + 0.88.0 proto-google-cloud-network-security-v1beta1 Proto library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.87.0 + 0.88.0 diff --git a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml index bf226ce4a065..b6aeba0a839e 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-networkconnectivity-bom - 1.83.0 + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-networkconnectivity - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.83.0 + 1.84.0 diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml index b3f71764dd5e..28b7099db0c0 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-networkconnectivity - 1.83.0 + 1.84.0 jar Google Network Connectivity Center Google's suite of products that provide enterprise connectivity from your on-premises network or from another cloud provider to your Virtual Private Cloud (VPC) network com.google.cloud google-cloud-networkconnectivity-parent - 1.83.0 + 1.84.0 google-cloud-networkconnectivity diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml index cc989492e019..8c9eec8fe9af 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.83.0 + 1.84.0 grpc-google-cloud-networkconnectivity-v1 GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.83.0 + 1.84.0 diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml index 25cb23048283..151627027d20 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.89.0 + 0.90.0 grpc-google-cloud-networkconnectivity-v1alpha1 GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.83.0 + 1.84.0 diff --git a/java-networkconnectivity/pom.xml b/java-networkconnectivity/pom.xml index bff6ad2f924f..7d9bba4f2675 100644 --- a/java-networkconnectivity/pom.xml +++ b/java-networkconnectivity/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-networkconnectivity-parent pom - 1.83.0 + 1.84.0 Google Network Connectivity Center Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-networkconnectivity - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.89.0 + 0.90.0 diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml index db2e702ac906..6c4d0020f710 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.83.0 + 1.84.0 proto-google-cloud-networkconnectivity-v1 Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.83.0 + 1.84.0 diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml index 0cd2849508c5..b8e465bd01b2 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.89.0 + 0.90.0 proto-google-cloud-networkconnectivity-v1alpha1 Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.83.0 + 1.84.0 diff --git a/java-networkservices/google-cloud-networkservices-bom/pom.xml b/java-networkservices/google-cloud-networkservices-bom/pom.xml index 4ff0c4858b37..907bab036eea 100644 --- a/java-networkservices/google-cloud-networkservices-bom/pom.xml +++ b/java-networkservices/google-cloud-networkservices-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-networkservices-bom - 0.40.0 + 0.41.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-networkservices - 0.40.0 + 0.41.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.40.0 + 0.41.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.40.0 + 0.41.0 diff --git a/java-networkservices/google-cloud-networkservices/pom.xml b/java-networkservices/google-cloud-networkservices/pom.xml index c4381a4dcb13..9960eb7e933c 100644 --- a/java-networkservices/google-cloud-networkservices/pom.xml +++ b/java-networkservices/google-cloud-networkservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-networkservices - 0.40.0 + 0.41.0 jar Google Network Services API Network Services API Google Cloud offers a broad portfolio of networking services built on top of planet-scale infrastructure that leverages automation, advanced AI, and programmability, enabling enterprises to connect, scale, secure, modernize and optimize their infrastructure. com.google.cloud google-cloud-networkservices-parent - 0.40.0 + 0.41.0 google-cloud-networkservices diff --git a/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml b/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml index a4791c183128..4318830c6097 100644 --- a/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml +++ b/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.40.0 + 0.41.0 grpc-google-cloud-networkservices-v1 GRPC library for google-cloud-networkservices com.google.cloud google-cloud-networkservices-parent - 0.40.0 + 0.41.0 diff --git a/java-networkservices/pom.xml b/java-networkservices/pom.xml index eda0bab7523e..ff8f624dd9ef 100644 --- a/java-networkservices/pom.xml +++ b/java-networkservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-networkservices-parent pom - 0.40.0 + 0.41.0 Google Network 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-networkservices - 0.40.0 + 0.41.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.40.0 + 0.41.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.40.0 + 0.41.0 diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml b/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml index 5586ad498f04..d3fdb29193f4 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml +++ b/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.40.0 + 0.41.0 proto-google-cloud-networkservices-v1 Proto library for google-cloud-networkservices com.google.cloud google-cloud-networkservices-parent - 0.40.0 + 0.41.0 diff --git a/java-notebooks/google-cloud-notebooks-bom/pom.xml b/java-notebooks/google-cloud-notebooks-bom/pom.xml index e1bbd0ac74f2..9e3c9f0f1b27 100644 --- a/java-notebooks/google-cloud-notebooks-bom/pom.xml +++ b/java-notebooks/google-cloud-notebooks-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-notebooks-bom - 1.82.0 + 1.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-notebooks - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.89.0 + 0.90.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.82.0 + 1.83.0 diff --git a/java-notebooks/google-cloud-notebooks/pom.xml b/java-notebooks/google-cloud-notebooks/pom.xml index 8f2a659cff3b..ae147480484f 100644 --- a/java-notebooks/google-cloud-notebooks/pom.xml +++ b/java-notebooks/google-cloud-notebooks/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-notebooks - 1.82.0 + 1.83.0 jar Google AI Platform Notebooks is a managed service that offers an integrated and secure JupyterLab environment for data scientists and machine learning developers to experiment, develop, and deploy models into production. Users can create instances running JupyterLab that come pre-installed with the latest data science and machine learning frameworks in a single click. com.google.cloud google-cloud-notebooks-parent - 1.82.0 + 1.83.0 google-cloud-notebooks @@ -110,13 +110,6 @@ proto-google-iam-v1 - - com.google.api - gax-grpc - testlib - test - - com.google.api gax diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml index 09a7fa200c1c..b056c368f75a 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.82.0 + 1.83.0 grpc-google-cloud-notebooks-v1 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.82.0 + 1.83.0 diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml index 7c425f5f979b..94fd7f80b567 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.89.0 + 0.90.0 grpc-google-cloud-notebooks-v1beta1 GRPC library for grpc-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.82.0 + 1.83.0 diff --git a/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml index 785540d2f288..29142706371d 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.82.0 + 1.83.0 grpc-google-cloud-notebooks-v2 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.82.0 + 1.83.0 diff --git a/java-notebooks/pom.xml b/java-notebooks/pom.xml index 7dedb49f2ae2..4bd0bba3921d 100644 --- a/java-notebooks/pom.xml +++ b/java-notebooks/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-notebooks-parent pom - 1.82.0 + 1.83.0 Google AI Platform Notebooks Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-notebooks - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.89.0 + 0.90.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.89.0 + 0.90.0 diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml index 9bcb73e6216a..ba9349b12b41 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.82.0 + 1.83.0 proto-google-cloud-notebooks-v1 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.82.0 + 1.83.0 diff --git a/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml index 917131300fd2..02c98df99853 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.89.0 + 0.90.0 proto-google-cloud-notebooks-v1beta1 PROTO library for proto-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.82.0 + 1.83.0 diff --git a/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml index 401f9f3ea3b7..07ea1062c405 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.82.0 + 1.83.0 proto-google-cloud-notebooks-v2 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.82.0 + 1.83.0 diff --git a/java-notification/README.md b/java-notification/README.md index 0c7333120ab5..de3e60c47ce8 100644 --- a/java-notification/README.md +++ b/java-notification/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notification - 0.202.0-beta + 0.203.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notification:0.202.0-beta' +implementation 'com.google.cloud:google-cloud-notification:0.203.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.202.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.203.0-beta" ``` diff --git a/java-notification/pom.xml b/java-notification/pom.xml index 2fc23fee779a..868b9e365b6a 100644 --- a/java-notification/pom.xml +++ b/java-notification/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-notification - 0.202.0-beta + 0.203.0-beta jar Google Cloud Pub/Sub Notifications for GCS @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-optimization/google-cloud-optimization-bom/pom.xml b/java-optimization/google-cloud-optimization-bom/pom.xml index a48bf41ddd6e..f5fb7b06db6b 100644 --- a/java-optimization/google-cloud-optimization-bom/pom.xml +++ b/java-optimization/google-cloud-optimization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-optimization-bom - 1.82.0 + 1.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-optimization - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.82.0 + 1.83.0 diff --git a/java-optimization/google-cloud-optimization/pom.xml b/java-optimization/google-cloud-optimization/pom.xml index 83de6dd3b429..f2352f52662c 100644 --- a/java-optimization/google-cloud-optimization/pom.xml +++ b/java-optimization/google-cloud-optimization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-optimization - 1.82.0 + 1.83.0 jar Google Cloud Fleet Routing Cloud Fleet Routing is a managed routing service that takes your list of orders, vehicles, constraints, and objectives and returns the most efficient plan for your entire fleet in near real-time. com.google.cloud google-cloud-optimization-parent - 1.82.0 + 1.83.0 google-cloud-optimization diff --git a/java-optimization/grpc-google-cloud-optimization-v1/pom.xml b/java-optimization/grpc-google-cloud-optimization-v1/pom.xml index f4d2bf23c09c..ab288ce57de3 100644 --- a/java-optimization/grpc-google-cloud-optimization-v1/pom.xml +++ b/java-optimization/grpc-google-cloud-optimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.82.0 + 1.83.0 grpc-google-cloud-optimization-v1 GRPC library for google-cloud-optimization com.google.cloud google-cloud-optimization-parent - 1.82.0 + 1.83.0 diff --git a/java-optimization/pom.xml b/java-optimization/pom.xml index d3f049c259fc..842f1d22f54d 100644 --- a/java-optimization/pom.xml +++ b/java-optimization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-optimization-parent pom - 1.82.0 + 1.83.0 Google Cloud Fleet Routing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-optimization - 1.82.0 + 1.83.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.82.0 + 1.83.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.82.0 + 1.83.0 diff --git a/java-optimization/proto-google-cloud-optimization-v1/pom.xml b/java-optimization/proto-google-cloud-optimization-v1/pom.xml index 17ac8efd4f5e..889e0e412896 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/pom.xml +++ b/java-optimization/proto-google-cloud-optimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.82.0 + 1.83.0 proto-google-cloud-optimization-v1 Proto library for google-cloud-optimization com.google.cloud google-cloud-optimization-parent - 1.82.0 + 1.83.0 diff --git a/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml b/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml index 3f79c131ad35..f3ced95da02c 100644 --- a/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml +++ b/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-oracledatabase-bom - 0.33.0 + 0.34.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-oracledatabase - 0.33.0 + 0.34.0 com.google.api.grpc grpc-google-cloud-oracledatabase-v1 - 0.33.0 + 0.34.0 com.google.api.grpc proto-google-cloud-oracledatabase-v1 - 0.33.0 + 0.34.0 diff --git a/java-oracledatabase/google-cloud-oracledatabase/pom.xml b/java-oracledatabase/google-cloud-oracledatabase/pom.xml index bb9f38715a8b..d88570b0c629 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/pom.xml +++ b/java-oracledatabase/google-cloud-oracledatabase/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-oracledatabase - 0.33.0 + 0.34.0 jar Google Oracle Database@Google Cloud API Oracle Database@Google Cloud API The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. com.google.cloud google-cloud-oracledatabase-parent - 0.33.0 + 0.34.0 google-cloud-oracledatabase diff --git a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml index a6398fd1337d..e08d1ffa234d 100644 --- a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml +++ b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-oracledatabase-v1 - 0.33.0 + 0.34.0 grpc-google-cloud-oracledatabase-v1 GRPC library for google-cloud-oracledatabase com.google.cloud google-cloud-oracledatabase-parent - 0.33.0 + 0.34.0 diff --git a/java-oracledatabase/pom.xml b/java-oracledatabase/pom.xml index 4df09dd440f4..c09643ef1ecd 100644 --- a/java-oracledatabase/pom.xml +++ b/java-oracledatabase/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-oracledatabase-parent pom - 0.33.0 + 0.34.0 Google Oracle Database@Google Cloud API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-oracledatabase - 0.33.0 + 0.34.0 com.google.api.grpc grpc-google-cloud-oracledatabase-v1 - 0.33.0 + 0.34.0 com.google.api.grpc proto-google-cloud-oracledatabase-v1 - 0.33.0 + 0.34.0 diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml index 64a77937d942..fb510d360ec5 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-oracledatabase-v1 - 0.33.0 + 0.34.0 proto-google-cloud-oracledatabase-v1 Proto library for google-cloud-oracledatabase com.google.cloud google-cloud-oracledatabase-parent - 0.33.0 + 0.34.0 diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml index c0199619cd1f..5d38b9b88b60 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-orchestration-airflow-bom - 1.84.0 + 1.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-orchestration-airflow - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.87.0 + 0.88.0 diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml index f2e67d1179c5..cdbace67d519 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-orchestration-airflow - 1.84.0 + 1.85.0 jar Google Cloud Composer Cloud Composer is a managed Apache Airflow service that helps you create, schedule, monitor and manage workflows. Cloud Composer automation helps you create Airflow environments quickly and use Airflow-native tools, such as the powerful Airflow web interface and command line tools, so you can focus on your workflows and not your infrastructure. com.google.cloud google-cloud-orchestration-airflow-parent - 1.84.0 + 1.85.0 google-cloud-orchestration-airflow diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml index 4260e93b552f..c27bdc653dcb 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.84.0 + 1.85.0 grpc-google-cloud-orchestration-airflow-v1 GRPC library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.84.0 + 1.85.0 diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml index 54cfd29a6352..a747925244fb 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.87.0 + 0.88.0 grpc-google-cloud-orchestration-airflow-v1beta1 GRPC library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.84.0 + 1.85.0 diff --git a/java-orchestration-airflow/pom.xml b/java-orchestration-airflow/pom.xml index 7ea934f00a55..6ad2a11bbcb2 100644 --- a/java-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-orchestration-airflow-parent pom - 1.84.0 + 1.85.0 Google Cloud Composer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-orchestration-airflow - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.87.0 + 0.88.0 diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml index a93718a8213a..ce404cc788a6 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.84.0 + 1.85.0 proto-google-cloud-orchestration-airflow-v1 Proto library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.84.0 + 1.85.0 diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml index b9219f87b4b3..971eb30d0ce4 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.87.0 + 0.88.0 proto-google-cloud-orchestration-airflow-v1beta1 Proto library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.84.0 + 1.85.0 diff --git a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml index d697aa0ef7ba..2f16b1ddbad4 100644 --- a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-orgpolicy-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,22 +26,22 @@ com.google.cloud google-cloud-orgpolicy - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.84.0 + 2.85.0 diff --git a/java-orgpolicy/google-cloud-orgpolicy/pom.xml b/java-orgpolicy/google-cloud-orgpolicy/pom.xml index 17cc08d2a1a5..635724da74d9 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-orgpolicy - 2.84.0 + 2.85.0 Google Cloud Org Policy The Org Policy API allows users to configure governance rules on their GCP resources across the Cloud Resource Hierarchy. @@ -11,7 +11,7 @@ com.google.cloud google-cloud-orgpolicy-parent - 2.84.0 + 2.85.0 google-cloud-orgpolicy diff --git a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml index 9142dd2a3d46..a316911718a9 100644 --- a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml +++ b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.84.0 + 2.85.0 grpc-google-cloud-orgpolicy-v2 GRPC library for grpc-google-cloud-orgpolicy-v2 com.google.cloud google-cloud-orgpolicy-parent - 2.84.0 + 2.85.0 diff --git a/java-orgpolicy/pom.xml b/java-orgpolicy/pom.xml index c84d3b815ebf..0605387d9e7e 100644 --- a/java-orgpolicy/pom.xml +++ b/java-orgpolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-orgpolicy-parent pom - 2.84.0 + 2.85.0 Google Cloud Org Policy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.api.grpc google-cloud-orgpolicy - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.84.0 + 2.85.0 diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml b/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml index debfbd16f54d..0ab5e95e8111 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.84.0 + 2.85.0 proto-google-cloud-orgpolicy-v1 PROTO library for proto-google-cloud-orgpolicy-v1 com.google.cloud google-cloud-orgpolicy-parent - 2.84.0 + 2.85.0 diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml index 10e28bedf8a4..5baea1010e0b 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.84.0 + 2.85.0 proto-google-cloud-orgpolicy-v2 PROTO library for proto-google-cloud-orgpolicy-v2 com.google.cloud google-cloud-orgpolicy-parent - 2.84.0 + 2.85.0 diff --git a/java-os-config/google-cloud-os-config-bom/pom.xml b/java-os-config/google-cloud-os-config-bom/pom.xml index bc89b8dcdf52..72f1fec71a55 100644 --- a/java-os-config/google-cloud-os-config-bom/pom.xml +++ b/java-os-config/google-cloud-os-config-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-os-config-bom - 2.86.0 + 2.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-os-config - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.86.0 + 2.87.0 diff --git a/java-os-config/google-cloud-os-config/pom.xml b/java-os-config/google-cloud-os-config/pom.xml index 6bddf7a683ff..063ac091916d 100644 --- a/java-os-config/google-cloud-os-config/pom.xml +++ b/java-os-config/google-cloud-os-config/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-os-config - 2.86.0 + 2.87.0 jar Google OS Config API provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. com.google.cloud google-cloud-os-config-parent - 2.86.0 + 2.87.0 google-cloud-os-config diff --git a/java-os-config/grpc-google-cloud-os-config-v1/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1/pom.xml index ee3c3574e49d..cdea9fc477ec 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.86.0 + 2.87.0 grpc-google-cloud-os-config-v1 GRPC library for grpc-google-cloud-os-config-v1 com.google.cloud google-cloud-os-config-parent - 2.86.0 + 2.87.0 diff --git a/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml index 4f454960751d..e6618906f60b 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.86.0 + 2.87.0 grpc-google-cloud-os-config-v1alpha GRPC library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.86.0 + 2.87.0 diff --git a/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml index d5a925b295e7..956522dc1d74 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.86.0 + 2.87.0 grpc-google-cloud-os-config-v1beta GRPC library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.86.0 + 2.87.0 diff --git a/java-os-config/pom.xml b/java-os-config/pom.xml index e7f577aab097..c3b6713b5489 100644 --- a/java-os-config/pom.xml +++ b/java-os-config/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-os-config-parent pom - 2.86.0 + 2.87.0 Google OS Config API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-os-config - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.86.0 + 2.87.0 diff --git a/java-os-config/proto-google-cloud-os-config-v1/pom.xml b/java-os-config/proto-google-cloud-os-config-v1/pom.xml index bf7d78cc1b6d..d1f8be3d7b12 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.86.0 + 2.87.0 proto-google-cloud-os-config-v1 PROTO library for proto-google-cloud-os-config-v1 com.google.cloud google-cloud-os-config-parent - 2.86.0 + 2.87.0 diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml b/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml index 1d43434f4266..629e20dff0ce 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.86.0 + 2.87.0 proto-google-cloud-os-config-v1alpha Proto library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.86.0 + 2.87.0 diff --git a/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml b/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml index 80c82dd02a13..186b47c5e43f 100644 --- a/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.86.0 + 2.87.0 proto-google-cloud-os-config-v1beta Proto library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.86.0 + 2.87.0 diff --git a/java-os-login/google-cloud-os-login-bom/pom.xml b/java-os-login/google-cloud-os-login-bom/pom.xml index 971ddd44f1a8..53ce43b7c072 100644 --- a/java-os-login/google-cloud-os-login-bom/pom.xml +++ b/java-os-login/google-cloud-os-login-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-os-login-bom - 2.83.0 + 2.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-os-login - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.83.0 + 2.84.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 2.83.0 + 2.84.0 diff --git a/java-os-login/google-cloud-os-login/pom.xml b/java-os-login/google-cloud-os-login/pom.xml index 1d9c543e328a..45fa19d327ea 100644 --- a/java-os-login/google-cloud-os-login/pom.xml +++ b/java-os-login/google-cloud-os-login/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-os-login - 2.83.0 + 2.84.0 jar Google Cloud OS Login Java idiomatic client for Google Cloud OS Login com.google.cloud google-cloud-os-login-parent - 2.83.0 + 2.84.0 google-cloud-os-login diff --git a/java-os-login/grpc-google-cloud-os-login-v1/pom.xml b/java-os-login/grpc-google-cloud-os-login-v1/pom.xml index d391eee42c1a..83c5eab6b666 100644 --- a/java-os-login/grpc-google-cloud-os-login-v1/pom.xml +++ b/java-os-login/grpc-google-cloud-os-login-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.83.0 + 2.84.0 grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.cloud google-cloud-os-login-parent - 2.83.0 + 2.84.0 diff --git a/java-os-login/pom.xml b/java-os-login/pom.xml index 5d14c9db9934..90c35a9ea49b 100644 --- a/java-os-login/pom.xml +++ b/java-os-login/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-os-login-parent pom - 2.83.0 + 2.84.0 Google Cloud OS Login Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-os-login-v1 - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.83.0 + 2.84.0 com.google.cloud google-cloud-os-login - 2.83.0 + 2.84.0 diff --git a/java-os-login/proto-google-cloud-os-login-v1/pom.xml b/java-os-login/proto-google-cloud-os-login-v1/pom.xml index 65c4efe1341f..b2321dc99493 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/pom.xml +++ b/java-os-login/proto-google-cloud-os-login-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 2.83.0 + 2.84.0 proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.cloud google-cloud-os-login-parent - 2.83.0 + 2.84.0 diff --git a/java-parallelstore/google-cloud-parallelstore-bom/pom.xml b/java-parallelstore/google-cloud-parallelstore-bom/pom.xml index 01e112d319ca..a2b3b490dd26 100644 --- a/java-parallelstore/google-cloud-parallelstore-bom/pom.xml +++ b/java-parallelstore/google-cloud-parallelstore-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-parallelstore-bom - 0.47.0 + 0.48.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.cloud google-cloud-parallelstore - 0.47.0 + 0.48.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.47.0 + 0.48.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1 - 0.47.0 + 0.48.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.47.0 + 0.48.0 com.google.api.grpc proto-google-cloud-parallelstore-v1 - 0.47.0 + 0.48.0 diff --git a/java-parallelstore/google-cloud-parallelstore/pom.xml b/java-parallelstore/google-cloud-parallelstore/pom.xml index 4ad93ccaed01..292039bc7ac3 100644 --- a/java-parallelstore/google-cloud-parallelstore/pom.xml +++ b/java-parallelstore/google-cloud-parallelstore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-parallelstore - 0.47.0 + 0.48.0 jar Google Parallelstore API Parallelstore API Parallelstore is based on Intel DAOS and delivers up to 6.3x greater read throughput performance compared to competitive Lustre scratch offerings. com.google.cloud google-cloud-parallelstore-parent - 0.47.0 + 0.48.0 google-cloud-parallelstore diff --git a/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml b/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml index 84a2c5cde3ae..f91af07a7025 100644 --- a/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml +++ b/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1 - 0.47.0 + 0.48.0 grpc-google-cloud-parallelstore-v1 GRPC library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.47.0 + 0.48.0 diff --git a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml index 0d445215d8d0..5c46f0cf913f 100644 --- a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml +++ b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.47.0 + 0.48.0 grpc-google-cloud-parallelstore-v1beta GRPC library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.47.0 + 0.48.0 diff --git a/java-parallelstore/pom.xml b/java-parallelstore/pom.xml index 685cabf6ea76..753d46fdf838 100644 --- a/java-parallelstore/pom.xml +++ b/java-parallelstore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-parallelstore-parent pom - 0.47.0 + 0.48.0 Google Parallelstore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-parallelstore - 0.47.0 + 0.48.0 com.google.api.grpc proto-google-cloud-parallelstore-v1 - 0.47.0 + 0.48.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1 - 0.47.0 + 0.48.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.47.0 + 0.48.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.47.0 + 0.48.0 diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml b/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml index 415c0a95d066..be11bd0cb897 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parallelstore-v1 - 0.47.0 + 0.48.0 proto-google-cloud-parallelstore-v1 Proto library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.47.0 + 0.48.0 diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml index 7e8e674da2b6..10a166c84a08 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.47.0 + 0.48.0 proto-google-cloud-parallelstore-v1beta Proto library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.47.0 + 0.48.0 diff --git a/java-parametermanager/google-cloud-parametermanager-bom/pom.xml b/java-parametermanager/google-cloud-parametermanager-bom/pom.xml index dcb91de60f8c..f4350711a68a 100644 --- a/java-parametermanager/google-cloud-parametermanager-bom/pom.xml +++ b/java-parametermanager/google-cloud-parametermanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-parametermanager-bom - 0.28.0 + 0.29.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-parametermanager - 0.28.0 + 0.29.0 com.google.api.grpc grpc-google-cloud-parametermanager-v1 - 0.28.0 + 0.29.0 com.google.api.grpc proto-google-cloud-parametermanager-v1 - 0.28.0 + 0.29.0 diff --git a/java-parametermanager/google-cloud-parametermanager/pom.xml b/java-parametermanager/google-cloud-parametermanager/pom.xml index a205f8353b7a..a576f7e08169 100644 --- a/java-parametermanager/google-cloud-parametermanager/pom.xml +++ b/java-parametermanager/google-cloud-parametermanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-parametermanager - 0.28.0 + 0.29.0 jar Google Parameter Manager API Parameter Manager API (Public Preview) Parameter Manager is a single source of truth to store, access and manage the lifecycle of your workload parameters. Parameter Manager aims to make management of sensitive application parameters effortless for customers without diminishing focus on security. com.google.cloud google-cloud-parametermanager-parent - 0.28.0 + 0.29.0 google-cloud-parametermanager diff --git a/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml b/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml index 720d72ade7b0..2598eb9995b2 100644 --- a/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml +++ b/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parametermanager-v1 - 0.28.0 + 0.29.0 grpc-google-cloud-parametermanager-v1 GRPC library for google-cloud-parametermanager com.google.cloud google-cloud-parametermanager-parent - 0.28.0 + 0.29.0 diff --git a/java-parametermanager/pom.xml b/java-parametermanager/pom.xml index 01417431664e..d04321441a9a 100644 --- a/java-parametermanager/pom.xml +++ b/java-parametermanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-parametermanager-parent pom - 0.28.0 + 0.29.0 Google Parameter 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-parametermanager - 0.28.0 + 0.29.0 com.google.api.grpc grpc-google-cloud-parametermanager-v1 - 0.28.0 + 0.29.0 com.google.api.grpc proto-google-cloud-parametermanager-v1 - 0.28.0 + 0.29.0 diff --git a/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml b/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml index bb35fff4552e..301175f3360e 100644 --- a/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml +++ b/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parametermanager-v1 - 0.28.0 + 0.29.0 proto-google-cloud-parametermanager-v1 Proto library for google-cloud-parametermanager com.google.cloud google-cloud-parametermanager-parent - 0.28.0 + 0.29.0 diff --git a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml index c851497858c4..87a219eeb399 100644 --- a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-phishingprotection-bom - 0.115.0 + 0.116.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-phishingprotection - 0.115.0 + 0.116.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.115.0 + 0.116.0 com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.115.0 + 0.116.0 diff --git a/java-phishingprotection/google-cloud-phishingprotection/pom.xml b/java-phishingprotection/google-cloud-phishingprotection/pom.xml index c04feb359fdc..f31b238a0313 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-phishingprotection - 0.115.0 + 0.116.0 jar Google Cloud Phishing Protection Java idiomatic client for Google Cloud Phishing Protection com.google.cloud google-cloud-phishingprotection-parent - 0.115.0 + 0.116.0 google-cloud-phishingprotection diff --git a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml index 725e17844c38..156e9b4617d2 100644 --- a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml +++ b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.115.0 + 0.116.0 grpc-google-cloud-phishingprotection-v1beta1 GRPC library for grpc-google-cloud-phishingprotection-v1beta1 com.google.cloud google-cloud-phishingprotection-parent - 0.115.0 + 0.116.0 diff --git a/java-phishingprotection/pom.xml b/java-phishingprotection/pom.xml index 3ef7da997ae1..92c314674db0 100644 --- a/java-phishingprotection/pom.xml +++ b/java-phishingprotection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-phishingprotection-parent pom - 0.115.0 + 0.116.0 Google Cloud Phishing Protection Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.115.0 + 0.116.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.115.0 + 0.116.0 com.google.cloud google-cloud-phishingprotection - 0.115.0 + 0.116.0 diff --git a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml index 5f5841fdbfdd..c5d449e5035b 100644 --- a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml +++ b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.115.0 + 0.116.0 proto-google-cloud-phishingprotection-v1beta1 PROTO library for proto-google-cloud-phishingprotection-v1beta1 com.google.cloud google-cloud-phishingprotection-parent - 0.115.0 + 0.116.0 diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml index c55c291e0f74..af2d5c9b6284 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-policy-troubleshooter-bom - 1.83.0 + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-policy-troubleshooter - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.83.0 + 1.84.0 diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml index bb95d16cafe4..f112590863eb 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-policy-troubleshooter - 1.83.0 + 1.84.0 jar Google IAM Policy Troubleshooter API makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter examines all Identity and Access Management (IAM) policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles. com.google.cloud google-cloud-policy-troubleshooter-parent - 1.83.0 + 1.84.0 google-cloud-policy-troubleshooter diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml index 55062dbe60d8..27d25bb85b61 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.83.0 + 1.84.0 grpc-google-cloud-policy-troubleshooter-v1 GRPC library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.83.0 + 1.84.0 diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml index cdf46ddf8df3..2c6529c4bbfe 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.83.0 + 1.84.0 grpc-google-cloud-policy-troubleshooter-v3 GRPC library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.83.0 + 1.84.0 diff --git a/java-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/pom.xml index 5fdfc7479733..d0fc5e02481b 100644 --- a/java-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-policy-troubleshooter-parent pom - 1.83.0 + 1.84.0 Google IAM Policy Troubleshooter API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-policy-troubleshooter - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.83.0 + 1.84.0 diff --git a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml index d1aff97d0814..2e5eeae86cd0 100644 --- a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml +++ b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.83.0 + 1.84.0 proto-google-cloud-policy-troubleshooter-v1 Proto library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.83.0 + 1.84.0 diff --git a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml index 22f626a4c4cb..5774ed155430 100644 --- a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml +++ b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.83.0 + 1.84.0 proto-google-cloud-policy-troubleshooter-v3 Proto library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.83.0 + 1.84.0 diff --git a/java-policysimulator/google-cloud-policysimulator-bom/pom.xml b/java-policysimulator/google-cloud-policysimulator-bom/pom.xml index bafb89486d8c..088b9c8b5dd6 100644 --- a/java-policysimulator/google-cloud-policysimulator-bom/pom.xml +++ b/java-policysimulator/google-cloud-policysimulator-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-policysimulator-bom - 0.63.0 + 0.64.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-policysimulator - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.63.0 + 0.64.0 diff --git a/java-policysimulator/google-cloud-policysimulator/pom.xml b/java-policysimulator/google-cloud-policysimulator/pom.xml index c3353655b969..bd3abd960c44 100644 --- a/java-policysimulator/google-cloud-policysimulator/pom.xml +++ b/java-policysimulator/google-cloud-policysimulator/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-policysimulator - 0.63.0 + 0.64.0 jar Google Policy Simulator API Policy Simulator API Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. com.google.cloud google-cloud-policysimulator-parent - 0.63.0 + 0.64.0 google-cloud-policysimulator diff --git a/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml b/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml index 1d13a80bd947..395228e5aeb3 100644 --- a/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml +++ b/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.63.0 + 0.64.0 grpc-google-cloud-policysimulator-v1 GRPC library for google-cloud-policysimulator com.google.cloud google-cloud-policysimulator-parent - 0.63.0 + 0.64.0 diff --git a/java-policysimulator/pom.xml b/java-policysimulator/pom.xml index 26537240bb51..6d28e36686c5 100644 --- a/java-policysimulator/pom.xml +++ b/java-policysimulator/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-policysimulator-parent pom - 0.63.0 + 0.64.0 Google Policy Simulator API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-policysimulator - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.84.0 + 2.85.0 diff --git a/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml b/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml index f7387e285088..4c0c0a22a8e9 100644 --- a/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml +++ b/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml @@ -4,19 +4,19 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.63.0 + 0.64.0 proto-google-cloud-policysimulator-v1 Proto library for google-cloud-policysimulator com.google.cloud google-cloud-policysimulator-parent - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.84.0 + 2.85.0 com.google.protobuf diff --git a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml index 81c77db4058e..c8c962a773f9 100644 --- a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-private-catalog-bom - 0.86.0 + 0.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-private-catalog - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.86.0 + 0.87.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.86.0 + 0.87.0 diff --git a/java-private-catalog/google-cloud-private-catalog/pom.xml b/java-private-catalog/google-cloud-private-catalog/pom.xml index a5c0c00729dc..ec856a2c31f2 100644 --- a/java-private-catalog/google-cloud-private-catalog/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-private-catalog - 0.86.0 + 0.87.0 jar Google Private Catalog Private Catalog allows developers and cloud admins to make their solutions discoverable to their internal enterprise users. Cloud admins can manage their solutions and ensure their users are always launching the latest versions. com.google.cloud google-cloud-private-catalog-parent - 0.86.0 + 0.87.0 google-cloud-private-catalog diff --git a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml index 7b07b810b910..902cd475febf 100644 --- a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml +++ b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.86.0 + 0.87.0 grpc-google-cloud-private-catalog-v1beta1 GRPC library for google-cloud-private-catalog com.google.cloud google-cloud-private-catalog-parent - 0.86.0 + 0.87.0 diff --git a/java-private-catalog/pom.xml b/java-private-catalog/pom.xml index f040858cfb76..9276a050769e 100644 --- a/java-private-catalog/pom.xml +++ b/java-private-catalog/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-private-catalog-parent pom - 0.86.0 + 0.87.0 Google Private Catalog Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-private-catalog - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.86.0 + 0.87.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.86.0 + 0.87.0 diff --git a/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml b/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml index 647ccf39ca1f..0823c646a653 100644 --- a/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml +++ b/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.86.0 + 0.87.0 proto-google-cloud-private-catalog-v1beta1 Proto library for google-cloud-private-catalog com.google.cloud google-cloud-private-catalog-parent - 0.86.0 + 0.87.0 diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml index 61675e727306..be27f7a059d3 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-privilegedaccessmanager-bom - 0.38.0 + 0.39.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-privilegedaccessmanager - 0.38.0 + 0.39.0 com.google.api.grpc grpc-google-cloud-privilegedaccessmanager-v1 - 0.38.0 + 0.39.0 com.google.api.grpc proto-google-cloud-privilegedaccessmanager-v1 - 0.38.0 + 0.39.0 diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml index c48fd1f7e491..b62feea00820 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-privilegedaccessmanager - 0.38.0 + 0.39.0 jar Google Privileged Access Manager API Privileged Access Manager API Privileged Access Manager (PAM) helps you on your journey towards least privilege and helps mitigate risks tied to privileged access misuse or abuse. com.google.cloud google-cloud-privilegedaccessmanager-parent - 0.38.0 + 0.39.0 google-cloud-privilegedaccessmanager diff --git a/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml b/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml index 3fdb18fa579a..ce3528f80d01 100644 --- a/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml +++ b/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-privilegedaccessmanager-v1 - 0.38.0 + 0.39.0 grpc-google-cloud-privilegedaccessmanager-v1 GRPC library for google-cloud-privilegedaccessmanager com.google.cloud google-cloud-privilegedaccessmanager-parent - 0.38.0 + 0.39.0 diff --git a/java-privilegedaccessmanager/pom.xml b/java-privilegedaccessmanager/pom.xml index 7c766572b791..c3fd37897a42 100644 --- a/java-privilegedaccessmanager/pom.xml +++ b/java-privilegedaccessmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-privilegedaccessmanager-parent pom - 0.38.0 + 0.39.0 Google Privileged Access 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-privilegedaccessmanager - 0.38.0 + 0.39.0 com.google.api.grpc grpc-google-cloud-privilegedaccessmanager-v1 - 0.38.0 + 0.39.0 com.google.api.grpc proto-google-cloud-privilegedaccessmanager-v1 - 0.38.0 + 0.39.0 diff --git a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml index 769a973dff65..38b21e9562ae 100644 --- a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml +++ b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-privilegedaccessmanager-v1 - 0.38.0 + 0.39.0 proto-google-cloud-privilegedaccessmanager-v1 Proto library for google-cloud-privilegedaccessmanager com.google.cloud google-cloud-privilegedaccessmanager-parent - 0.38.0 + 0.39.0 diff --git a/java-profiler/google-cloud-profiler-bom/pom.xml b/java-profiler/google-cloud-profiler-bom/pom.xml index dd06a38935f8..7d2a42882630 100644 --- a/java-profiler/google-cloud-profiler-bom/pom.xml +++ b/java-profiler/google-cloud-profiler-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-profiler-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-profiler - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.84.0 + 2.85.0 diff --git a/java-profiler/google-cloud-profiler/pom.xml b/java-profiler/google-cloud-profiler/pom.xml index 331129f50bb8..5d62a5efc0a5 100644 --- a/java-profiler/google-cloud-profiler/pom.xml +++ b/java-profiler/google-cloud-profiler/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-profiler - 2.84.0 + 2.85.0 jar Google Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code. com.google.cloud google-cloud-profiler-parent - 2.84.0 + 2.85.0 google-cloud-profiler diff --git a/java-profiler/grpc-google-cloud-profiler-v2/pom.xml b/java-profiler/grpc-google-cloud-profiler-v2/pom.xml index 0f215c0586ed..24f74b82b734 100644 --- a/java-profiler/grpc-google-cloud-profiler-v2/pom.xml +++ b/java-profiler/grpc-google-cloud-profiler-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.84.0 + 2.85.0 grpc-google-cloud-profiler-v2 GRPC library for google-cloud-profiler com.google.cloud google-cloud-profiler-parent - 2.84.0 + 2.85.0 diff --git a/java-profiler/pom.xml b/java-profiler/pom.xml index d123164d513c..dc9b6c94dd85 100644 --- a/java-profiler/pom.xml +++ b/java-profiler/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-profiler-parent pom - 2.84.0 + 2.85.0 Google Cloud Profiler Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-profiler - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.84.0 + 2.85.0 diff --git a/java-profiler/proto-google-cloud-profiler-v2/pom.xml b/java-profiler/proto-google-cloud-profiler-v2/pom.xml index 2e6ee1c03474..6545942d4903 100644 --- a/java-profiler/proto-google-cloud-profiler-v2/pom.xml +++ b/java-profiler/proto-google-cloud-profiler-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.84.0 + 2.85.0 proto-google-cloud-profiler-v2 Proto library for google-cloud-profiler com.google.cloud google-cloud-profiler-parent - 2.84.0 + 2.85.0 diff --git a/java-publicca/google-cloud-publicca-bom/pom.xml b/java-publicca/google-cloud-publicca-bom/pom.xml index 5e50e942418c..534d36decab3 100644 --- a/java-publicca/google-cloud-publicca-bom/pom.xml +++ b/java-publicca/google-cloud-publicca-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-publicca-bom - 0.81.0 + 0.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-publicca - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.81.0 + 0.82.0 diff --git a/java-publicca/google-cloud-publicca/pom.xml b/java-publicca/google-cloud-publicca/pom.xml index e79bbce166a3..f6f4760ec77e 100644 --- a/java-publicca/google-cloud-publicca/pom.xml +++ b/java-publicca/google-cloud-publicca/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-publicca - 0.81.0 + 0.82.0 jar Google Public Certificate Authority Public Certificate Authority Certificate Manager's Public Certificate Authority (CA) functionality allows you to provision and deploy widely trusted X.509 certificates after validating that the certificate requester controls the domains. com.google.cloud google-cloud-publicca-parent - 0.81.0 + 0.82.0 google-cloud-publicca diff --git a/java-publicca/grpc-google-cloud-publicca-v1/pom.xml b/java-publicca/grpc-google-cloud-publicca-v1/pom.xml index 9056f0890e9e..2fb431d248aa 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1/pom.xml +++ b/java-publicca/grpc-google-cloud-publicca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.81.0 + 0.82.0 grpc-google-cloud-publicca-v1 GRPC library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.81.0 + 0.82.0 diff --git a/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml b/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml index d21924cf4c21..ef0e1227cc1f 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml +++ b/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.81.0 + 0.82.0 grpc-google-cloud-publicca-v1beta1 GRPC library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.81.0 + 0.82.0 diff --git a/java-publicca/pom.xml b/java-publicca/pom.xml index 552ed46c3547..c909288539b4 100644 --- a/java-publicca/pom.xml +++ b/java-publicca/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-publicca-parent pom - 0.81.0 + 0.82.0 Google Public Certificate Authority Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-publicca - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.81.0 + 0.82.0 diff --git a/java-publicca/proto-google-cloud-publicca-v1/pom.xml b/java-publicca/proto-google-cloud-publicca-v1/pom.xml index 0800eb7e54d1..5aa579723f73 100644 --- a/java-publicca/proto-google-cloud-publicca-v1/pom.xml +++ b/java-publicca/proto-google-cloud-publicca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.81.0 + 0.82.0 proto-google-cloud-publicca-v1 Proto library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.81.0 + 0.82.0 diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml b/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml index f09adb91805b..6bb06cb7be5f 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.81.0 + 0.82.0 proto-google-cloud-publicca-v1beta1 Proto library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.81.0 + 0.82.0 diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml index 2783b623beea..1a403c93a841 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.67.0 + 0.68.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-rapidmigrationassessment - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.67.0 + 0.68.0 diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml index 3f0823c5fabd..78221cbadb0f 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-rapidmigrationassessment - 0.67.0 + 0.68.0 jar Google Rapid Migration Assessment API Rapid Migration Assessment API Rapid Migration Assessment API com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.67.0 + 0.68.0 google-cloud-rapidmigrationassessment diff --git a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml index 1da137cf06eb..153290d0cbbd 100644 --- a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml +++ b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.67.0 + 0.68.0 grpc-google-cloud-rapidmigrationassessment-v1 GRPC library for google-cloud-rapidmigrationassessment com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.67.0 + 0.68.0 diff --git a/java-rapidmigrationassessment/pom.xml b/java-rapidmigrationassessment/pom.xml index 2583d5b1c04b..913b2c475d17 100644 --- a/java-rapidmigrationassessment/pom.xml +++ b/java-rapidmigrationassessment/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-rapidmigrationassessment-parent pom - 0.67.0 + 0.68.0 Google Rapid Migration Assessment API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-rapidmigrationassessment - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.67.0 + 0.68.0 diff --git a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml index 909cafb73f7b..3b4c9934827a 100644 --- a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml +++ b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.67.0 + 0.68.0 proto-google-cloud-rapidmigrationassessment-v1 Proto library for google-cloud-rapidmigrationassessment com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.67.0 + 0.68.0 diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml index c42aaf62ac49..3cf11353ede8 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recaptchaenterprise-bom - 3.81.0 + 3.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-recaptchaenterprise - 3.81.0 + 3.82.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.81.0 + 3.82.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.123.0 + 0.124.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.81.0 + 3.82.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.123.0 + 0.124.0 diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml index 52fc0431c913..98580117bbe8 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-recaptchaenterprise - 3.81.0 + 3.82.0 jar reCAPTCHA Enterprise Help protect your website from fraudulent activity, spam, and abuse. com.google.cloud google-cloud-recaptchaenterprise-parent - 3.81.0 + 3.82.0 google-cloud-recaptchaenterprise diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml index 317750512ff0..51aaf1b55e90 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.81.0 + 3.82.0 grpc-google-cloud-recaptchaenterprise-v1 GRPC library for grpc-google-cloud-recaptchaenterprise-v1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.81.0 + 3.82.0 diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml index 26a05bcd19ea..ae681a2f3476 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.123.0 + 0.124.0 grpc-google-cloud-recaptchaenterprise-v1beta1 GRPC library for grpc-google-cloud-recaptchaenterprise-v1beta1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.81.0 + 3.82.0 diff --git a/java-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/pom.xml index 4f01b1c35239..462c141af53f 100644 --- a/java-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recaptchaenterprise-parent pom - 3.81.0 + 3.82.0 reCAPTCHA Enterprise Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.81.0 + 3.82.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.123.0 + 0.124.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.81.0 + 3.82.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.123.0 + 0.124.0 com.google.cloud google-cloud-recaptchaenterprise - 3.81.0 + 3.82.0 diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml index 74312d83a3fc..5f1103c56a27 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.81.0 + 3.82.0 proto-google-cloud-recaptchaenterprise-v1 PROTO library for proto-google-cloud-recaptchaenterprise-v1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.81.0 + 3.82.0 diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml index 33f665944c88..6ee0f06d100d 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.123.0 + 0.124.0 proto-google-cloud-recaptchaenterprise-v1beta1 PROTO library for proto-google-cloud-recaptchaenterprise-v1beta1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.81.0 + 3.82.0 diff --git a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml index 6f1d7a2a613c..00751959809f 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recommendations-ai-bom - 0.91.0 + 0.92.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-recommendations-ai - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.91.0 + 0.92.0 diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml index 41dc7000d91f..9ca22d28b573 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-recommendations-ai - 0.91.0 + 0.92.0 jar Google Recommendations AI delivers highly personalized product recommendations at scale. com.google.cloud google-cloud-recommendations-ai-parent - 0.91.0 + 0.92.0 google-cloud-recommendations-ai diff --git a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml index 0d22aaee0603..06472ba0fab8 100644 --- a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml +++ b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.91.0 + 0.92.0 grpc-google-cloud-recommendations-ai-v1beta1 GRPC library for grpc-google-cloud-recommendations-ai-v1beta1 com.google.cloud google-cloud-recommendations-ai-parent - 0.91.0 + 0.92.0 diff --git a/java-recommendations-ai/pom.xml b/java-recommendations-ai/pom.xml index 454d67eecb0b..f075dbf2c73d 100644 --- a/java-recommendations-ai/pom.xml +++ b/java-recommendations-ai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recommendations-ai-parent pom - 0.91.0 + 0.92.0 Google Recommendations AI Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-recommendations-ai - 0.91.0 + 0.92.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.91.0 + 0.92.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.91.0 + 0.92.0 diff --git a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml index 898103c29012..3c470e210063 100644 --- a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml +++ b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.91.0 + 0.92.0 proto-google-cloud-recommendations-ai-v1beta1 PROTO library for proto-google-cloud-recommendations-ai-v1beta1 com.google.cloud google-cloud-recommendations-ai-parent - 0.91.0 + 0.92.0 diff --git a/java-recommender/google-cloud-recommender-bom/pom.xml b/java-recommender/google-cloud-recommender-bom/pom.xml index d7531f456e0f..29f9f372f722 100644 --- a/java-recommender/google-cloud-recommender-bom/pom.xml +++ b/java-recommender/google-cloud-recommender-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recommender-bom - 2.86.0 + 2.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-recommender - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.98.0 + 0.99.0 com.google.api.grpc proto-google-cloud-recommender-v1 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.98.0 + 0.99.0 diff --git a/java-recommender/google-cloud-recommender/pom.xml b/java-recommender/google-cloud-recommender/pom.xml index b7ca20596225..b4e1a3c1eab2 100644 --- a/java-recommender/google-cloud-recommender/pom.xml +++ b/java-recommender/google-cloud-recommender/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-recommender - 2.86.0 + 2.87.0 jar Google Cloud Recommender @@ -12,7 +12,7 @@ com.google.cloud google-cloud-recommender-parent - 2.86.0 + 2.87.0 google-cloud-recommender diff --git a/java-recommender/grpc-google-cloud-recommender-v1/pom.xml b/java-recommender/grpc-google-cloud-recommender-v1/pom.xml index ba545efe0a6f..8d74166af3c7 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1/pom.xml +++ b/java-recommender/grpc-google-cloud-recommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.86.0 + 2.87.0 grpc-google-cloud-recommender-v1 GRPC library for grpc-google-cloud-recommender-v1 com.google.cloud google-cloud-recommender-parent - 2.86.0 + 2.87.0 diff --git a/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml b/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml index 46c3fd54fa54..353be1200297 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml +++ b/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.98.0 + 0.99.0 grpc-google-cloud-recommender-v1beta1 GRPC library for grpc-google-cloud-recommender-v1beta1 com.google.cloud google-cloud-recommender-parent - 2.86.0 + 2.87.0 diff --git a/java-recommender/pom.xml b/java-recommender/pom.xml index 7fab7fe3d253..fe4b4de54980 100644 --- a/java-recommender/pom.xml +++ b/java-recommender/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recommender-parent pom - 2.86.0 + 2.87.0 Google Cloud recommender Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-recommender-v1 - 2.86.0 + 2.87.0 com.google.cloud google-cloud-recommender - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.98.0 + 0.99.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.98.0 + 0.99.0 diff --git a/java-recommender/proto-google-cloud-recommender-v1/pom.xml b/java-recommender/proto-google-cloud-recommender-v1/pom.xml index ad108ae16744..8e9ddcd6fc81 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/pom.xml +++ b/java-recommender/proto-google-cloud-recommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommender-v1 - 2.86.0 + 2.87.0 proto-google-cloud-recommender-v1 PROTO library for proto-google-cloud-recommender-v1 com.google.cloud google-cloud-recommender-parent - 2.86.0 + 2.87.0 diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml b/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml index 97770aa9f774..8aab0ca48dea 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.98.0 + 0.99.0 proto-google-cloud-recommender-v1beta1 PROTO library for proto-google-cloud-recommender-v1beta1 com.google.cloud google-cloud-recommender-parent - 2.86.0 + 2.87.0 diff --git a/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml b/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml index a34639bee070..39d1075b73ea 100644 --- a/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml +++ b/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-redis-cluster-bom - 0.56.0 + 0.57.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-redis-cluster - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.56.0 + 0.57.0 diff --git a/java-redis-cluster/google-cloud-redis-cluster/pom.xml b/java-redis-cluster/google-cloud-redis-cluster/pom.xml index d06d6403939e..3c83cd10db0b 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/pom.xml +++ b/java-redis-cluster/google-cloud-redis-cluster/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-redis-cluster - 0.56.0 + 0.57.0 jar Google Google Cloud Memorystore for Redis API Google Cloud Memorystore for Redis API Creates and manages Redis instances on the Google Cloud Platform. com.google.cloud google-cloud-redis-cluster-parent - 0.56.0 + 0.57.0 google-cloud-redis-cluster diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml index 0deb1b2de95e..82de4087cc23 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.56.0 + 0.57.0 grpc-google-cloud-redis-cluster-v1 GRPC library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.56.0 + 0.57.0 diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml index eba637194523..f4114e4845de 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.56.0 + 0.57.0 grpc-google-cloud-redis-cluster-v1beta1 GRPC library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.56.0 + 0.57.0 diff --git a/java-redis-cluster/pom.xml b/java-redis-cluster/pom.xml index 749f29c423fc..4869bc43b1e6 100644 --- a/java-redis-cluster/pom.xml +++ b/java-redis-cluster/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-redis-cluster-parent pom - 0.56.0 + 0.57.0 Google Google Cloud Memorystore for Redis API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-redis-cluster - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.56.0 + 0.57.0 diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml index 2ff2e1ac9249..2f5520b6dd11 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.56.0 + 0.57.0 proto-google-cloud-redis-cluster-v1 Proto library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.56.0 + 0.57.0 diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml index a33b2794ca0d..bb62fb2b1641 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.56.0 + 0.57.0 proto-google-cloud-redis-cluster-v1beta1 Proto library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.56.0 + 0.57.0 diff --git a/java-redis/google-cloud-redis-bom/pom.xml b/java-redis/google-cloud-redis-bom/pom.xml index 46667ba948fb..9983fd6777a7 100644 --- a/java-redis/google-cloud-redis-bom/pom.xml +++ b/java-redis/google-cloud-redis-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-redis-bom - 2.87.0 + 2.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-redis - 2.87.0 + 2.88.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.175.0 + 0.176.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.87.0 + 2.88.0 com.google.api.grpc proto-google-cloud-redis-v1 - 2.87.0 + 2.88.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.175.0 + 0.176.0 diff --git a/java-redis/google-cloud-redis/pom.xml b/java-redis/google-cloud-redis/pom.xml index e00488759aae..9518cf01fe2d 100644 --- a/java-redis/google-cloud-redis/pom.xml +++ b/java-redis/google-cloud-redis/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-redis - 2.87.0 + 2.88.0 jar Google Cloud Redis Java idiomatic client for Google Cloud Redis com.google.cloud google-cloud-redis-parent - 2.87.0 + 2.88.0 google-cloud-redis diff --git a/java-redis/grpc-google-cloud-redis-v1/pom.xml b/java-redis/grpc-google-cloud-redis-v1/pom.xml index 380ead53a1f0..1a819b48f93d 100644 --- a/java-redis/grpc-google-cloud-redis-v1/pom.xml +++ b/java-redis/grpc-google-cloud-redis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.87.0 + 2.88.0 grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.cloud google-cloud-redis-parent - 2.87.0 + 2.88.0 diff --git a/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml b/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml index 752ebebc4195..67818e6c2fd8 100644 --- a/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.175.0 + 0.176.0 grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.cloud google-cloud-redis-parent - 2.87.0 + 2.88.0 diff --git a/java-redis/pom.xml b/java-redis/pom.xml index aecfe393a9a8..44f2a024c607 100644 --- a/java-redis/pom.xml +++ b/java-redis/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-redis-parent pom - 2.87.0 + 2.88.0 Google Cloud Redis Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-redis-v1 - 2.87.0 + 2.88.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.175.0 + 0.176.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.175.0 + 0.176.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.87.0 + 2.88.0 com.google.cloud google-cloud-redis - 2.87.0 + 2.88.0 diff --git a/java-redis/proto-google-cloud-redis-v1/pom.xml b/java-redis/proto-google-cloud-redis-v1/pom.xml index 51e3c7738f1a..e9f6fcbbf5a4 100644 --- a/java-redis/proto-google-cloud-redis-v1/pom.xml +++ b/java-redis/proto-google-cloud-redis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-v1 - 2.87.0 + 2.88.0 proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.cloud google-cloud-redis-parent - 2.87.0 + 2.88.0 diff --git a/java-redis/proto-google-cloud-redis-v1beta1/pom.xml b/java-redis/proto-google-cloud-redis-v1beta1/pom.xml index 83fd4fbe3f73..5bd61b96f419 100644 --- a/java-redis/proto-google-cloud-redis-v1beta1/pom.xml +++ b/java-redis/proto-google-cloud-redis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.175.0 + 0.176.0 proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.cloud google-cloud-redis-parent - 2.87.0 + 2.88.0 diff --git a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml index 2cadd27d7bbc..448d0c472e6f 100644 --- a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-resourcemanager-bom - 1.86.0 + 1.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-resourcemanager - 1.86.0 + 1.87.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.86.0 + 1.87.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.86.0 + 1.87.0 diff --git a/java-resourcemanager/google-cloud-resourcemanager/pom.xml b/java-resourcemanager/google-cloud-resourcemanager/pom.xml index 687458e0022c..a1a9504671f4 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resourcemanager jar - 1.86.0 + 1.87.0 Google Cloud Resource Manager Java idiomatic client for Google Cloud Resource Manager @@ -13,7 +13,7 @@ com.google.cloud google-cloud-resourcemanager-parent - 1.86.0 + 1.87.0 diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml index cd16be85f3a5..ff288edb61bf 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.86.0 + 1.87.0 grpc-google-cloud-resourcemanager-v3 GRPC library for google-cloud-resourcemanager com.google.cloud google-cloud-resourcemanager-parent - 1.86.0 + 1.87.0 diff --git a/java-resourcemanager/pom.xml b/java-resourcemanager/pom.xml index 2429b0a843e7..a20872917646 100644 --- a/java-resourcemanager/pom.xml +++ b/java-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resourcemanager-parent pom - 1.86.0 + 1.87.0 Google Resource 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-resourcemanager - 1.86.0 + 1.87.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.86.0 + 1.87.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.86.0 + 1.87.0 diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml index be942026c69f..f5a098cfb8b3 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.86.0 + 1.87.0 proto-google-cloud-resourcemanager-v3 Proto library for google-cloud-resourcemanager com.google.cloud google-cloud-resourcemanager-parent - 1.86.0 + 1.87.0 diff --git a/java-retail/google-cloud-retail-bom/pom.xml b/java-retail/google-cloud-retail-bom/pom.xml index 447dad859acc..326a567a11c2 100644 --- a/java-retail/google-cloud-retail-bom/pom.xml +++ b/java-retail/google-cloud-retail-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-retail-bom - 2.86.0 + 2.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-retail - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.86.0 + 2.87.0 diff --git a/java-retail/google-cloud-retail/pom.xml b/java-retail/google-cloud-retail/pom.xml index 99cf0514d1d0..2b306b08463f 100644 --- a/java-retail/google-cloud-retail/pom.xml +++ b/java-retail/google-cloud-retail/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-retail - 2.86.0 + 2.87.0 jar Google Cloud Retail Retail solutions API. com.google.cloud google-cloud-retail-parent - 2.86.0 + 2.87.0 google-cloud-retail diff --git a/java-retail/grpc-google-cloud-retail-v2/pom.xml b/java-retail/grpc-google-cloud-retail-v2/pom.xml index b70550566700..1da9200fcc2f 100644 --- a/java-retail/grpc-google-cloud-retail-v2/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.86.0 + 2.87.0 grpc-google-cloud-retail-v2 GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.86.0 + 2.87.0 diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml b/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml index 787de86f5426..f396b415ffbc 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.86.0 + 2.87.0 grpc-google-cloud-retail-v2alpha GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.86.0 + 2.87.0 diff --git a/java-retail/grpc-google-cloud-retail-v2beta/pom.xml b/java-retail/grpc-google-cloud-retail-v2beta/pom.xml index dfcd86c55bb7..bfeb36406359 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.86.0 + 2.87.0 grpc-google-cloud-retail-v2beta GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.86.0 + 2.87.0 diff --git a/java-retail/pom.xml b/java-retail/pom.xml index 38794de432aa..f3c27963cfcf 100644 --- a/java-retail/pom.xml +++ b/java-retail/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-retail-parent pom - 2.86.0 + 2.87.0 Google Cloud Retail Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-retail - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.86.0 + 2.87.0 diff --git a/java-retail/proto-google-cloud-retail-v2/pom.xml b/java-retail/proto-google-cloud-retail-v2/pom.xml index 2592ab6952d7..d4df4187851f 100644 --- a/java-retail/proto-google-cloud-retail-v2/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.86.0 + 2.87.0 proto-google-cloud-retail-v2 Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.86.0 + 2.87.0 diff --git a/java-retail/proto-google-cloud-retail-v2alpha/pom.xml b/java-retail/proto-google-cloud-retail-v2alpha/pom.xml index 8315b95c457a..3e2f076d6040 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.86.0 + 2.87.0 proto-google-cloud-retail-v2alpha Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.86.0 + 2.87.0 diff --git a/java-retail/proto-google-cloud-retail-v2beta/pom.xml b/java-retail/proto-google-cloud-retail-v2beta/pom.xml index 2e5221149e18..5b30350887dd 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.86.0 + 2.87.0 proto-google-cloud-retail-v2beta Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.86.0 + 2.87.0 diff --git a/java-run/google-cloud-run-bom/pom.xml b/java-run/google-cloud-run-bom/pom.xml index 1de313d38c8a..be23c9e1ed4e 100644 --- a/java-run/google-cloud-run-bom/pom.xml +++ b/java-run/google-cloud-run-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-run-bom - 0.84.0 + 0.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-run - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.84.0 + 0.85.0 diff --git a/java-run/google-cloud-run/pom.xml b/java-run/google-cloud-run/pom.xml index 4c23d74bd6b1..a1aa0003e653 100644 --- a/java-run/google-cloud-run/pom.xml +++ b/java-run/google-cloud-run/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-run - 0.84.0 + 0.85.0 jar Google Cloud Run Cloud Run is a managed compute platform that enables you to run containers that are invocable via requests or events. com.google.cloud google-cloud-run-parent - 0.84.0 + 0.85.0 google-cloud-run diff --git a/java-run/grpc-google-cloud-run-v2/pom.xml b/java-run/grpc-google-cloud-run-v2/pom.xml index 3f7b85bc2c10..fe33715a7eac 100644 --- a/java-run/grpc-google-cloud-run-v2/pom.xml +++ b/java-run/grpc-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.84.0 + 0.85.0 grpc-google-cloud-run-v2 GRPC library for google-cloud-run com.google.cloud google-cloud-run-parent - 0.84.0 + 0.85.0 diff --git a/java-run/pom.xml b/java-run/pom.xml index 270e668de199..88678f2e1feb 100644 --- a/java-run/pom.xml +++ b/java-run/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-run-parent pom - 0.84.0 + 0.85.0 Google Cloud Run Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-run - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.84.0 + 0.85.0 diff --git a/java-run/proto-google-cloud-run-v2/pom.xml b/java-run/proto-google-cloud-run-v2/pom.xml index 779bbaa9f7ec..010338af676e 100644 --- a/java-run/proto-google-cloud-run-v2/pom.xml +++ b/java-run/proto-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.84.0 + 0.85.0 proto-google-cloud-run-v2 Proto library for google-cloud-run com.google.cloud google-cloud-run-parent - 0.84.0 + 0.85.0 diff --git a/java-saasservicemgmt/README.md b/java-saasservicemgmt/README.md index 96d57a4c72b6..7026e83df795 100644 --- a/java-saasservicemgmt/README.md +++ b/java-saasservicemgmt/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-saasservicemgmt - 0.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.13.0' +implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.14.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-saasservicemgmt/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-saasservicemgmt.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.14.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-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml b/java-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml index 8055f8a19c3c..6e11efe4fb1c 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-saasservicemgmt-bom - 0.14.0 + 0.15.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-saasservicemgmt - 0.14.0 + 0.15.0 com.google.api.grpc grpc-google-cloud-saasservicemgmt-v1beta1 - 0.14.0 + 0.15.0 com.google.api.grpc proto-google-cloud-saasservicemgmt-v1beta1 - 0.14.0 + 0.15.0 diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml b/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml index 51bcd0f3f32c..8af0067f99b2 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-saasservicemgmt - 0.14.0 + 0.15.0 jar Google SaaS Runtime API SaaS Runtime API Model, deploy, and operate your SaaS at scale. com.google.cloud google-cloud-saasservicemgmt-parent - 0.14.0 + 0.15.0 google-cloud-saasservicemgmt diff --git a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml index d15f7b70942b..2cb2023fa32b 100644 --- a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml +++ b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-saasservicemgmt-v1beta1 - 0.14.0 + 0.15.0 grpc-google-cloud-saasservicemgmt-v1beta1 GRPC library for google-cloud-saasservicemgmt com.google.cloud google-cloud-saasservicemgmt-parent - 0.14.0 + 0.15.0 diff --git a/java-saasservicemgmt/pom.xml b/java-saasservicemgmt/pom.xml index 5b58e723f60e..13e96e251fe7 100644 --- a/java-saasservicemgmt/pom.xml +++ b/java-saasservicemgmt/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-saasservicemgmt-parent pom - 0.14.0 + 0.15.0 Google SaaS Runtime API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-saasservicemgmt - 0.14.0 + 0.15.0 com.google.api.grpc grpc-google-cloud-saasservicemgmt-v1beta1 - 0.14.0 + 0.15.0 com.google.api.grpc proto-google-cloud-saasservicemgmt-v1beta1 - 0.14.0 + 0.15.0 diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml index ed73fc593ffb..c917008e225f 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-saasservicemgmt-v1beta1 - 0.14.0 + 0.15.0 proto-google-cloud-saasservicemgmt-v1beta1 Proto library for google-cloud-saasservicemgmt com.google.cloud google-cloud-saasservicemgmt-parent - 0.14.0 + 0.15.0 diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CommonProto.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CommonProto.java index b488595625fa..3dd36944ac7f 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CommonProto.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CommonProto.java @@ -106,7 +106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "TYPE_READY\020\001\022\021\n\r" + "TYPE_UPDATING\020\002\022\024\n" + "\020TYPE_PROVISIONED\020\003\022\030\n" - + "\024TYPE_OPERATION_ERROR\020\004\"\221\004\n" + + "\024TYPE_OPERATION_ERROR\020\004\"\314\004\n" + "\026UnitOperationCondition\022e\n" + "\006status\030\001 \001(\0162P.google.cloud.saasplatform.saasservicemgmt.v1be" + "ta1.UnitOperationCondition.StatusB\003\340A\002\022a\n" @@ -120,13 +120,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022STATUS_UNSPECIFIED\020\000\022\022\n" + "\016STATUS_UNKNOWN\020\001\022\017\n" + "\013STATUS_TRUE\020\002\022\020\n" - + "\014STATUS_FALSE\020\003\"j\n" + + "\014STATUS_FALSE\020\003\"\244\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\022\n" + "\016TYPE_SCHEDULED\020\002\022\020\n" + "\014TYPE_RUNNING\020\003\022\022\n" + "\016TYPE_SUCCEEDED\020\004\022\022\n" - + "\016TYPE_CANCELLED\020\005\"3\n" + + "\016TYPE_CANCELLED\020\005\022\024\n" + + "\020TYPE_APP_CREATED\020\006\022\"\n" + + "\036TYPE_APP_COMPONENTS_REGISTERED\020\007\"3\n" + "\tAggregate\022\022\n" + "\005group\030\001 \001(\tB\003\340A\002\022\022\n" + "\005count\030\002 \001(\005B\003\340A\002*\226\001\n" @@ -137,12 +139,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tRETRIABLE\020\003\022\r\n" + "\tIGNORABLE\020\004\022\014\n" + "\010STANDARD\020\005B\307\002\n" - + "5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\013CommonProtoP\001Z" - + "_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;s" - + "aasservicemgmtpb\252\0021Google.Cloud.SaasPlat" - + "form.SaasServiceMgmt.V1Beta1\312\0021Google\\Cl" - + "oud\\SaasPlatform\\SaasServiceMgmt\\V1beta1" - + "\352\0025Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\006proto3" + + "5com.google.cloud.saasplatform.saasservicemgmt.v1be" + + "ta1B\013CommonProtoP\001Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/" + + "saasservicemgmtpb;saasservicemgmtpb\252\0021Google.Cloud.SaasPlatform.SaasServiceMgmt." + + "V1Beta1\312\0021Google\\Cloud\\SaasPlatform\\Saas" + + "ServiceMgmt\\V1beta1\352\0025Google::Cloud::Saa" + + "sPlatform::SaasServiceMgmt::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationCondition.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationCondition.java index 8cf12545893c..389b41b27649 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationCondition.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationCondition.java @@ -333,6 +333,26 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * TYPE_CANCELLED = 5; */ TYPE_CANCELLED(5), + /** + * + * + *
+     * Indicates if AppHub app has been created.
+     * 
+ * + * TYPE_APP_CREATED = 6; + */ + TYPE_APP_CREATED(6), + /** + * + * + *
+     * Indicates if services and workloads have been registered with AppHub.
+     * 
+ * + * TYPE_APP_COMPONENTS_REGISTERED = 7; + */ + TYPE_APP_COMPONENTS_REGISTERED(7), UNRECOGNIZED(-1), ; @@ -401,6 +421,28 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_CANCELLED_VALUE = 5; + /** + * + * + *
+     * Indicates if AppHub app has been created.
+     * 
+ * + * TYPE_APP_CREATED = 6; + */ + public static final int TYPE_APP_CREATED_VALUE = 6; + + /** + * + * + *
+     * Indicates if services and workloads have been registered with AppHub.
+     * 
+ * + * TYPE_APP_COMPONENTS_REGISTERED = 7; + */ + public static final int TYPE_APP_COMPONENTS_REGISTERED_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -435,6 +477,10 @@ public static Type forNumber(int value) { return TYPE_SUCCEEDED; case 5: return TYPE_CANCELLED; + case 6: + return TYPE_APP_CREATED; + case 7: + return TYPE_APP_COMPONENTS_REGISTERED; default: return null; } diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto index 339523adb568..43747d901764 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto @@ -195,6 +195,12 @@ message UnitOperationCondition { // Condition type is cancelled. TYPE_CANCELLED = 5; + + // Indicates if AppHub app has been created. + TYPE_APP_CREATED = 6; + + // Indicates if services and workloads have been registered with AppHub. + TYPE_APP_COMPONENTS_REGISTERED = 7; } // Required. Status of the condition. diff --git a/java-samples/pom.xml b/java-samples/pom.xml index 5d9159779b74..3f99e4008a8e 100644 --- a/java-samples/pom.xml +++ b/java-samples/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-scheduler/google-cloud-scheduler-bom/pom.xml b/java-scheduler/google-cloud-scheduler-bom/pom.xml index 1bccf2035b12..e17fe817bfa3 100644 --- a/java-scheduler/google-cloud-scheduler-bom/pom.xml +++ b/java-scheduler/google-cloud-scheduler-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-scheduler-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-scheduler - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.169.0 + 0.170.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.169.0 + 0.170.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.84.0 + 2.85.0
diff --git a/java-scheduler/google-cloud-scheduler/pom.xml b/java-scheduler/google-cloud-scheduler/pom.xml index b941e6603366..0a7160a06438 100644 --- a/java-scheduler/google-cloud-scheduler/pom.xml +++ b/java-scheduler/google-cloud-scheduler/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-scheduler - 2.84.0 + 2.85.0 jar Google Cloud Scheduler Fully managed cron job service com.google.cloud google-cloud-scheduler-parent - 2.84.0 + 2.85.0 google-cloud-scheduler diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml b/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml index be4ece65d5d6..7c32cc22a758 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml +++ b/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.84.0 + 2.85.0 grpc-google-cloud-scheduler-v1 GRPC library for grpc-google-cloud-scheduler-v1 com.google.cloud google-cloud-scheduler-parent - 2.84.0 + 2.85.0 diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml index b559048d49a1..0ea30bac18ab 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml +++ b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.169.0 + 0.170.0 grpc-google-cloud-scheduler-v1beta1 GRPC library for grpc-google-cloud-scheduler-v1beta1 com.google.cloud google-cloud-scheduler-parent - 2.84.0 + 2.85.0 diff --git a/java-scheduler/pom.xml b/java-scheduler/pom.xml index ad896421e7de..4a08f29eb9ed 100644 --- a/java-scheduler/pom.xml +++ b/java-scheduler/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-scheduler-parent pom - 2.84.0 + 2.85.0 Google Cloud Scheduler Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.169.0 + 0.170.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.169.0 + 0.170.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-scheduler - 2.84.0 + 2.85.0 diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml b/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml index 66a22d85fe1a..331158d812b1 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml +++ b/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.84.0 + 2.85.0 proto-google-cloud-scheduler-v1 PROTO library for proto-google-cloud-scheduler-v1 com.google.cloud google-cloud-scheduler-parent - 2.84.0 + 2.85.0 diff --git a/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml b/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml index 7d683a4a2f60..8ed2f79c90ae 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.169.0 + 0.170.0 proto-google-cloud-scheduler-v1beta1 PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.cloud google-cloud-scheduler-parent - 2.84.0 + 2.85.0 diff --git a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml index 42c633224796..be219bf87c5a 100644 --- a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-secretmanager-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-secretmanager - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta1 - 2.84.0 + 2.85.0 diff --git a/java-secretmanager/google-cloud-secretmanager/pom.xml b/java-secretmanager/google-cloud-secretmanager/pom.xml index 5c888c71982e..ac79c7f6444b 100644 --- a/java-secretmanager/google-cloud-secretmanager/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-secretmanager - 2.84.0 + 2.85.0 jar Google Cloud Secret Manager Java idiomatic client for Google Cloud Secret Manager com.google.cloud google-cloud-secretmanager-parent - 2.84.0 + 2.85.0 google-cloud-secretmanager diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml index 5128fcfcc45f..5b7cec6751e8 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.84.0 + 2.85.0 grpc-google-cloud-secretmanager-v1 GRPC library for grpc-google-cloud-secretmanager-v1 com.google.cloud google-cloud-secretmanager-parent - 2.84.0 + 2.85.0 diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml index 489b53f6b22e..0bf44b44504a 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta1 - 2.84.0 + 2.85.0 grpc-google-cloud-secretmanager-v1beta1 GRPC library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.84.0 + 2.85.0 diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml index e9ab859c49e0..b7ddcdb6c0d9 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.84.0 + 2.85.0 grpc-google-cloud-secretmanager-v1beta2 GRPC library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.84.0 + 2.85.0 diff --git a/java-secretmanager/pom.xml b/java-secretmanager/pom.xml index 16ab41acfc3c..2fe1dec8710f 100644 --- a/java-secretmanager/pom.xml +++ b/java-secretmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-secretmanager-parent pom - 2.84.0 + 2.85.0 Google Cloud secretmanager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-secretmanager - 2.84.0 + 2.85.0 diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml index 38b8597502cd..298e7f824b76 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.84.0 + 2.85.0 proto-google-cloud-secretmanager-v1 PROTO library for proto-google-cloud-secretmanager-v1 com.google.cloud google-cloud-secretmanager-parent - 2.84.0 + 2.85.0 diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml index dca9068f59e1..42afbfce7855 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta1 - 2.84.0 + 2.85.0 proto-google-cloud-secretmanager-v1beta1 Proto library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.84.0 + 2.85.0 diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml index c16545b4910f..7b6341ef37a1 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.84.0 + 2.85.0 proto-google-cloud-secretmanager-v1beta2 Proto library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.84.0 + 2.85.0 diff --git a/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml b/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml index 4795aed6e8cb..f2f918c96254 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml +++ b/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securesourcemanager-bom - 0.54.0 + 0.55.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securesourcemanager - 0.54.0 + 0.55.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.54.0 + 0.55.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.54.0 + 0.55.0 diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml b/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml index f7b04cb27a2d..23971b19acd4 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml +++ b/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-securesourcemanager - 0.54.0 + 0.55.0 jar Google Secure Source Manager API Secure Source Manager API Regionally deployed, single-tenant managed source code repository hosted on @@ -11,7 +11,7 @@ com.google.cloud google-cloud-securesourcemanager-parent - 0.54.0 + 0.55.0 google-cloud-securesourcemanager diff --git a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml index c4ad36ef5be4..ba6db4da16df 100644 --- a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml +++ b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.54.0 + 0.55.0 grpc-google-cloud-securesourcemanager-v1 GRPC library for google-cloud-securesourcemanager com.google.cloud google-cloud-securesourcemanager-parent - 0.54.0 + 0.55.0 diff --git a/java-securesourcemanager/pom.xml b/java-securesourcemanager/pom.xml index 48efa1d32af0..d253a999acb5 100644 --- a/java-securesourcemanager/pom.xml +++ b/java-securesourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securesourcemanager-parent pom - 0.54.0 + 0.55.0 Google Secure Source 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securesourcemanager - 0.54.0 + 0.55.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.54.0 + 0.55.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.54.0 + 0.55.0 diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml index 441085d27697..ca429616376f 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.54.0 + 0.55.0 proto-google-cloud-securesourcemanager-v1 Proto library for google-cloud-securesourcemanager com.google.cloud google-cloud-securesourcemanager-parent - 0.54.0 + 0.55.0 diff --git a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml index bdb77cba0fd9..3bb5d28223a3 100644 --- a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-security-private-ca-bom - 2.86.0 + 2.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-security-private-ca - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.93.0 + 0.94.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.93.0 + 0.94.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.86.0 + 2.87.0 diff --git a/java-security-private-ca/google-cloud-security-private-ca/pom.xml b/java-security-private-ca/google-cloud-security-private-ca/pom.xml index ed66d857c389..cbbc7738641d 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-security-private-ca - 2.86.0 + 2.87.0 jar Google Certificate Authority Service simplifies the deployment and management of private CAs without managing infrastructure. com.google.cloud google-cloud-security-private-ca-parent - 2.86.0 + 2.87.0 google-cloud-security-private-ca diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml index a3ac34e9a704..aad33f0503f3 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.86.0 + 2.87.0 grpc-google-cloud-security-private-ca-v1 GRPC library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.86.0 + 2.87.0 diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml index edff407c8271..69a9ea8f0e3c 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.93.0 + 0.94.0 grpc-google-cloud-security-private-ca-v1beta1 GRPC library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.86.0 + 2.87.0 diff --git a/java-security-private-ca/pom.xml b/java-security-private-ca/pom.xml index 3a1561e74835..9b2e5b554c32 100644 --- a/java-security-private-ca/pom.xml +++ b/java-security-private-ca/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-security-private-ca-parent pom - 2.86.0 + 2.87.0 Google Certificate Authority Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-security-private-ca - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.86.0 + 2.87.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.86.0 + 2.87.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.93.0 + 0.94.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.93.0 + 0.94.0 diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml index 7308b711b919..653826f8842c 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.86.0 + 2.87.0 proto-google-cloud-security-private-ca-v1 Proto library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.86.0 + 2.87.0 diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml index 245dc92f9905..65853e666a7a 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.93.0 + 0.94.0 proto-google-cloud-security-private-ca-v1beta1 Proto library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.86.0 + 2.87.0 diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml index 92d7b2c4e932..4c7cbfc71383 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-settings-bom - 0.87.0 + 0.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-securitycenter-settings - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.87.0 + 0.88.0 diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml index 535e50491921..1680faf64abf 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-settings - 0.87.0 + 0.88.0 jar Google Security Command Center Settings API is the canonical security and data risk database for Google Cloud. Security Command Center enables you to understand your security and data attack surface by providing asset inventory, discovery, search, and management. com.google.cloud google-cloud-securitycenter-settings-parent - 0.87.0 + 0.88.0 google-cloud-securitycenter-settings diff --git a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml index b7a20e842a6f..f1cab62844cc 100644 --- a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml +++ b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.87.0 + 0.88.0 grpc-google-cloud-securitycenter-settings-v1beta1 GRPC library for grpc-google-cloud-securitycenter-settings-v1beta1 com.google.cloud google-cloud-securitycenter-settings-parent - 0.87.0 + 0.88.0 diff --git a/java-securitycenter-settings/pom.xml b/java-securitycenter-settings/pom.xml index 1a96541ffd99..74c414fb4489 100644 --- a/java-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-settings-parent pom - 0.87.0 + 0.88.0 Google Security Command Center Settings API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securitycenter-settings - 0.87.0 + 0.88.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.87.0 + 0.88.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.87.0 + 0.88.0 diff --git a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml index 24c012a1725a..c5555fbbbf53 100644 --- a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml +++ b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.87.0 + 0.88.0 proto-google-cloud-securitycenter-settings-v1beta1 PROTO library for proto-google-cloud-securitycenter-settings-v1beta1 com.google.cloud google-cloud-securitycenter-settings-parent - 0.87.0 + 0.88.0 diff --git a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml index 6ee3ec5b2937..c911e227ff19 100644 --- a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-bom - 2.92.0 + 2.93.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,47 +23,47 @@ com.google.cloud google-cloud-securitycenter - 2.92.0 + 2.93.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.92.0 + 2.93.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.187.0 + 0.188.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.187.0 + 0.188.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.92.0 + 2.93.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.92.0 + 2.93.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.187.0 + 0.188.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.187.0 + 0.188.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.92.0 + 2.93.0 diff --git a/java-securitycenter/google-cloud-securitycenter/pom.xml b/java-securitycenter/google-cloud-securitycenter/pom.xml index 56bf7dcc78a1..3de60c7d60d5 100644 --- a/java-securitycenter/google-cloud-securitycenter/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycenter - 2.92.0 + 2.93.0 jar Google Cloud Security Command Center Java idiomatic client for Google Cloud Security Command Center com.google.cloud google-cloud-securitycenter-parent - 2.92.0 + 2.93.0 google-cloud-securitycenter diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml index bac76271b016..9ea40d06764e 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.92.0 + 2.93.0 grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.92.0 + 2.93.0 diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml index c3b97825acb3..41bdddd600f1 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.187.0 + 0.188.0 grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.92.0 + 2.93.0 diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml index f6e0fd1d04f6..44626532c40d 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.187.0 + 0.188.0 grpc-google-cloud-securitycenter-v1p1beta1 GRPC library for grpc-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.92.0 + 2.93.0 diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml index 1335f837f47a..bdb54b284a60 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.92.0 + 2.93.0 grpc-google-cloud-securitycenter-v2 GRPC library for google-cloud-securitycenter com.google.cloud google-cloud-securitycenter-parent - 2.92.0 + 2.93.0 diff --git a/java-securitycenter/pom.xml b/java-securitycenter/pom.xml index e64eb4a9a5cd..7758e6a7e21a 100644 --- a/java-securitycenter/pom.xml +++ b/java-securitycenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-parent pom - 2.92.0 + 2.93.0 Google Cloud Security Command Center Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.92.0 + 2.93.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.92.0 + 2.93.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.92.0 + 2.93.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.187.0 + 0.188.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.187.0 + 0.188.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.92.0 + 2.93.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.187.0 + 0.188.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.187.0 + 0.188.0 com.google.cloud google-cloud-securitycenter - 2.92.0 + 2.93.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml index ffcf77458407..558f65f91d9a 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.92.0 + 2.93.0 proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.92.0 + 2.93.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml index 07a6086d3f03..643736ac7470 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.187.0 + 0.188.0 proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.92.0 + 2.93.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml index 07f02e029842..e79979c8402b 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.187.0 + 0.188.0 proto-google-cloud-securitycenter-v1p1beta1 PROTO library for proto-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.92.0 + 2.93.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml index 739eaec69d51..3eb35f55b7bf 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.92.0 + 2.93.0 proto-google-cloud-securitycenter-v2 Proto library for google-cloud-securitycenter com.google.cloud google-cloud-securitycenter-parent - 2.92.0 + 2.93.0 diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml b/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml index 999fbd25d526..19e4211bf828 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycentermanagement-bom - 0.52.0 + 0.53.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securitycentermanagement - 0.52.0 + 0.53.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.52.0 + 0.53.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.52.0 + 0.53.0 diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml b/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml index f2144ad6ca80..83b0f5493b03 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycentermanagement - 0.52.0 + 0.53.0 jar Google Security Center Management API Security Center Management API Security Center Management API com.google.cloud google-cloud-securitycentermanagement-parent - 0.52.0 + 0.53.0 google-cloud-securitycentermanagement diff --git a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml index 32f736dd4a10..57d6ecb458a6 100644 --- a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml +++ b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.52.0 + 0.53.0 grpc-google-cloud-securitycentermanagement-v1 GRPC library for google-cloud-securitycentermanagement com.google.cloud google-cloud-securitycentermanagement-parent - 0.52.0 + 0.53.0 diff --git a/java-securitycentermanagement/pom.xml b/java-securitycentermanagement/pom.xml index 63e7ef74da9a..2479b58263a7 100644 --- a/java-securitycentermanagement/pom.xml +++ b/java-securitycentermanagement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycentermanagement-parent pom - 0.52.0 + 0.53.0 Google Security Center 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securitycentermanagement - 0.52.0 + 0.53.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.52.0 + 0.53.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.52.0 + 0.53.0 diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml index 5decd09de84c..174e672af404 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.52.0 + 0.53.0 proto-google-cloud-securitycentermanagement-v1 Proto library for google-cloud-securitycentermanagement com.google.cloud google-cloud-securitycentermanagement-parent - 0.52.0 + 0.53.0 diff --git a/java-securityposture/google-cloud-securityposture-bom/pom.xml b/java-securityposture/google-cloud-securityposture-bom/pom.xml index d304ec563f56..1d64a3f06935 100644 --- a/java-securityposture/google-cloud-securityposture-bom/pom.xml +++ b/java-securityposture/google-cloud-securityposture-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securityposture-bom - 0.49.0 + 0.50.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securityposture - 0.49.0 + 0.50.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.49.0 + 0.50.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.49.0 + 0.50.0 diff --git a/java-securityposture/google-cloud-securityposture/pom.xml b/java-securityposture/google-cloud-securityposture/pom.xml index 1ddebd5dfbd6..f4de5197d346 100644 --- a/java-securityposture/google-cloud-securityposture/pom.xml +++ b/java-securityposture/google-cloud-securityposture/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securityposture - 0.49.0 + 0.50.0 jar Google Security Posture API Security Posture API Security Posture is a comprehensive framework of policy sets that empowers organizations to define, assess early, deploy, and monitor their security measures in a unified way and helps simplify governance and reduces administrative toil. com.google.cloud google-cloud-securityposture-parent - 0.49.0 + 0.50.0 google-cloud-securityposture diff --git a/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml b/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml index ac00d255241d..cce6a5656481 100644 --- a/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml +++ b/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.49.0 + 0.50.0 grpc-google-cloud-securityposture-v1 GRPC library for google-cloud-securityposture com.google.cloud google-cloud-securityposture-parent - 0.49.0 + 0.50.0 diff --git a/java-securityposture/pom.xml b/java-securityposture/pom.xml index fc9603dbf142..1912607ec287 100644 --- a/java-securityposture/pom.xml +++ b/java-securityposture/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securityposture-parent pom - 0.49.0 + 0.50.0 Google Security Posture API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securityposture - 0.49.0 + 0.50.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.49.0 + 0.50.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.49.0 + 0.50.0 diff --git a/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml b/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml index b67a977ec8b0..fd53784a4225 100644 --- a/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml +++ b/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.49.0 + 0.50.0 proto-google-cloud-securityposture-v1 Proto library for google-cloud-securityposture com.google.cloud google-cloud-securityposture-parent - 0.49.0 + 0.50.0 diff --git a/java-service-control/google-cloud-service-control-bom/pom.xml b/java-service-control/google-cloud-service-control-bom/pom.xml index 081fa6b5ada7..7856512f79ea 100644 --- a/java-service-control/google-cloud-service-control-bom/pom.xml +++ b/java-service-control/google-cloud-service-control-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-control-bom - 1.84.0 + 1.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-service-control - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.84.0 + 1.85.0 diff --git a/java-service-control/google-cloud-service-control/pom.xml b/java-service-control/google-cloud-service-control/pom.xml index cccecc098618..584572697793 100644 --- a/java-service-control/google-cloud-service-control/pom.xml +++ b/java-service-control/google-cloud-service-control/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-control - 1.84.0 + 1.85.0 jar Google Service Control API Service Control API is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. com.google.cloud google-cloud-service-control-parent - 1.84.0 + 1.85.0 google-cloud-service-control diff --git a/java-service-control/grpc-google-cloud-service-control-v1/pom.xml b/java-service-control/grpc-google-cloud-service-control-v1/pom.xml index ece226fc9b17..ffee18abdb00 100644 --- a/java-service-control/grpc-google-cloud-service-control-v1/pom.xml +++ b/java-service-control/grpc-google-cloud-service-control-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.84.0 + 1.85.0 grpc-google-cloud-service-control-v1 GRPC library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.84.0 + 1.85.0 diff --git a/java-service-control/grpc-google-cloud-service-control-v2/pom.xml b/java-service-control/grpc-google-cloud-service-control-v2/pom.xml index 4cba8a78f8db..a819d496ca03 100644 --- a/java-service-control/grpc-google-cloud-service-control-v2/pom.xml +++ b/java-service-control/grpc-google-cloud-service-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.84.0 + 1.85.0 grpc-google-cloud-service-control-v2 GRPC library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.84.0 + 1.85.0 diff --git a/java-service-control/pom.xml b/java-service-control/pom.xml index ef855e0511d4..24905e073a4a 100644 --- a/java-service-control/pom.xml +++ b/java-service-control/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-control-parent pom - 1.84.0 + 1.85.0 Google Service Control API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-service-control - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.84.0 + 1.85.0 diff --git a/java-service-control/proto-google-cloud-service-control-v1/pom.xml b/java-service-control/proto-google-cloud-service-control-v1/pom.xml index 7b2cfd6f8370..ed544f2943a0 100644 --- a/java-service-control/proto-google-cloud-service-control-v1/pom.xml +++ b/java-service-control/proto-google-cloud-service-control-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.84.0 + 1.85.0 proto-google-cloud-service-control-v1 Proto library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.84.0 + 1.85.0 diff --git a/java-service-control/proto-google-cloud-service-control-v2/pom.xml b/java-service-control/proto-google-cloud-service-control-v2/pom.xml index b0b1e343d045..957da78e0de2 100644 --- a/java-service-control/proto-google-cloud-service-control-v2/pom.xml +++ b/java-service-control/proto-google-cloud-service-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.84.0 + 1.85.0 proto-google-cloud-service-control-v2 Proto library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.84.0 + 1.85.0 diff --git a/java-service-management/google-cloud-service-management-bom/pom.xml b/java-service-management/google-cloud-service-management-bom/pom.xml index edd2100f44bb..d898deb1483e 100644 --- a/java-service-management/google-cloud-service-management-bom/pom.xml +++ b/java-service-management/google-cloud-service-management-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-management-bom - 3.82.0 + 3.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-service-management - 3.82.0 + 3.83.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.82.0 + 3.83.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.82.0 + 3.83.0 diff --git a/java-service-management/google-cloud-service-management/pom.xml b/java-service-management/google-cloud-service-management/pom.xml index 7588631e296b..3e00a9eb6977 100644 --- a/java-service-management/google-cloud-service-management/pom.xml +++ b/java-service-management/google-cloud-service-management/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-management - 3.82.0 + 3.83.0 jar Google Service Management API is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. Service Infrastructure provides a wide range of features to service consumers and service producers, including authentication, authorization, auditing, rate limiting, analytics, billing, logging, and monitoring. com.google.cloud google-cloud-service-management-parent - 3.82.0 + 3.83.0 google-cloud-service-management diff --git a/java-service-management/grpc-google-cloud-service-management-v1/pom.xml b/java-service-management/grpc-google-cloud-service-management-v1/pom.xml index a4180803c349..c2f6cb34481a 100644 --- a/java-service-management/grpc-google-cloud-service-management-v1/pom.xml +++ b/java-service-management/grpc-google-cloud-service-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.82.0 + 3.83.0 grpc-google-cloud-service-management-v1 GRPC library for google-cloud-service-management com.google.cloud google-cloud-service-management-parent - 3.82.0 + 3.83.0 diff --git a/java-service-management/pom.xml b/java-service-management/pom.xml index f87fa2414980..b2608966db70 100644 --- a/java-service-management/pom.xml +++ b/java-service-management/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-management-parent pom - 3.82.0 + 3.83.0 Google Service 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-service-management - 3.82.0 + 3.83.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.82.0 + 3.83.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.82.0 + 3.83.0 diff --git a/java-service-management/proto-google-cloud-service-management-v1/pom.xml b/java-service-management/proto-google-cloud-service-management-v1/pom.xml index f5fa7d5a1003..118367527ef3 100644 --- a/java-service-management/proto-google-cloud-service-management-v1/pom.xml +++ b/java-service-management/proto-google-cloud-service-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.82.0 + 3.83.0 proto-google-cloud-service-management-v1 Proto library for google-cloud-service-management com.google.cloud google-cloud-service-management-parent - 3.82.0 + 3.83.0 diff --git a/java-service-usage/google-cloud-service-usage-bom/pom.xml b/java-service-usage/google-cloud-service-usage-bom/pom.xml index 59689df56891..b7cf3517fa45 100644 --- a/java-service-usage/google-cloud-service-usage-bom/pom.xml +++ b/java-service-usage/google-cloud-service-usage-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-usage-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-service-usage - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.88.0 + 0.89.0 diff --git a/java-service-usage/google-cloud-service-usage/pom.xml b/java-service-usage/google-cloud-service-usage/pom.xml index 184b29b3209a..cc7b44b9a6b2 100644 --- a/java-service-usage/google-cloud-service-usage/pom.xml +++ b/java-service-usage/google-cloud-service-usage/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-usage - 2.84.0 + 2.85.0 jar Google Service Usage Service Usage is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. com.google.cloud google-cloud-service-usage-parent - 2.84.0 + 2.85.0 google-cloud-service-usage diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml b/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml index f3014c3ce7d1..4f15caf69787 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml +++ b/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.84.0 + 2.85.0 grpc-google-cloud-service-usage-v1 GRPC library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.84.0 + 2.85.0 diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml index 9e60ef932c12..f700204eb345 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml +++ b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.88.0 + 0.89.0 grpc-google-cloud-service-usage-v1beta1 GRPC library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.84.0 + 2.85.0 diff --git a/java-service-usage/pom.xml b/java-service-usage/pom.xml index b59f86ee7d86..c16158c3a5d4 100644 --- a/java-service-usage/pom.xml +++ b/java-service-usage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-usage-parent pom - 2.84.0 + 2.85.0 Google Service Usage Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-service-usage - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.88.0 + 0.89.0 diff --git a/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml b/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml index 860033004288..028bd4ee9208 100644 --- a/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml +++ b/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.84.0 + 2.85.0 proto-google-cloud-service-usage-v1 Proto library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.84.0 + 2.85.0 diff --git a/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml b/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml index 9caa58346637..9b8cc33e6632 100644 --- a/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml +++ b/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.88.0 + 0.89.0 proto-google-cloud-service-usage-v1beta1 Proto library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.84.0 + 2.85.0 diff --git a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml index e33ad7ef0045..8cdbbe0070d6 100644 --- a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-servicedirectory-bom - 2.85.0 + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-servicedirectory - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.93.0 + 0.94.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.93.0 + 0.94.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.85.0 + 2.86.0 diff --git a/java-servicedirectory/google-cloud-servicedirectory/pom.xml b/java-servicedirectory/google-cloud-servicedirectory/pom.xml index e11c3f199dc8..c50670e7ca10 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-servicedirectory - 2.85.0 + 2.86.0 jar Google Cloud Service Directory Java idiomatic client for Google Cloud Service Directory com.google.cloud google-cloud-servicedirectory-parent - 2.85.0 + 2.86.0 google-cloud-servicedirectory diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml index 9b2180bea94e..f88d45408c3a 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.85.0 + 2.86.0 grpc-google-cloud-servicedirectory-v1 GRPC library for grpc-google-cloud-servicedirectory-v1 com.google.cloud google-cloud-servicedirectory-parent - 2.85.0 + 2.86.0 diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml index 67085e21a813..4275192d7f8f 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.93.0 + 0.94.0 grpc-google-cloud-servicedirectory-v1beta1 GRPC library for grpc-google-cloud-servicedirectory-v1beta1 com.google.cloud google-cloud-servicedirectory-parent - 2.85.0 + 2.86.0 diff --git a/java-servicedirectory/pom.xml b/java-servicedirectory/pom.xml index 78dd11e32ae3..fbb8c29e9ef7 100644 --- a/java-servicedirectory/pom.xml +++ b/java-servicedirectory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-servicedirectory-parent pom - 2.85.0 + 2.86.0 Google Cloud Service Directory Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.93.0 + 0.94.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.93.0 + 0.94.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.85.0 + 2.86.0 com.google.cloud google-cloud-servicedirectory - 2.85.0 + 2.86.0 diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml index cdb4f938aa02..40e856cff35f 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.85.0 + 2.86.0 proto-google-cloud-servicedirectory-v1 PROTO library for proto-google-cloud-servicedirectory-v1 com.google.cloud google-cloud-servicedirectory-parent - 2.85.0 + 2.86.0 diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml index 34a194fbca09..22d4780d6d4f 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.93.0 + 0.94.0 proto-google-cloud-servicedirectory-v1beta1 PROTO library for proto-google-cloud-servicedirectory-v1beta1 com.google.cloud google-cloud-servicedirectory-parent - 2.85.0 + 2.86.0 diff --git a/java-servicehealth/google-cloud-servicehealth-bom/pom.xml b/java-servicehealth/google-cloud-servicehealth-bom/pom.xml index f73f832133a9..8d669c01152e 100644 --- a/java-servicehealth/google-cloud-servicehealth-bom/pom.xml +++ b/java-servicehealth/google-cloud-servicehealth-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-servicehealth-bom - 0.51.0 + 0.52.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-servicehealth - 0.51.0 + 0.52.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.51.0 + 0.52.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.51.0 + 0.52.0 diff --git a/java-servicehealth/google-cloud-servicehealth/pom.xml b/java-servicehealth/google-cloud-servicehealth/pom.xml index 0e3723b83db4..f8b029a6f178 100644 --- a/java-servicehealth/google-cloud-servicehealth/pom.xml +++ b/java-servicehealth/google-cloud-servicehealth/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-servicehealth - 0.51.0 + 0.52.0 jar Google Service Health API Service Health API Personalized Service Health helps you gain visibility into disruptive events impacting Google Cloud products. com.google.cloud google-cloud-servicehealth-parent - 0.51.0 + 0.52.0 google-cloud-servicehealth diff --git a/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml b/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml index c3054d172118..e7639c68f0c5 100644 --- a/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml +++ b/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.51.0 + 0.52.0 grpc-google-cloud-servicehealth-v1 GRPC library for google-cloud-servicehealth com.google.cloud google-cloud-servicehealth-parent - 0.51.0 + 0.52.0 diff --git a/java-servicehealth/pom.xml b/java-servicehealth/pom.xml index 77186fb07534..c36b2bf9526b 100644 --- a/java-servicehealth/pom.xml +++ b/java-servicehealth/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-servicehealth-parent pom - 0.51.0 + 0.52.0 Google Service Health API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-servicehealth - 0.51.0 + 0.52.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.51.0 + 0.52.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.51.0 + 0.52.0 diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml b/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml index 695a9eec1c5c..e68304d47076 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.51.0 + 0.52.0 proto-google-cloud-servicehealth-v1 Proto library for google-cloud-servicehealth com.google.cloud google-cloud-servicehealth-parent - 0.51.0 + 0.52.0 diff --git a/java-shell/google-cloud-shell-bom/pom.xml b/java-shell/google-cloud-shell-bom/pom.xml index 8ff808fd3753..617bced1f320 100644 --- a/java-shell/google-cloud-shell-bom/pom.xml +++ b/java-shell/google-cloud-shell-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-shell-bom - 2.83.0 + 2.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-shell - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.83.0 + 2.84.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.83.0 + 2.84.0 diff --git a/java-shell/google-cloud-shell/pom.xml b/java-shell/google-cloud-shell/pom.xml index bc0c9f53cfee..59e54c56b18a 100644 --- a/java-shell/google-cloud-shell/pom.xml +++ b/java-shell/google-cloud-shell/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-shell - 2.83.0 + 2.84.0 jar Google Cloud Shell Cloud Shell is an interactive shell environment for Google Cloud that makes it easy for you to learn and experiment with Google Cloud and manage your projects and resources from your web browser. com.google.cloud google-cloud-shell-parent - 2.83.0 + 2.84.0 google-cloud-shell diff --git a/java-shell/grpc-google-cloud-shell-v1/pom.xml b/java-shell/grpc-google-cloud-shell-v1/pom.xml index 17836d8a678c..75d9cd287acb 100644 --- a/java-shell/grpc-google-cloud-shell-v1/pom.xml +++ b/java-shell/grpc-google-cloud-shell-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.83.0 + 2.84.0 grpc-google-cloud-shell-v1 GRPC library for google-cloud-shell com.google.cloud google-cloud-shell-parent - 2.83.0 + 2.84.0 diff --git a/java-shell/pom.xml b/java-shell/pom.xml index 8e8d57529e20..b8c513983ef5 100644 --- a/java-shell/pom.xml +++ b/java-shell/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shell-parent pom - 2.83.0 + 2.84.0 Google Cloud Shell Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-shell - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.83.0 + 2.84.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.83.0 + 2.84.0 diff --git a/java-shell/proto-google-cloud-shell-v1/pom.xml b/java-shell/proto-google-cloud-shell-v1/pom.xml index 386cd6fa805f..1b0eea377d53 100644 --- a/java-shell/proto-google-cloud-shell-v1/pom.xml +++ b/java-shell/proto-google-cloud-shell-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.83.0 + 2.84.0 proto-google-cloud-shell-v1 Proto library for google-cloud-shell com.google.cloud google-cloud-shell-parent - 2.83.0 + 2.84.0 diff --git a/java-shopping-css/google-shopping-css-bom/pom.xml b/java-shopping-css/google-shopping-css-bom/pom.xml index 2569ac5967e5..d87076cbee68 100644 --- a/java-shopping-css/google-shopping-css-bom/pom.xml +++ b/java-shopping-css/google-shopping-css-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-css-bom - 0.52.0 + 0.53.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-css - 0.52.0 + 0.53.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.52.0 + 0.53.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.52.0 + 0.53.0 diff --git a/java-shopping-css/google-shopping-css/pom.xml b/java-shopping-css/google-shopping-css/pom.xml index dbf72e164858..9cd3dc911aa0 100644 --- a/java-shopping-css/google-shopping-css/pom.xml +++ b/java-shopping-css/google-shopping-css/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-css - 0.52.0 + 0.53.0 jar Google CSS API CSS API The CSS API is used to manage your CSS and control your CSS Products portfolio com.google.shopping google-shopping-css-parent - 0.52.0 + 0.53.0 google-shopping-css diff --git a/java-shopping-css/grpc-google-shopping-css-v1/pom.xml b/java-shopping-css/grpc-google-shopping-css-v1/pom.xml index 363c2e5e7fdd..b5c958db7214 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/pom.xml +++ b/java-shopping-css/grpc-google-shopping-css-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.52.0 + 0.53.0 grpc-google-shopping-css-v1 GRPC library for google-shopping-css com.google.shopping google-shopping-css-parent - 0.52.0 + 0.53.0 diff --git a/java-shopping-css/pom.xml b/java-shopping-css/pom.xml index c562780b0206..a0543a1628b4 100644 --- a/java-shopping-css/pom.xml +++ b/java-shopping-css/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-css-parent pom - 0.52.0 + 0.53.0 Google CSS API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-css - 0.52.0 + 0.53.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.52.0 + 0.53.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.52.0 + 0.53.0 diff --git a/java-shopping-css/proto-google-shopping-css-v1/pom.xml b/java-shopping-css/proto-google-shopping-css-v1/pom.xml index 2a74cdb4a730..73b24e035ba7 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/pom.xml +++ b/java-shopping-css/proto-google-shopping-css-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.52.0 + 0.53.0 proto-google-shopping-css-v1 Proto library for google-shopping-css com.google.shopping google-shopping-css-parent - 0.52.0 + 0.53.0 diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml b/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml index 3ce1287d3504..26e36f65b3b0 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-accounts-bom - 1.12.0 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-accounts - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1 - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml index 72506ca08526..73ef1c65d6a7 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-accounts - 1.12.0 + 1.13.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-accounts-parent - 1.12.0 + 1.13.0 google-shopping-merchant-accounts diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/pom.xml b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/pom.xml index 449d7196b079..2019d968206b 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/pom.xml +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1 - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-accounts-v1 GRPC library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml index d35e35b632cb..316e786a10ff 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-accounts-v1beta GRPC library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-accounts/pom.xml b/java-shopping-merchant-accounts/pom.xml index 809b38f500e5..628aa8b57a49 100644 --- a/java-shopping-merchant-accounts/pom.xml +++ b/java-shopping-merchant-accounts/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-accounts-parent pom - 1.12.0 + 1.13.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-accounts - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/pom.xml b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/pom.xml index d93f0d0b8c5d..72f7d10833b1 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/pom.xml +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1 - 1.12.0 + 1.13.0 proto-google-shopping-merchant-accounts-v1 Proto library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml index ac59dc78b741..33237771e554 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 1.12.0 + 1.13.0 proto-google-shopping-merchant-accounts-v1beta Proto library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml b/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml index 83d80ae07124..0cdce2f7320b 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-conversions-bom - 1.12.0 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-conversions - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1 - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml index d9634ddd696d..167e7d386268 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-conversions - 1.12.0 + 1.13.0 jar Google Merchant Conversions API Merchant Conversions API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-conversions-parent - 1.12.0 + 1.13.0 google-shopping-merchant-conversions diff --git a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/pom.xml b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/pom.xml index 05ee2920193d..615512b38693 100644 --- a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/pom.xml +++ b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1 - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-conversions-v1 GRPC library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml index a0db3b9e6f48..da4da05bb35b 100644 --- a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml +++ b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-conversions-v1beta GRPC library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-conversions/pom.xml b/java-shopping-merchant-conversions/pom.xml index 409f75c4ffd9..322eb8420b10 100644 --- a/java-shopping-merchant-conversions/pom.xml +++ b/java-shopping-merchant-conversions/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-conversions-parent pom - 1.12.0 + 1.13.0 Google Merchant Conversions API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-conversions - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/pom.xml b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/pom.xml index bd0157b43158..ccd5b106f935 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/pom.xml +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1 - 1.12.0 + 1.13.0 proto-google-shopping-merchant-conversions-v1 Proto library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml index e89211042cc5..d66655fae5d9 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 1.12.0 + 1.13.0 proto-google-shopping-merchant-conversions-v1beta Proto library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml b/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml index 4c2750f9a2a6..8843b74a055b 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-datasources-bom - 1.12.0 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-datasources - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1 - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml index 296d4e9c1bb4..1e8a20754643 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-datasources - 1.12.0 + 1.13.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-datasources-parent - 1.12.0 + 1.13.0 google-shopping-merchant-datasources diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/pom.xml b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/pom.xml index a1a6b1c0b2d7..b3b1f7b558bb 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/pom.xml +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1 - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-datasources-v1 GRPC library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml index 08c838b38c74..0a7105d16993 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-datasources-v1beta GRPC library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-datasources/pom.xml b/java-shopping-merchant-datasources/pom.xml index a847f6cd72c0..ac7657020ee2 100644 --- a/java-shopping-merchant-datasources/pom.xml +++ b/java-shopping-merchant-datasources/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-datasources-parent pom - 1.12.0 + 1.13.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-datasources - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/pom.xml b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/pom.xml index a7c6de9a4a24..bb3ecbd4cc2b 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/pom.xml +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1 - 1.12.0 + 1.13.0 proto-google-shopping-merchant-datasources-v1 Proto library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml index 078798f42e05..7759d03f128b 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 1.12.0 + 1.13.0 proto-google-shopping-merchant-datasources-v1beta Proto library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml b/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml index 35e35af65328..403f6626ef0f 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-merchant-inventories-bom - 1.12.0 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-inventories - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1 - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml index 678b06728551..d948c05bd4fc 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-inventories - 1.12.0 + 1.13.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-inventories-parent - 1.12.0 + 1.13.0 google-shopping-merchant-inventories diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/pom.xml b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/pom.xml index b673f7f8a1d2..d4f4df091dbb 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/pom.xml +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1 - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-inventories-v1 GRPC library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml index cf4e8c0bee9d..7e57ac0f1625 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-inventories-v1beta GRPC library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-inventories/pom.xml b/java-shopping-merchant-inventories/pom.xml index 6a61afdd6f5e..93e5e636c9e0 100644 --- a/java-shopping-merchant-inventories/pom.xml +++ b/java-shopping-merchant-inventories/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-inventories-parent pom - 1.12.0 + 1.13.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-inventories - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/pom.xml b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/pom.xml index 026a4394fbc3..39132b9fb0ec 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/pom.xml +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1 - 1.12.0 + 1.13.0 proto-google-shopping-merchant-inventories-v1 Proto library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml index 60646a1f6ddc..d064629f0fe9 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 1.12.0 + 1.13.0 proto-google-shopping-merchant-inventories-v1beta Proto library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml b/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml index 0cc0bc81357c..5b44ee629a4d 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-lfp-bom - 1.12.0 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-lfp - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1 - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml index 47ac7dfd98d9..7048651c4425 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-lfp - 1.12.0 + 1.13.0 jar Google Merchant LFP API Merchant LFP API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-lfp-parent - 1.12.0 + 1.13.0 google-shopping-merchant-lfp diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/pom.xml b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/pom.xml index 0322203a39ea..dd9ab02e664c 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/pom.xml +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1 - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-lfp-v1 GRPC library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml index b977e06cb6b5..4d0c3e731c22 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-lfp-v1beta GRPC library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-lfp/pom.xml b/java-shopping-merchant-lfp/pom.xml index d306a60d381a..58876cfd57f4 100644 --- a/java-shopping-merchant-lfp/pom.xml +++ b/java-shopping-merchant-lfp/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-lfp-parent pom - 1.12.0 + 1.13.0 Google Merchant LFP API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-lfp - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/pom.xml b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/pom.xml index 2053c6f43ffe..135c8c6c26ae 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/pom.xml +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1 - 1.12.0 + 1.13.0 proto-google-shopping-merchant-lfp-v1 Proto library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml index 47f784f55c05..3edcc25ed383 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 1.12.0 + 1.13.0 proto-google-shopping-merchant-lfp-v1beta Proto library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml b/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml index 9e7ebf77fa44..1f8d0a55c378 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-notifications-bom - 1.12.0 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-notifications - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1 - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml index 18bf1daf9ad1..6c83572c91e0 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-notifications - 1.12.0 + 1.13.0 jar Google Merchant Notifications API Merchant Notifications API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-notifications-parent - 1.12.0 + 1.13.0 google-shopping-merchant-notifications diff --git a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/pom.xml b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/pom.xml index 789314b6ce76..724105950dc1 100644 --- a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/pom.xml +++ b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1 - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-notifications-v1 GRPC library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml index d64fb16c1a3f..936d7c994933 100644 --- a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml +++ b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-notifications-v1beta GRPC library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-notifications/pom.xml b/java-shopping-merchant-notifications/pom.xml index 84bf0b0d8237..f25d7afbb7f7 100644 --- a/java-shopping-merchant-notifications/pom.xml +++ b/java-shopping-merchant-notifications/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-notifications-parent pom - 1.12.0 + 1.13.0 Google Merchant 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 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-notifications - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/pom.xml b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/pom.xml index 12ea8a5ceb1f..fed922c5f4cc 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/pom.xml +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1 - 1.12.0 + 1.13.0 proto-google-shopping-merchant-notifications-v1 Proto library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml index 0adfb2d1c713..98d5f6b8e4d7 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 1.12.0 + 1.13.0 proto-google-shopping-merchant-notifications-v1beta Proto library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml index a8778271a831..2a4cc55cb4f9 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-productstudio-bom - 0.24.0 + 0.25.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-productstudio - 0.24.0 + 0.25.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-productstudio-v1alpha - 0.24.0 + 0.25.0 com.google.shopping.api.grpc proto-google-shopping-merchant-productstudio-v1alpha - 0.24.0 + 0.25.0 diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml index 998cb6d646a9..367d154a0a46 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-productstudio - 0.24.0 + 0.25.0 jar Google Merchant API Merchant API Programmatically manage your products. com.google.shopping google-shopping-merchant-productstudio-parent - 0.24.0 + 0.25.0 google-shopping-merchant-productstudio diff --git a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml index 44bba7256265..60d522effd91 100644 --- a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml +++ b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-productstudio-v1alpha - 0.24.0 + 0.25.0 grpc-google-shopping-merchant-productstudio-v1alpha GRPC library for google-shopping-merchant-productstudio com.google.shopping google-shopping-merchant-productstudio-parent - 0.24.0 + 0.25.0 diff --git a/java-shopping-merchant-product-studio/pom.xml b/java-shopping-merchant-product-studio/pom.xml index 951f8f4dd4a9..695e5ce97ad9 100644 --- a/java-shopping-merchant-product-studio/pom.xml +++ b/java-shopping-merchant-product-studio/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-productstudio-parent pom - 0.24.0 + 0.25.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-productstudio - 0.24.0 + 0.25.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-productstudio-v1alpha - 0.24.0 + 0.25.0 com.google.shopping.api.grpc proto-google-shopping-merchant-productstudio-v1alpha - 0.24.0 + 0.25.0 diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml index 7c2d272c6dc2..ec5f1822ce53 100644 --- a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-productstudio-v1alpha - 0.24.0 + 0.25.0 proto-google-shopping-merchant-productstudio-v1alpha Proto library for google-shopping-merchant-productstudio com.google.shopping google-shopping-merchant-productstudio-parent - 0.24.0 + 0.25.0 diff --git a/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml b/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml index 589675c886fd..8fd1df56d251 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml +++ b/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-products-bom - 1.12.0 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-products - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1 - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml index 6c50ee66c997..35d6025d7439 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-products - 1.12.0 + 1.13.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-products-parent - 1.12.0 + 1.13.0 google-shopping-merchant-products diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/pom.xml b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/pom.xml index e2fb3765b51c..37f178122dcf 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/pom.xml +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1 - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-products-v1 GRPC library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml index f6af83332de5..a328dd939566 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-products-v1beta GRPC library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/pom.xml index 4be5ea98424b..448bcde5568a 100644 --- a/java-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-products-parent pom - 1.12.0 + 1.13.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-products - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/pom.xml b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/pom.xml index 9b2085ebfc3b..cec499856824 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/pom.xml +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1 - 1.12.0 + 1.13.0 proto-google-shopping-merchant-products-v1 Proto library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml index e62c3cb8a6ac..6d6e81ed8a5d 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 1.12.0 + 1.13.0 proto-google-shopping-merchant-products-v1beta Proto library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml b/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml index 74f8e585df78..d97f6d2ae3e3 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-promotions-bom - 1.12.0 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-promotions - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1 - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml index bd635849ab9d..87cc2229ba83 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-promotions - 1.12.0 + 1.13.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-promotions-parent - 1.12.0 + 1.13.0 google-shopping-merchant-promotions diff --git a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/pom.xml b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/pom.xml index 9f538a159503..b3ac440ffdb4 100644 --- a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/pom.xml +++ b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1 - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-promotions-v1 GRPC library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml index 59cf02532225..47456c3f8ca2 100644 --- a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml +++ b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-promotions-v1beta GRPC library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/pom.xml index e302aef1f897..6a43008c8fec 100644 --- a/java-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-promotions-parent pom - 1.12.0 + 1.13.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-promotions - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/pom.xml b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/pom.xml index f8f24559e777..71ba2d829273 100644 --- a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/pom.xml +++ b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1 - 1.12.0 + 1.13.0 proto-google-shopping-merchant-promotions-v1 Proto library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml index a2aad4b8e9f4..f2b88b567c9f 100644 --- a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml +++ b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 1.12.0 + 1.13.0 proto-google-shopping-merchant-promotions-v1beta Proto library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml b/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml index 0b818f71acee..6d150cb22d9d 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-quota-bom - 1.12.0 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-quota - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1 - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml b/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml index 3bd6c40c4b1b..995dce20fd7c 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-quota - 1.12.0 + 1.13.0 jar Google Merchant Quota API Merchant Quota API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-quota-parent - 1.12.0 + 1.13.0 google-shopping-merchant-quota diff --git a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/pom.xml b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/pom.xml index 701484e31c23..d80ca1393194 100644 --- a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/pom.xml +++ b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1 - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-quota-v1 GRPC library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml index 029412925202..db7ef9623c2d 100644 --- a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml +++ b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-quota-v1beta GRPC library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-quota/pom.xml b/java-shopping-merchant-quota/pom.xml index 27da86097a92..9a8de7fd6319 100644 --- a/java-shopping-merchant-quota/pom.xml +++ b/java-shopping-merchant-quota/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-quota-parent pom - 1.12.0 + 1.13.0 Google Merchant Quota API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-quota - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/pom.xml b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/pom.xml index 3d63c003dfaf..2fdc105959af 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/pom.xml +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1 - 1.12.0 + 1.13.0 proto-google-shopping-merchant-quota-v1 Proto library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml index 795c16141798..3375c3d29e56 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 1.12.0 + 1.13.0 proto-google-shopping-merchant-quota-v1beta Proto library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml b/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml index af035e46a593..2dc6b1351bf1 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-merchant-reports-bom - 1.12.0 + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.shopping google-shopping-merchant-reports - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1alpha - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1alpha - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1 - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml b/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml index 1804f9ce66cd..1605ba98bfc1 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-reports - 1.12.0 + 1.13.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-reports-parent - 1.12.0 + 1.13.0 google-shopping-merchant-reports diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/pom.xml b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/pom.xml index 7577fe181bcc..1ba4dc0a30fc 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/pom.xml +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1 - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-reports-v1 GRPC library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml index ce8ca2fe3cfd..33076b68f633 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1alpha - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-reports-v1alpha GRPC library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml index 75dd06823a9b..ce642a7ed4ae 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 1.12.0 + 1.13.0 grpc-google-shopping-merchant-reports-v1beta GRPC library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-reports/pom.xml b/java-shopping-merchant-reports/pom.xml index 6bb9fe2fece7..5d7c6b0bf6d2 100644 --- a/java-shopping-merchant-reports/pom.xml +++ b/java-shopping-merchant-reports/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-reports-parent pom - 1.12.0 + 1.13.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.shopping google-shopping-merchant-reports - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1 - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1alpha - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1alpha - 1.12.0 + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 1.12.0 + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/pom.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/pom.xml index 6ebdc690dd2d..cc6d23489449 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/pom.xml +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1 - 1.12.0 + 1.13.0 proto-google-shopping-merchant-reports-v1 Proto library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml index d591cd687ad0..a31c062a10b2 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1alpha - 1.12.0 + 1.13.0 proto-google-shopping-merchant-reports-v1alpha Proto library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml index e5d9d512b6a4..a7b76a607841 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 1.12.0 + 1.13.0 proto-google-shopping-merchant-reports-v1beta Proto library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.12.0 + 1.13.0 diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml b/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml index 9b97ba293f40..471cfc2b77ca 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-reviews-bom - 0.30.0 + 0.31.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-reviews - 0.30.0 + 0.31.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reviews-v1beta - 0.30.0 + 0.31.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reviews-v1beta - 0.30.0 + 0.31.0 diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml index b50c260aff4c..dfcaa464eed7 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-reviews - 0.30.0 + 0.31.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center Accounts. com.google.shopping google-shopping-merchant-reviews-parent - 0.30.0 + 0.31.0 google-shopping-merchant-reviews diff --git a/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml b/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml index 6dfd50c5d571..346c457e6375 100644 --- a/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml +++ b/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reviews-v1beta - 0.30.0 + 0.31.0 grpc-google-shopping-merchant-reviews-v1beta GRPC library for google-shopping-merchant-reviews com.google.shopping google-shopping-merchant-reviews-parent - 0.30.0 + 0.31.0 diff --git a/java-shopping-merchant-reviews/pom.xml b/java-shopping-merchant-reviews/pom.xml index 6451c1f69ffb..2e4f185c700e 100644 --- a/java-shopping-merchant-reviews/pom.xml +++ b/java-shopping-merchant-reviews/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-reviews-parent pom - 0.30.0 + 0.31.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-reviews - 0.30.0 + 0.31.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reviews-v1beta - 0.30.0 + 0.31.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reviews-v1beta - 0.30.0 + 0.31.0 diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml index e4a25440856a..d15c95a3fad3 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reviews-v1beta - 0.30.0 + 0.31.0 proto-google-shopping-merchant-reviews-v1beta Proto library for google-shopping-merchant-reviews com.google.shopping google-shopping-merchant-reviews-parent - 0.30.0 + 0.31.0 diff --git a/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml b/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml index 69b6c3339a65..a91a4e2fa8d4 100644 --- a/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml +++ b/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-spanneradapter-bom - 0.20.0 + 0.21.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-spanneradapter - 0.20.0 + 0.21.0 com.google.api.grpc grpc-google-cloud-spanneradapter-v1 - 0.20.0 + 0.21.0 com.google.api.grpc proto-google-cloud-spanneradapter-v1 - 0.20.0 + 0.21.0 diff --git a/java-spanneradapter/google-cloud-spanneradapter/pom.xml b/java-spanneradapter/google-cloud-spanneradapter/pom.xml index 18b390d0869c..f8a990ce1686 100644 --- a/java-spanneradapter/google-cloud-spanneradapter/pom.xml +++ b/java-spanneradapter/google-cloud-spanneradapter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-spanneradapter - 0.20.0 + 0.21.0 jar Google Cloud Spanner Adapter API Cloud Spanner Adapter API The Cloud Spanner Adapter service allows native drivers of supported database dialects to interact directly with Cloud Spanner by wrapping the underlying wire protocol used by the driver in a gRPC stream. com.google.cloud google-cloud-spanneradapter-parent - 0.20.0 + 0.21.0 google-cloud-spanneradapter diff --git a/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml b/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml index 9f8c4748c881..548d51e212ca 100644 --- a/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml +++ b/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-spanneradapter-v1 - 0.20.0 + 0.21.0 grpc-google-cloud-spanneradapter-v1 GRPC library for google-cloud-spanneradapter com.google.cloud google-cloud-spanneradapter-parent - 0.20.0 + 0.21.0 diff --git a/java-spanneradapter/pom.xml b/java-spanneradapter/pom.xml index 36bac5ad5c37..d0b9ba0f3101 100644 --- a/java-spanneradapter/pom.xml +++ b/java-spanneradapter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-spanneradapter-parent pom - 0.20.0 + 0.21.0 Google Cloud Spanner Adapter API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-spanneradapter - 0.20.0 + 0.21.0 com.google.api.grpc grpc-google-cloud-spanneradapter-v1 - 0.20.0 + 0.21.0 com.google.api.grpc proto-google-cloud-spanneradapter-v1 - 0.20.0 + 0.21.0 diff --git a/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml b/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml index c5372be5573f..698f13aed849 100644 --- a/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml +++ b/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-spanneradapter-v1 - 0.20.0 + 0.21.0 proto-google-cloud-spanneradapter-v1 Proto library for google-cloud-spanneradapter com.google.cloud google-cloud-spanneradapter-parent - 0.20.0 + 0.21.0 diff --git a/java-speech/google-cloud-speech-bom/pom.xml b/java-speech/google-cloud-speech-bom/pom.xml index 8cbf76edeb01..ce07c6c500f8 100644 --- a/java-speech/google-cloud-speech-bom/pom.xml +++ b/java-speech/google-cloud-speech-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-speech-bom - 4.79.0 + 4.80.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-speech - 4.79.0 + 4.80.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.79.0 + 4.80.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.79.0 + 2.80.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.79.0 + 4.80.0 com.google.api.grpc proto-google-cloud-speech-v1 - 4.79.0 + 4.80.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.79.0 + 2.80.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.79.0 + 4.80.0 diff --git a/java-speech/google-cloud-speech/pom.xml b/java-speech/google-cloud-speech/pom.xml index 7274344cbbfd..548c6abfe3e6 100644 --- a/java-speech/google-cloud-speech/pom.xml +++ b/java-speech/google-cloud-speech/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-speech - 4.79.0 + 4.80.0 jar Google Cloud Speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-speech-parent - 4.79.0 + 4.80.0 google-cloud-speech diff --git a/java-speech/grpc-google-cloud-speech-v1/pom.xml b/java-speech/grpc-google-cloud-speech-v1/pom.xml index a4b837440ef4..d62e3245a4d1 100644 --- a/java-speech/grpc-google-cloud-speech-v1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.79.0 + 4.80.0 grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 4.79.0 + 4.80.0 diff --git a/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml b/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml index 8ff5b32d4c6e..05300cb5340a 100644 --- a/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.79.0 + 2.80.0 grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 4.79.0 + 4.80.0 diff --git a/java-speech/grpc-google-cloud-speech-v2/pom.xml b/java-speech/grpc-google-cloud-speech-v2/pom.xml index 00861b1661df..b05d1ad47acd 100644 --- a/java-speech/grpc-google-cloud-speech-v2/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.79.0 + 4.80.0 grpc-google-cloud-speech-v2 GRPC library for google-cloud-speech com.google.cloud google-cloud-speech-parent - 4.79.0 + 4.80.0 diff --git a/java-speech/pom.xml b/java-speech/pom.xml index 28e5baee744e..564f11f418a0 100644 --- a/java-speech/pom.xml +++ b/java-speech/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-speech-parent pom - 4.79.0 + 4.80.0 Google Cloud speech Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-speech-v1 - 4.79.0 + 4.80.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.79.0 + 4.80.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.79.0 + 4.80.0 com.google.cloud google-cloud-speech - 4.79.0 + 4.80.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.79.0 + 2.80.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.79.0 + 4.80.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.79.0 + 2.80.0 diff --git a/java-speech/proto-google-cloud-speech-v1/pom.xml b/java-speech/proto-google-cloud-speech-v1/pom.xml index 116954d48bcd..de9df722ddf1 100644 --- a/java-speech/proto-google-cloud-speech-v1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1 - 4.79.0 + 4.80.0 proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 4.79.0 + 4.80.0 diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml b/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml index 1f33728db64e..804a7b804556 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.79.0 + 2.80.0 proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 4.79.0 + 4.80.0 diff --git a/java-speech/proto-google-cloud-speech-v2/pom.xml b/java-speech/proto-google-cloud-speech-v2/pom.xml index 061dd36674c4..cfb1cc49985c 100644 --- a/java-speech/proto-google-cloud-speech-v2/pom.xml +++ b/java-speech/proto-google-cloud-speech-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.79.0 + 4.80.0 proto-google-cloud-speech-v2 Proto library for google-cloud-speech com.google.cloud google-cloud-speech-parent - 4.79.0 + 4.80.0 diff --git a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml index 2b32a05eca64..0542d905b710 100644 --- a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-storage-transfer-bom - 1.84.0 + 1.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-storage-transfer - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.84.0 + 1.85.0 diff --git a/java-storage-transfer/google-cloud-storage-transfer/pom.xml b/java-storage-transfer/google-cloud-storage-transfer/pom.xml index e2d4790c6c6b..c44f62f8622a 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storage-transfer - 1.84.0 + 1.85.0 jar Google Storage Transfer Service Storage Transfer Service Secure, low-cost services for transferring data from cloud or on-premises sources. com.google.cloud google-cloud-storage-transfer-parent - 1.84.0 + 1.85.0 google-cloud-storage-transfer diff --git a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml index bc36d2a8b6cc..cadaaa99ca49 100644 --- a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml +++ b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.84.0 + 1.85.0 grpc-google-cloud-storage-transfer-v1 GRPC library for google-cloud-storage-transfer com.google.cloud google-cloud-storage-transfer-parent - 1.84.0 + 1.85.0 diff --git a/java-storage-transfer/pom.xml b/java-storage-transfer/pom.xml index fa080c0abb5f..189ad17cd711 100644 --- a/java-storage-transfer/pom.xml +++ b/java-storage-transfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storage-transfer-parent pom - 1.84.0 + 1.85.0 Google Storage Transfer Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-storage-transfer - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.84.0 + 1.85.0 diff --git a/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml b/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml index 932e3160a30d..c1a0ffb80f8b 100644 --- a/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml +++ b/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.84.0 + 1.85.0 proto-google-cloud-storage-transfer-v1 Proto library for google-cloud-storage-transfer com.google.cloud google-cloud-storage-transfer-parent - 1.84.0 + 1.85.0 diff --git a/java-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index 3f127dc4e01d..f6f18710e1af 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storagebatchoperations - 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-storagebatchoperations:0.23.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "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-storagebatchoperations/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-storagebatchoperations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/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-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml b/java-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml index d1d8e45cd5c6..48262a1897a1 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-storagebatchoperations-bom - 0.24.0 + 0.25.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-storagebatchoperations - 0.24.0 + 0.25.0 com.google.api.grpc grpc-google-cloud-storagebatchoperations-v1 - 0.24.0 + 0.25.0 com.google.api.grpc proto-google-cloud-storagebatchoperations-v1 - 0.24.0 + 0.25.0 diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml b/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml index c245b05e321c..151af30bdc96 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storagebatchoperations - 0.24.0 + 0.25.0 jar Google Storage Batch Operations API Storage Batch Operations API Storage batch operations is a Cloud Storage management feature that performs operations on billions of Cloud Storage objects in a serverless manner. com.google.cloud google-cloud-storagebatchoperations-parent - 0.24.0 + 0.25.0 google-cloud-storagebatchoperations diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClient.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClient.java index 1611cc5492e9..912f3a059def 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClient.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClient.java @@ -173,6 +173,45 @@ * * * + *

ListBucketOperations + *

Lists BucketOperations in a given project and job. + * + *

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

+ *
    + *
  • listBucketOperations(ListBucketOperationsRequest request) + *

+ *

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

+ *
    + *
  • listBucketOperations(JobName parent) + *

  • listBucketOperations(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.

+ *
    + *
  • listBucketOperationsPagedCallable() + *

  • listBucketOperationsCallable() + *

+ * + * + * + *

GetBucketOperation + *

Gets a BucketOperation. + * + *

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

+ *
    + *
  • getBucketOperation(GetBucketOperationRequest request) + *

+ *

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

+ *
    + *
  • getBucketOperation(BucketOperationName name) + *

  • getBucketOperation(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.

+ *
    + *
  • getBucketOperationCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -865,6 +904,7 @@ public final void deleteJob(String name) { * DeleteJobRequest.newBuilder() * .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * storageBatchOperationsClient.deleteJob(request); * } @@ -895,6 +935,7 @@ public final void deleteJob(DeleteJobRequest request) { * DeleteJobRequest.newBuilder() * .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * ApiFuture future = * storageBatchOperationsClient.deleteJobCallable().futureCall(request); @@ -1024,6 +1065,312 @@ public final UnaryCallable cancelJobCallabl return stub.cancelJobCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BucketOperations in a given project and job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (StorageBatchOperationsClient storageBatchOperationsClient =
+   *     StorageBatchOperationsClient.create()) {
+   *   JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   for (BucketOperation element :
+   *       storageBatchOperationsClient.listBucketOperations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBucketOperationsPagedResponse listBucketOperations(JobName parent) { + ListBucketOperationsRequest request = + ListBucketOperationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBucketOperations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BucketOperations in a given project and job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (StorageBatchOperationsClient storageBatchOperationsClient =
+   *     StorageBatchOperationsClient.create()) {
+   *   String parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
+   *   for (BucketOperation element :
+   *       storageBatchOperationsClient.listBucketOperations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBucketOperationsPagedResponse listBucketOperations(String parent) { + ListBucketOperationsRequest request = + ListBucketOperationsRequest.newBuilder().setParent(parent).build(); + return listBucketOperations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BucketOperations in a given project and job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (StorageBatchOperationsClient storageBatchOperationsClient =
+   *     StorageBatchOperationsClient.create()) {
+   *   ListBucketOperationsRequest request =
+   *       ListBucketOperationsRequest.newBuilder()
+   *           .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (BucketOperation element :
+   *       storageBatchOperationsClient.listBucketOperations(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 ListBucketOperationsPagedResponse listBucketOperations( + ListBucketOperationsRequest request) { + return listBucketOperationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BucketOperations in a given project and job. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (StorageBatchOperationsClient storageBatchOperationsClient =
+   *     StorageBatchOperationsClient.create()) {
+   *   BucketOperationName name =
+   *       BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]");
+   *   BucketOperation response = storageBatchOperationsClient.getBucketOperation(name);
+   * }
+   * }
+ * + * @param name Required. `name` of the bucket operation to retrieve. Format: + * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BucketOperation getBucketOperation(BucketOperationName name) { + GetBucketOperationRequest request = + GetBucketOperationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getBucketOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a BucketOperation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (StorageBatchOperationsClient storageBatchOperationsClient =
+   *     StorageBatchOperationsClient.create()) {
+   *   String name =
+   *       BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]")
+   *           .toString();
+   *   BucketOperation response = storageBatchOperationsClient.getBucketOperation(name);
+   * }
+   * }
+ * + * @param name Required. `name` of the bucket operation to retrieve. Format: + * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BucketOperation getBucketOperation(String name) { + GetBucketOperationRequest request = + GetBucketOperationRequest.newBuilder().setName(name).build(); + return getBucketOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a BucketOperation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (StorageBatchOperationsClient storageBatchOperationsClient =
+   *     StorageBatchOperationsClient.create()) {
+   *   GetBucketOperationRequest request =
+   *       GetBucketOperationRequest.newBuilder()
+   *           .setName(
+   *               BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]")
+   *                   .toString())
+   *           .build();
+   *   BucketOperation response = storageBatchOperationsClient.getBucketOperation(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 BucketOperation getBucketOperation(GetBucketOperationRequest request) { + return getBucketOperationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a BucketOperation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (StorageBatchOperationsClient storageBatchOperationsClient =
+   *     StorageBatchOperationsClient.create()) {
+   *   GetBucketOperationRequest request =
+   *       GetBucketOperationRequest.newBuilder()
+   *           .setName(
+   *               BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       storageBatchOperationsClient.getBucketOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BucketOperation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getBucketOperationCallable() { + return stub.getBucketOperationCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. @@ -1279,6 +1626,90 @@ protected ListJobsFixedSizeCollection createCollection( } } + public static class ListBucketOperationsPagedResponse + extends AbstractPagedListResponse< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + BucketOperation, + ListBucketOperationsPage, + ListBucketOperationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBucketOperationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBucketOperationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBucketOperationsPagedResponse(ListBucketOperationsPage page) { + super(page, ListBucketOperationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBucketOperationsPage + extends AbstractPage< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + BucketOperation, + ListBucketOperationsPage> { + + private ListBucketOperationsPage( + PageContext + context, + ListBucketOperationsResponse response) { + super(context, response); + } + + private static ListBucketOperationsPage createEmptyPage() { + return new ListBucketOperationsPage(null, null); + } + + @Override + protected ListBucketOperationsPage createPage( + PageContext + context, + ListBucketOperationsResponse response) { + return new ListBucketOperationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBucketOperationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + BucketOperation, + ListBucketOperationsPage, + ListBucketOperationsFixedSizeCollection> { + + private ListBucketOperationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBucketOperationsFixedSizeCollection createEmptyCollection() { + return new ListBucketOperationsFixedSizeCollection(null, 0); + } + + @Override + protected ListBucketOperationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBucketOperationsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsSettings.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsSettings.java index 016ba96b31f0..9d3fcb57cbbd 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsSettings.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.storagebatchoperations.v1; +import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListLocationsPagedResponse; @@ -156,6 +157,21 @@ public UnaryCallSettings cancelJobSettings( return ((StorageBatchOperationsStubSettings) getStubSettings()).cancelJobSettings(); } + /** Returns the object with the settings used for calls to listBucketOperations. */ + public PagedCallSettings< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + ListBucketOperationsPagedResponse> + listBucketOperationsSettings() { + return ((StorageBatchOperationsStubSettings) getStubSettings()).listBucketOperationsSettings(); + } + + /** Returns the object with the settings used for calls to getBucket. */ + public UnaryCallSettings + getBucketOperationSettings() { + return ((StorageBatchOperationsStubSettings) getStubSettings()).getBucketOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -312,6 +328,21 @@ public UnaryCallSettings.Builder cancelJobS return getStubSettingsBuilder().cancelJobSettings(); } + /** Returns the builder for the settings used for calls to listBucketOperations. */ + public PagedCallSettings.Builder< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + ListBucketOperationsPagedResponse> + listBucketOperationsSettings() { + return getStubSettingsBuilder().listBucketOperationsSettings(); + } + + /** Returns the builder for the settings used for calls to getBucket. */ + public UnaryCallSettings.Builder + getBucketOperationSettings() { + return getStubSettingsBuilder().getBucketOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/gapic_metadata.json b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/gapic_metadata.json index d323480cd99c..e4ed981cc5d5 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/gapic_metadata.json +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/gapic_metadata.json @@ -19,12 +19,18 @@ "DeleteJob": { "methods": ["deleteJob", "deleteJob", "deleteJob", "deleteJobCallable"] }, + "GetBucketOperation": { + "methods": ["getBucketOperation", "getBucketOperation", "getBucketOperation", "getBucketOperationCallable"] + }, "GetJob": { "methods": ["getJob", "getJob", "getJob", "getJobCallable"] }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, + "ListBucketOperations": { + "methods": ["listBucketOperations", "listBucketOperations", "listBucketOperations", "listBucketOperationsPagedCallable", "listBucketOperationsCallable"] + }, "ListJobs": { "methods": ["listJobs", "listJobs", "listJobs", "listJobsPagedCallable", "listJobsCallable"] }, diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/GrpcStorageBatchOperationsStub.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/GrpcStorageBatchOperationsStub.java index def6f0ac4de5..b2166911ca0e 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/GrpcStorageBatchOperationsStub.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/GrpcStorageBatchOperationsStub.java @@ -16,6 +16,7 @@ package com.google.cloud.storagebatchoperations.v1.stub; +import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListLocationsPagedResponse; @@ -31,12 +32,16 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.storagebatchoperations.v1.BucketOperation; import com.google.cloud.storagebatchoperations.v1.CancelJobRequest; import com.google.cloud.storagebatchoperations.v1.CancelJobResponse; import com.google.cloud.storagebatchoperations.v1.CreateJobRequest; import com.google.cloud.storagebatchoperations.v1.DeleteJobRequest; +import com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest; import com.google.cloud.storagebatchoperations.v1.GetJobRequest; import com.google.cloud.storagebatchoperations.v1.Job; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse; import com.google.cloud.storagebatchoperations.v1.ListJobsRequest; import com.google.cloud.storagebatchoperations.v1.ListJobsResponse; import com.google.cloud.storagebatchoperations.v1.OperationMetadata; @@ -108,6 +113,31 @@ public class GrpcStorageBatchOperationsStub extends StorageBatchOperationsStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listBucketOperationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.storagebatchoperations.v1.StorageBatchOperations/ListBucketOperations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBucketOperationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBucketOperationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getBucketOperationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.storagebatchoperations.v1.StorageBatchOperations/GetBucketOperation") + .setRequestMarshaller( + ProtoUtils.marshaller(GetBucketOperationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(BucketOperation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -137,6 +167,12 @@ public class GrpcStorageBatchOperationsStub extends StorageBatchOperationsStub { createJobOperationCallable; private final UnaryCallable deleteJobCallable; private final UnaryCallable cancelJobCallable; + private final UnaryCallable + listBucketOperationsCallable; + private final UnaryCallable + listBucketOperationsPagedCallable; + private final UnaryCallable + getBucketOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -236,6 +272,28 @@ protected GrpcStorageBatchOperationsStub( return builder.build(); }) .build(); + GrpcCallSettings + listBucketOperationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBucketOperationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getBucketOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBucketOperationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -281,6 +339,21 @@ protected GrpcStorageBatchOperationsStub( this.cancelJobCallable = callableFactory.createUnaryCallable( cancelJobTransportSettings, settings.cancelJobSettings(), clientContext); + this.listBucketOperationsCallable = + callableFactory.createUnaryCallable( + listBucketOperationsTransportSettings, + settings.listBucketOperationsSettings(), + clientContext); + this.listBucketOperationsPagedCallable = + callableFactory.createPagedCallable( + listBucketOperationsTransportSettings, + settings.listBucketOperationsSettings(), + clientContext); + this.getBucketOperationCallable = + callableFactory.createUnaryCallable( + getBucketOperationTransportSettings, + settings.getBucketOperationSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -334,6 +407,23 @@ public UnaryCallable cancelJobCallable() { return cancelJobCallable; } + @Override + public UnaryCallable + listBucketOperationsCallable() { + return listBucketOperationsCallable; + } + + @Override + public UnaryCallable + listBucketOperationsPagedCallable() { + return listBucketOperationsPagedCallable; + } + + @Override + public UnaryCallable getBucketOperationCallable() { + return getBucketOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/HttpJsonStorageBatchOperationsStub.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/HttpJsonStorageBatchOperationsStub.java index be4a6c0c8feb..5ba9a069fe8e 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/HttpJsonStorageBatchOperationsStub.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/HttpJsonStorageBatchOperationsStub.java @@ -16,6 +16,7 @@ package com.google.cloud.storagebatchoperations.v1.stub; +import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListLocationsPagedResponse; @@ -39,12 +40,16 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.storagebatchoperations.v1.BucketOperation; import com.google.cloud.storagebatchoperations.v1.CancelJobRequest; import com.google.cloud.storagebatchoperations.v1.CancelJobResponse; import com.google.cloud.storagebatchoperations.v1.CreateJobRequest; import com.google.cloud.storagebatchoperations.v1.DeleteJobRequest; +import com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest; import com.google.cloud.storagebatchoperations.v1.GetJobRequest; import com.google.cloud.storagebatchoperations.v1.Job; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse; import com.google.cloud.storagebatchoperations.v1.ListJobsRequest; import com.google.cloud.storagebatchoperations.v1.ListJobsResponse; import com.google.cloud.storagebatchoperations.v1.OperationMetadata; @@ -208,6 +213,7 @@ public class HttpJsonStorageBatchOperationsStub extends StorageBatchOperationsSt Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "force", request.getForce()); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -259,6 +265,82 @@ public class HttpJsonStorageBatchOperationsStub extends StorageBatchOperationsSt .build()) .build(); + private static final ApiMethodDescriptor< + ListBucketOperationsRequest, ListBucketOperationsResponse> + listBucketOperationsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.storagebatchoperations.v1.StorageBatchOperations/ListBucketOperations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/jobs/*}/bucketOperations", + 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(ListBucketOperationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getBucketOperationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.storagebatchoperations.v1.StorageBatchOperations/GetBucketOperation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/jobs/*/bucketOperations/*}", + 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(BucketOperation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -335,6 +417,12 @@ public class HttpJsonStorageBatchOperationsStub extends StorageBatchOperationsSt createJobOperationCallable; private final UnaryCallable deleteJobCallable; private final UnaryCallable cancelJobCallable; + private final UnaryCallable + listBucketOperationsCallable; + private final UnaryCallable + listBucketOperationsPagedCallable; + private final UnaryCallable + getBucketOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -467,6 +555,31 @@ protected HttpJsonStorageBatchOperationsStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listBucketOperationsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listBucketOperationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getBucketOperationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBucketOperationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -515,6 +628,21 @@ protected HttpJsonStorageBatchOperationsStub( this.cancelJobCallable = callableFactory.createUnaryCallable( cancelJobTransportSettings, settings.cancelJobSettings(), clientContext); + this.listBucketOperationsCallable = + callableFactory.createUnaryCallable( + listBucketOperationsTransportSettings, + settings.listBucketOperationsSettings(), + clientContext); + this.listBucketOperationsPagedCallable = + callableFactory.createPagedCallable( + listBucketOperationsTransportSettings, + settings.listBucketOperationsSettings(), + clientContext); + this.getBucketOperationCallable = + callableFactory.createUnaryCallable( + getBucketOperationTransportSettings, + settings.getBucketOperationSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -537,6 +665,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(createJobMethodDescriptor); methodDescriptors.add(deleteJobMethodDescriptor); methodDescriptors.add(cancelJobMethodDescriptor); + methodDescriptors.add(listBucketOperationsMethodDescriptor); + methodDescriptors.add(getBucketOperationMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -581,6 +711,23 @@ public UnaryCallable cancelJobCallable() { return cancelJobCallable; } + @Override + public UnaryCallable + listBucketOperationsCallable() { + return listBucketOperationsCallable; + } + + @Override + public UnaryCallable + listBucketOperationsPagedCallable() { + return listBucketOperationsPagedCallable; + } + + @Override + public UnaryCallable getBucketOperationCallable() { + return getBucketOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStub.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStub.java index 195ef6f6b8c5..a28b71f78ca4 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStub.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStub.java @@ -16,6 +16,7 @@ package com.google.cloud.storagebatchoperations.v1.stub; +import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListLocationsPagedResponse; @@ -26,12 +27,16 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.storagebatchoperations.v1.BucketOperation; import com.google.cloud.storagebatchoperations.v1.CancelJobRequest; import com.google.cloud.storagebatchoperations.v1.CancelJobResponse; import com.google.cloud.storagebatchoperations.v1.CreateJobRequest; import com.google.cloud.storagebatchoperations.v1.DeleteJobRequest; +import com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest; import com.google.cloud.storagebatchoperations.v1.GetJobRequest; import com.google.cloud.storagebatchoperations.v1.Job; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse; import com.google.cloud.storagebatchoperations.v1.ListJobsRequest; import com.google.cloud.storagebatchoperations.v1.ListJobsResponse; import com.google.cloud.storagebatchoperations.v1.OperationMetadata; @@ -85,6 +90,20 @@ public UnaryCallable cancelJobCallable() { throw new UnsupportedOperationException("Not implemented: cancelJobCallable()"); } + public UnaryCallable + listBucketOperationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBucketOperationsPagedCallable()"); + } + + public UnaryCallable + listBucketOperationsCallable() { + throw new UnsupportedOperationException("Not implemented: listBucketOperationsCallable()"); + } + + public UnaryCallable getBucketOperationCallable() { + throw new UnsupportedOperationException("Not implemented: getBucketOperationCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStubSettings.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStubSettings.java index 3b3b9c95264e..8681e5d1d556 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStubSettings.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.storagebatchoperations.v1.stub; +import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListLocationsPagedResponse; @@ -53,12 +54,16 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.storagebatchoperations.v1.BucketOperation; import com.google.cloud.storagebatchoperations.v1.CancelJobRequest; import com.google.cloud.storagebatchoperations.v1.CancelJobResponse; import com.google.cloud.storagebatchoperations.v1.CreateJobRequest; import com.google.cloud.storagebatchoperations.v1.DeleteJobRequest; +import com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest; import com.google.cloud.storagebatchoperations.v1.GetJobRequest; import com.google.cloud.storagebatchoperations.v1.Job; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse; import com.google.cloud.storagebatchoperations.v1.ListJobsRequest; import com.google.cloud.storagebatchoperations.v1.ListJobsResponse; import com.google.cloud.storagebatchoperations.v1.OperationMetadata; @@ -166,6 +171,13 @@ public class StorageBatchOperationsStubSettings createJobOperationSettings; private final UnaryCallSettings deleteJobSettings; private final UnaryCallSettings cancelJobSettings; + private final PagedCallSettings< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + ListBucketOperationsPagedResponse> + listBucketOperationsSettings; + private final UnaryCallSettings + getBucketOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -205,6 +217,45 @@ public Iterable extractResources(ListJobsResponse payload) { } }; + private static final PagedListDescriptor< + ListBucketOperationsRequest, ListBucketOperationsResponse, BucketOperation> + LIST_BUCKET_OPERATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListBucketOperationsRequest, ListBucketOperationsResponse, BucketOperation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBucketOperationsRequest injectToken( + ListBucketOperationsRequest payload, String token) { + return ListBucketOperationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBucketOperationsRequest injectPageSize( + ListBucketOperationsRequest payload, int pageSize) { + return ListBucketOperationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBucketOperationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBucketOperationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListBucketOperationsResponse payload) { + return payload.getBucketOperationsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -255,6 +306,30 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + ListBucketOperationsPagedResponse> + LIST_BUCKET_OPERATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + ListBucketOperationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBucketOperationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListBucketOperationsRequest, ListBucketOperationsResponse, BucketOperation> + pageContext = + PageContext.create( + callable, LIST_BUCKET_OPERATIONS_PAGE_STR_DESC, request, context); + return ListBucketOperationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -304,6 +379,21 @@ public UnaryCallSettings cancelJobSettings( return cancelJobSettings; } + /** Returns the object with the settings used for calls to listBucketOperations. */ + public PagedCallSettings< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + ListBucketOperationsPagedResponse> + listBucketOperationsSettings() { + return listBucketOperationsSettings; + } + + /** Returns the object with the settings used for calls to getBucket. */ + public UnaryCallSettings + getBucketOperationSettings() { + return getBucketOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -432,6 +522,8 @@ protected StorageBatchOperationsStubSettings(Builder settingsBuilder) throws IOE createJobOperationSettings = settingsBuilder.createJobOperationSettings().build(); deleteJobSettings = settingsBuilder.deleteJobSettings().build(); cancelJobSettings = settingsBuilder.cancelJobSettings().build(); + listBucketOperationsSettings = settingsBuilder.listBucketOperationsSettings().build(); + getBucketOperationSettings = settingsBuilder.getBucketOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -449,6 +541,13 @@ public static class Builder createJobOperationSettings; private final UnaryCallSettings.Builder deleteJobSettings; private final UnaryCallSettings.Builder cancelJobSettings; + private final PagedCallSettings.Builder< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + ListBucketOperationsPagedResponse> + listBucketOperationsSettings; + private final UnaryCallSettings.Builder + getBucketOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -510,6 +609,9 @@ protected Builder(ClientContext clientContext) { createJobOperationSettings = OperationCallSettings.newBuilder(); deleteJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); cancelJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listBucketOperationsSettings = + PagedCallSettings.newBuilder(LIST_BUCKET_OPERATIONS_PAGE_STR_FACT); + getBucketOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -520,6 +622,8 @@ protected Builder(ClientContext clientContext) { createJobSettings, deleteJobSettings, cancelJobSettings, + listBucketOperationsSettings, + getBucketOperationSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -534,6 +638,8 @@ protected Builder(StorageBatchOperationsStubSettings settings) { createJobOperationSettings = settings.createJobOperationSettings.toBuilder(); deleteJobSettings = settings.deleteJobSettings.toBuilder(); cancelJobSettings = settings.cancelJobSettings.toBuilder(); + listBucketOperationsSettings = settings.listBucketOperationsSettings.toBuilder(); + getBucketOperationSettings = settings.getBucketOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -544,6 +650,8 @@ protected Builder(StorageBatchOperationsStubSettings settings) { createJobSettings, deleteJobSettings, cancelJobSettings, + listBucketOperationsSettings, + getBucketOperationSettings, listLocationsSettings, getLocationSettings); } @@ -598,6 +706,16 @@ 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 + .listBucketOperationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getBucketOperationSettings() + .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")) @@ -680,6 +798,21 @@ public UnaryCallSettings.Builder cancelJobS return cancelJobSettings; } + /** Returns the builder for the settings used for calls to listBucketOperations. */ + public PagedCallSettings.Builder< + ListBucketOperationsRequest, + ListBucketOperationsResponse, + ListBucketOperationsPagedResponse> + listBucketOperationsSettings() { + return listBucketOperationsSettings; + } + + /** Returns the builder for the settings used for calls to getBucket. */ + public UnaryCallSettings.Builder + getBucketOperationSettings() { + return getBucketOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/resources/META-INF/native-image/com.google.cloud.storagebatchoperations.v1/reflect-config.json b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/resources/META-INF/native-image/com.google.cloud.storagebatchoperations.v1/reflect-config.json index 62735b9f8bf4..b36e9578d101 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/resources/META-INF/native-image/com.google.cloud.storagebatchoperations.v1/reflect-config.json +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/resources/META-INF/native-image/com.google.cloud.storagebatchoperations.v1/reflect-config.json @@ -566,6 +566,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.storagebatchoperations.v1.BucketOperation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.storagebatchoperations.v1.BucketOperation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.storagebatchoperations.v1.BucketOperation$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.storagebatchoperations.v1.CancelJobRequest", "queryAllDeclaredConstructors": true, @@ -710,6 +737,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.storagebatchoperations.v1.GetJobRequest", "queryAllDeclaredConstructors": true, @@ -755,6 +800,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.storagebatchoperations.v1.ListJobsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/MockStorageBatchOperationsImpl.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/MockStorageBatchOperationsImpl.java index a2ae83233e69..4fa4a90bd4d2 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/MockStorageBatchOperationsImpl.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/MockStorageBatchOperationsImpl.java @@ -160,4 +160,48 @@ public void cancelJob( Exception.class.getName()))); } } + + @Override + public void listBucketOperations( + ListBucketOperationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBucketOperationsResponse) { + requests.add(request); + responseObserver.onNext(((ListBucketOperationsResponse) 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 ListBucketOperations, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListBucketOperationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBucketOperation( + GetBucketOperationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BucketOperation) { + requests.add(request); + responseObserver.onNext(((BucketOperation) 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 GetBucketOperation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BucketOperation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClientHttpJsonTest.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClientHttpJsonTest.java index 62e16797d1ba..289360085809 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClientHttpJsonTest.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.cloud.storagebatchoperations.v1; +import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListLocationsPagedResponse; @@ -200,6 +201,7 @@ public void getJobTest() throws Exception { .setCounters(Counters.newBuilder().build()) .addAllErrorSummaries(new ArrayList()) .setDryRun(true) + .setIsMultiBucketJob(true) .build(); mockService.addResponse(expectedResponse); @@ -252,6 +254,7 @@ public void getJobTest2() throws Exception { .setCounters(Counters.newBuilder().build()) .addAllErrorSummaries(new ArrayList()) .setDryRun(true) + .setIsMultiBucketJob(true) .build(); mockService.addResponse(expectedResponse); @@ -304,6 +307,7 @@ public void createJobTest() throws Exception { .setCounters(Counters.newBuilder().build()) .addAllErrorSummaries(new ArrayList()) .setDryRun(true) + .setIsMultiBucketJob(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -365,6 +369,7 @@ public void createJobTest2() throws Exception { .setCounters(Counters.newBuilder().build()) .addAllErrorSummaries(new ArrayList()) .setDryRun(true) + .setIsMultiBucketJob(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -575,6 +580,214 @@ public void cancelJobExceptionTest2() throws Exception { } } + @Test + public void listBucketOperationsTest() throws Exception { + BucketOperation responsesElement = BucketOperation.newBuilder().build(); + ListBucketOperationsResponse expectedResponse = + ListBucketOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllBucketOperations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + ListBucketOperationsPagedResponse pagedListResponse = client.listBucketOperations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBucketOperationsList().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 listBucketOperationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + client.listBucketOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBucketOperationsTest2() throws Exception { + BucketOperation responsesElement = BucketOperation.newBuilder().build(); + ListBucketOperationsResponse expectedResponse = + ListBucketOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllBucketOperations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7113/locations/location-7113/jobs/job-7113"; + + ListBucketOperationsPagedResponse pagedListResponse = client.listBucketOperations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBucketOperationsList().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 listBucketOperationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7113/locations/location-7113/jobs/job-7113"; + client.listBucketOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBucketOperationTest() throws Exception { + BucketOperation expectedResponse = + BucketOperation.newBuilder() + .setName( + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]") + .toString()) + .setBucketName("bucketName1117008789") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setCounters(Counters.newBuilder().build()) + .addAllErrorSummaries(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + BucketOperationName name = + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]"); + + BucketOperation actualResponse = client.getBucketOperation(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 getBucketOperationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BucketOperationName name = + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]"); + client.getBucketOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBucketOperationTest2() throws Exception { + BucketOperation expectedResponse = + BucketOperation.newBuilder() + .setName( + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]") + .toString()) + .setBucketName("bucketName1117008789") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setCounters(Counters.newBuilder().build()) + .addAllErrorSummaries(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1066/locations/location-1066/jobs/job-1066/bucketOperations/bucketOperation-1066"; + + BucketOperation actualResponse = client.getBucketOperation(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 getBucketOperationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1066/locations/location-1066/jobs/job-1066/bucketOperations/bucketOperation-1066"; + client.getBucketOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClientTest.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClientTest.java index 4d0ecee6e489..d2f662036298 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClientTest.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/test/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.storagebatchoperations.v1; +import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListBucketOperationsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListJobsPagedResponse; import static com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient.ListLocationsPagedResponse; @@ -195,6 +196,7 @@ public void getJobTest() throws Exception { .setCounters(Counters.newBuilder().build()) .addAllErrorSummaries(new ArrayList()) .setDryRun(true) + .setIsMultiBucketJob(true) .build(); mockStorageBatchOperations.addResponse(expectedResponse); @@ -241,6 +243,7 @@ public void getJobTest2() throws Exception { .setCounters(Counters.newBuilder().build()) .addAllErrorSummaries(new ArrayList()) .setDryRun(true) + .setIsMultiBucketJob(true) .build(); mockStorageBatchOperations.addResponse(expectedResponse); @@ -287,6 +290,7 @@ public void createJobTest() throws Exception { .setCounters(Counters.newBuilder().build()) .addAllErrorSummaries(new ArrayList()) .setDryRun(true) + .setIsMultiBucketJob(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -347,6 +351,7 @@ public void createJobTest2() throws Exception { .setCounters(Counters.newBuilder().build()) .addAllErrorSummaries(new ArrayList()) .setDryRun(true) + .setIsMultiBucketJob(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -532,6 +537,190 @@ public void cancelJobExceptionTest2() throws Exception { } } + @Test + public void listBucketOperationsTest() throws Exception { + BucketOperation responsesElement = BucketOperation.newBuilder().build(); + ListBucketOperationsResponse expectedResponse = + ListBucketOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllBucketOperations(Arrays.asList(responsesElement)) + .build(); + mockStorageBatchOperations.addResponse(expectedResponse); + + JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + ListBucketOperationsPagedResponse pagedListResponse = client.listBucketOperations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBucketOperationsList().get(0), resources.get(0)); + + List actualRequests = mockStorageBatchOperations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBucketOperationsRequest actualRequest = + ((ListBucketOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBucketOperationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockStorageBatchOperations.addException(exception); + + try { + JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + client.listBucketOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBucketOperationsTest2() throws Exception { + BucketOperation responsesElement = BucketOperation.newBuilder().build(); + ListBucketOperationsResponse expectedResponse = + ListBucketOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllBucketOperations(Arrays.asList(responsesElement)) + .build(); + mockStorageBatchOperations.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBucketOperationsPagedResponse pagedListResponse = client.listBucketOperations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBucketOperationsList().get(0), resources.get(0)); + + List actualRequests = mockStorageBatchOperations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBucketOperationsRequest actualRequest = + ((ListBucketOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBucketOperationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockStorageBatchOperations.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBucketOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBucketOperationTest() throws Exception { + BucketOperation expectedResponse = + BucketOperation.newBuilder() + .setName( + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]") + .toString()) + .setBucketName("bucketName1117008789") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setCounters(Counters.newBuilder().build()) + .addAllErrorSummaries(new ArrayList()) + .build(); + mockStorageBatchOperations.addResponse(expectedResponse); + + BucketOperationName name = + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]"); + + BucketOperation actualResponse = client.getBucketOperation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockStorageBatchOperations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBucketOperationRequest actualRequest = ((GetBucketOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBucketOperationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockStorageBatchOperations.addException(exception); + + try { + BucketOperationName name = + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]"); + client.getBucketOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBucketOperationTest2() throws Exception { + BucketOperation expectedResponse = + BucketOperation.newBuilder() + .setName( + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]") + .toString()) + .setBucketName("bucketName1117008789") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompleteTime(Timestamp.newBuilder().build()) + .setCounters(Counters.newBuilder().build()) + .addAllErrorSummaries(new ArrayList()) + .build(); + mockStorageBatchOperations.addResponse(expectedResponse); + + String name = "name3373707"; + + BucketOperation actualResponse = client.getBucketOperation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockStorageBatchOperations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBucketOperationRequest actualRequest = ((GetBucketOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBucketOperationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockStorageBatchOperations.addException(exception); + + try { + String name = "name3373707"; + client.getBucketOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml b/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml index 5b53c2b9668b..4cf32f7f8b47 100644 --- a/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml +++ b/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storagebatchoperations-v1 - 0.24.0 + 0.25.0 grpc-google-cloud-storagebatchoperations-v1 GRPC library for google-cloud-storagebatchoperations com.google.cloud google-cloud-storagebatchoperations-parent - 0.24.0 + 0.25.0 diff --git a/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsGrpc.java b/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsGrpc.java index 4e06891db777..2b39c9604024 100644 --- a/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsGrpc.java +++ b/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsGrpc.java @@ -265,6 +265,107 @@ private StorageBatchOperationsGrpc() {} return getCancelJobMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest, + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse> + getListBucketOperationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBucketOperations", + requestType = com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest.class, + responseType = com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest, + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse> + getListBucketOperationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest, + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse> + getListBucketOperationsMethod; + if ((getListBucketOperationsMethod = StorageBatchOperationsGrpc.getListBucketOperationsMethod) + == null) { + synchronized (StorageBatchOperationsGrpc.class) { + if ((getListBucketOperationsMethod = + StorageBatchOperationsGrpc.getListBucketOperationsMethod) + == null) { + StorageBatchOperationsGrpc.getListBucketOperationsMethod = + getListBucketOperationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBucketOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.storagebatchoperations.v1 + .ListBucketOperationsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new StorageBatchOperationsMethodDescriptorSupplier( + "ListBucketOperations")) + .build(); + } + } + } + return getListBucketOperationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest, + com.google.cloud.storagebatchoperations.v1.BucketOperation> + getGetBucketOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBucketOperation", + requestType = com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest.class, + responseType = com.google.cloud.storagebatchoperations.v1.BucketOperation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest, + com.google.cloud.storagebatchoperations.v1.BucketOperation> + getGetBucketOperationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest, + com.google.cloud.storagebatchoperations.v1.BucketOperation> + getGetBucketOperationMethod; + if ((getGetBucketOperationMethod = StorageBatchOperationsGrpc.getGetBucketOperationMethod) + == null) { + synchronized (StorageBatchOperationsGrpc.class) { + if ((getGetBucketOperationMethod = StorageBatchOperationsGrpc.getGetBucketOperationMethod) + == null) { + StorageBatchOperationsGrpc.getGetBucketOperationMethod = + getGetBucketOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucketOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.storagebatchoperations.v1.BucketOperation + .getDefaultInstance())) + .setSchemaDescriptor( + new StorageBatchOperationsMethodDescriptorSupplier("GetBucketOperation")) + .build(); + } + } + } + return getGetBucketOperationMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static StorageBatchOperationsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -398,6 +499,37 @@ default void cancelJob( responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); } + + /** + * + * + *
+     * Lists BucketOperations in a given project and job.
+     * 
+ */ + default void listBucketOperations( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBucketOperationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a BucketOperation.
+     * 
+ */ + default void getBucketOperation( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBucketOperationMethod(), responseObserver); + } } /** @@ -513,6 +645,41 @@ public void cancelJob( io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelJobMethod(), getCallOptions()), request, responseObserver); } + + /** + * + * + *
+     * Lists BucketOperations in a given project and job.
+     * 
+ */ + public void listBucketOperations( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBucketOperationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a BucketOperation.
+     * 
+ */ + public void getBucketOperation( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBucketOperationMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -607,6 +774,35 @@ public com.google.cloud.storagebatchoperations.v1.CancelJobResponse cancelJob( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCancelJobMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Lists BucketOperations in a given project and job.
+     * 
+ */ + public com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse + listBucketOperations( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBucketOperationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a BucketOperation.
+     * 
+ */ + public com.google.cloud.storagebatchoperations.v1.BucketOperation getBucketOperation( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetBucketOperationMethod(), getCallOptions(), request); + } } /** @@ -696,6 +892,33 @@ public com.google.cloud.storagebatchoperations.v1.CancelJobResponse cancelJob( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelJobMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Lists BucketOperations in a given project and job.
+     * 
+ */ + public com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse + listBucketOperations( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBucketOperationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a BucketOperation.
+     * 
+ */ + public com.google.cloud.storagebatchoperations.v1.BucketOperation getBucketOperation( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBucketOperationMethod(), getCallOptions(), request); + } } /** @@ -789,6 +1012,36 @@ public com.google.common.util.concurrent.ListenableFuture + * Lists BucketOperations in a given project and job. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse> + listBucketOperations( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBucketOperationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a BucketOperation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.storagebatchoperations.v1.BucketOperation> + getBucketOperation( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBucketOperationMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_JOBS = 0; @@ -796,6 +1049,8 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -844,6 +1099,20 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.storagebatchoperations.v1.CancelJobResponse>) responseObserver); break; + case METHODID_LIST_BUCKET_OPERATIONS: + serviceImpl.listBucketOperations( + (com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse>) + responseObserver); + break; + case METHODID_GET_BUCKET_OPERATION: + serviceImpl.getBucketOperation( + (com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.storagebatchoperations.v1.BucketOperation>) + responseObserver); + break; default: throw new AssertionError(); } @@ -894,6 +1163,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.storagebatchoperations.v1.CancelJobRequest, com.google.cloud.storagebatchoperations.v1.CancelJobResponse>( service, METHODID_CANCEL_JOB))) + .addMethod( + getListBucketOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest, + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse>( + service, METHODID_LIST_BUCKET_OPERATIONS))) + .addMethod( + getGetBucketOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest, + com.google.cloud.storagebatchoperations.v1.BucketOperation>( + service, METHODID_GET_BUCKET_OPERATION))) .build(); } @@ -950,6 +1233,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateJobMethod()) .addMethod(getDeleteJobMethod()) .addMethod(getCancelJobMethod()) + .addMethod(getListBucketOperationsMethod()) + .addMethod(getGetBucketOperationMethod()) .build(); } } diff --git a/java-storagebatchoperations/pom.xml b/java-storagebatchoperations/pom.xml index f03edba65eeb..dcdc703ddfc5 100644 --- a/java-storagebatchoperations/pom.xml +++ b/java-storagebatchoperations/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storagebatchoperations-parent pom - 0.24.0 + 0.25.0 Google Storage Batch Operations API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-storagebatchoperations - 0.24.0 + 0.25.0 com.google.api.grpc grpc-google-cloud-storagebatchoperations-v1 - 0.24.0 + 0.25.0 com.google.api.grpc proto-google-cloud-storagebatchoperations-v1 - 0.24.0 + 0.25.0
diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml index 703dea93c3ef..6e71af4b1bbd 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storagebatchoperations-v1 - 0.24.0 + 0.25.0 proto-google-cloud-storagebatchoperations-v1 Proto library for google-cloud-storagebatchoperations com.google.cloud google-cloud-storagebatchoperations-parent - 0.24.0 + 0.25.0 diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperation.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperation.java new file mode 100644 index 000000000000..b2406bc88db1 --- /dev/null +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperation.java @@ -0,0 +1,5073 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.storagebatchoperations.v1; + +/** + * + * + *
+ * BucketOperation represents a bucket-level breakdown of a Job.
+ * 
+ * + * Protobuf type {@code google.cloud.storagebatchoperations.v1.BucketOperation} + */ +@com.google.protobuf.Generated +public final class BucketOperation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.storagebatchoperations.v1.BucketOperation) + BucketOperationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BucketOperation"); + } + + // Use BucketOperation.newBuilder() to construct. + private BucketOperation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BucketOperation() { + name_ = ""; + bucketName_ = ""; + errorSummaries_ = java.util.Collections.emptyList(); + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsTypesProto + .internal_static_google_cloud_storagebatchoperations_v1_BucketOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsTypesProto + .internal_static_google_cloud_storagebatchoperations_v1_BucketOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.storagebatchoperations.v1.BucketOperation.class, + com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder.class); + } + + /** + * + * + *
+   * Describes state of the BucketOperation.
+   * 
+ * + * Protobuf enum {@code google.cloud.storagebatchoperations.v1.BucketOperation.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Created but not yet started.
+     * 
+ * + * QUEUED = 1; + */ + QUEUED(1), + /** + * + * + *
+     * In progress.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * Completed successfully.
+     * 
+ * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
+     * Cancelled by the user.
+     * 
+ * + * CANCELED = 4; + */ + CANCELED(4), + /** + * + * + *
+     * Terminated due to an unrecoverable failure.
+     * 
+ * + * FAILED = 5; + */ + FAILED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Created but not yet started.
+     * 
+ * + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + + /** + * + * + *
+     * In progress.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + + /** + * + * + *
+     * Completed successfully.
+     * 
+ * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + /** + * + * + *
+     * Cancelled by the user.
+     * 
+ * + * CANCELED = 4; + */ + public static final int CANCELED_VALUE = 4; + + /** + * + * + *
+     * Terminated due to an unrecoverable failure.
+     * 
+ * + * FAILED = 5; + */ + public static final int FAILED_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 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 QUEUED; + case 2: + return RUNNING; + case 3: + return SUCCEEDED; + case 4: + return CANCELED; + case 5: + 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.storagebatchoperations.v1.BucketOperation.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.storagebatchoperations.v1.BucketOperation.State) + } + + private int bitField0_; + private int objectConfigurationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object objectConfiguration_; + + public enum ObjectConfigurationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PREFIX_LIST(3), + MANIFEST(4), + OBJECTCONFIGURATION_NOT_SET(0); + private final int value; + + private ObjectConfigurationCase(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 ObjectConfigurationCase valueOf(int value) { + return forNumber(value); + } + + public static ObjectConfigurationCase forNumber(int value) { + switch (value) { + case 3: + return PREFIX_LIST; + case 4: + return MANIFEST; + case 0: + return OBJECTCONFIGURATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ObjectConfigurationCase getObjectConfigurationCase() { + return ObjectConfigurationCase.forNumber(objectConfigurationCase_); + } + + private int transformationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object transformation_; + + public enum TransformationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PUT_OBJECT_HOLD(11), + DELETE_OBJECT(12), + PUT_METADATA(13), + REWRITE_OBJECT(14), + TRANSFORMATION_NOT_SET(0); + private final int value; + + private TransformationCase(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 TransformationCase valueOf(int value) { + return forNumber(value); + } + + public static TransformationCase forNumber(int value) { + switch (value) { + case 11: + return PUT_OBJECT_HOLD; + case 12: + return DELETE_OBJECT; + case 13: + return PUT_METADATA; + case 14: + return REWRITE_OBJECT; + case 0: + return TRANSFORMATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TransformationCase getTransformationCase() { + return TransformationCase.forNumber(transformationCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name of the BucketOperation. This is defined by
+   * the service. Format:
+   * projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
+   * 
+ * + * 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 BucketOperation. This is defined by
+   * the service. Format:
+   * projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
+   * 
+ * + * 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 BUCKET_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucketName_ = ""; + + /** + * + * + *
+   * The bucket name of the objects to be transformed in the BucketOperation.
+   * 
+ * + * string bucket_name = 2; + * + * @return The bucketName. + */ + @java.lang.Override + public java.lang.String getBucketName() { + java.lang.Object ref = bucketName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucketName_ = s; + return s; + } + } + + /** + * + * + *
+   * The bucket name of the objects to be transformed in the BucketOperation.
+   * 
+ * + * string bucket_name = 2; + * + * @return The bytes for bucketName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketNameBytes() { + java.lang.Object ref = bucketName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREFIX_LIST_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Specifies objects matching a prefix set.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + * + * @return Whether the prefixList field is set. + */ + @java.lang.Override + public boolean hasPrefixList() { + return objectConfigurationCase_ == 3; + } + + /** + * + * + *
+   * Specifies objects matching a prefix set.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + * + * @return The prefixList. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PrefixList getPrefixList() { + if (objectConfigurationCase_ == 3) { + return (com.google.cloud.storagebatchoperations.v1.PrefixList) objectConfiguration_; + } + return com.google.cloud.storagebatchoperations.v1.PrefixList.getDefaultInstance(); + } + + /** + * + * + *
+   * Specifies objects matching a prefix set.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PrefixListOrBuilder getPrefixListOrBuilder() { + if (objectConfigurationCase_ == 3) { + return (com.google.cloud.storagebatchoperations.v1.PrefixList) objectConfiguration_; + } + return com.google.cloud.storagebatchoperations.v1.PrefixList.getDefaultInstance(); + } + + public static final int MANIFEST_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Specifies objects in a manifest file.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + * + * @return Whether the manifest field is set. + */ + @java.lang.Override + public boolean hasManifest() { + return objectConfigurationCase_ == 4; + } + + /** + * + * + *
+   * Specifies objects in a manifest file.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + * + * @return The manifest. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.Manifest getManifest() { + if (objectConfigurationCase_ == 4) { + return (com.google.cloud.storagebatchoperations.v1.Manifest) objectConfiguration_; + } + return com.google.cloud.storagebatchoperations.v1.Manifest.getDefaultInstance(); + } + + /** + * + * + *
+   * Specifies objects in a manifest file.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ManifestOrBuilder getManifestOrBuilder() { + if (objectConfigurationCase_ == 4) { + return (com.google.cloud.storagebatchoperations.v1.Manifest) objectConfiguration_; + } + return com.google.cloud.storagebatchoperations.v1.Manifest.getDefaultInstance(); + } + + public static final int PUT_OBJECT_HOLD_FIELD_NUMBER = 11; + + /** + * + * + *
+   * Changes object hold status.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + * + * @return Whether the putObjectHold field is set. + */ + @java.lang.Override + public boolean hasPutObjectHold() { + return transformationCase_ == 11; + } + + /** + * + * + *
+   * Changes object hold status.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + * + * @return The putObjectHold. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PutObjectHold getPutObjectHold() { + if (transformationCase_ == 11) { + return (com.google.cloud.storagebatchoperations.v1.PutObjectHold) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.PutObjectHold.getDefaultInstance(); + } + + /** + * + * + *
+   * Changes object hold status.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PutObjectHoldOrBuilder + getPutObjectHoldOrBuilder() { + if (transformationCase_ == 11) { + return (com.google.cloud.storagebatchoperations.v1.PutObjectHold) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.PutObjectHold.getDefaultInstance(); + } + + public static final int DELETE_OBJECT_FIELD_NUMBER = 12; + + /** + * + * + *
+   * Delete objects.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + * + * @return Whether the deleteObject field is set. + */ + @java.lang.Override + public boolean hasDeleteObject() { + return transformationCase_ == 12; + } + + /** + * + * + *
+   * Delete objects.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + * + * @return The deleteObject. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.DeleteObject getDeleteObject() { + if (transformationCase_ == 12) { + return (com.google.cloud.storagebatchoperations.v1.DeleteObject) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.DeleteObject.getDefaultInstance(); + } + + /** + * + * + *
+   * Delete objects.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.DeleteObjectOrBuilder + getDeleteObjectOrBuilder() { + if (transformationCase_ == 12) { + return (com.google.cloud.storagebatchoperations.v1.DeleteObject) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.DeleteObject.getDefaultInstance(); + } + + public static final int PUT_METADATA_FIELD_NUMBER = 13; + + /** + * + * + *
+   * Updates object metadata. Allows updating fixed-key and custom metadata
+   * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+   * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + * + * @return Whether the putMetadata field is set. + */ + @java.lang.Override + public boolean hasPutMetadata() { + return transformationCase_ == 13; + } + + /** + * + * + *
+   * Updates object metadata. Allows updating fixed-key and custom metadata
+   * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+   * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + * + * @return The putMetadata. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PutMetadata getPutMetadata() { + if (transformationCase_ == 13) { + return (com.google.cloud.storagebatchoperations.v1.PutMetadata) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.PutMetadata.getDefaultInstance(); + } + + /** + * + * + *
+   * Updates object metadata. Allows updating fixed-key and custom metadata
+   * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+   * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PutMetadataOrBuilder getPutMetadataOrBuilder() { + if (transformationCase_ == 13) { + return (com.google.cloud.storagebatchoperations.v1.PutMetadata) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.PutMetadata.getDefaultInstance(); + } + + public static final int REWRITE_OBJECT_FIELD_NUMBER = 14; + + /** + * + * + *
+   * Rewrite the object and updates metadata like KMS key.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + * + * @return Whether the rewriteObject field is set. + */ + @java.lang.Override + public boolean hasRewriteObject() { + return transformationCase_ == 14; + } + + /** + * + * + *
+   * Rewrite the object and updates metadata like KMS key.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + * + * @return The rewriteObject. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.RewriteObject getRewriteObject() { + if (transformationCase_ == 14) { + return (com.google.cloud.storagebatchoperations.v1.RewriteObject) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.RewriteObject.getDefaultInstance(); + } + + /** + * + * + *
+   * Rewrite the object and updates metadata like KMS key.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.RewriteObjectOrBuilder + getRewriteObjectOrBuilder() { + if (transformationCase_ == 14) { + return (com.google.cloud.storagebatchoperations.v1.RewriteObject) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.RewriteObject.getDefaultInstance(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The time that the BucketOperation 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 time that the BucketOperation 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 time that the BucketOperation 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 START_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Output only. The time that the BucketOperation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The time that the BucketOperation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.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 time that the BucketOperation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.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 COMPLETE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp completeTime_; + + /** + * + * + *
+   * Output only. The time that the BucketOperation was completed.
+   * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + @java.lang.Override + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The time that the BucketOperation was completed.
+   * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompleteTime() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + /** + * + * + *
+   * Output only. The time that the BucketOperation was completed.
+   * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + public static final int COUNTERS_FIELD_NUMBER = 8; + private com.google.cloud.storagebatchoperations.v1.Counters counters_; + + /** + * + * + *
+   * Output only. Information about the progress of the bucket operation.
+   * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the counters field is set. + */ + @java.lang.Override + public boolean hasCounters() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Information about the progress of the bucket operation.
+   * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The counters. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.Counters getCounters() { + return counters_ == null + ? com.google.cloud.storagebatchoperations.v1.Counters.getDefaultInstance() + : counters_; + } + + /** + * + * + *
+   * Output only. Information about the progress of the bucket operation.
+   * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.CountersOrBuilder getCountersOrBuilder() { + return counters_ == null + ? com.google.cloud.storagebatchoperations.v1.Counters.getDefaultInstance() + : counters_; + } + + public static final int ERROR_SUMMARIES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List errorSummaries_; + + /** + * + * + *
+   * Output only. Summarizes errors encountered with sample error log entries.
+   * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getErrorSummariesList() { + return errorSummaries_; + } + + /** + * + * + *
+   * Output only. Summarizes errors encountered with sample error log entries.
+   * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getErrorSummariesOrBuilderList() { + return errorSummaries_; + } + + /** + * + * + *
+   * Output only. Summarizes errors encountered with sample error log entries.
+   * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorSummariesCount() { + return errorSummaries_.size(); + } + + /** + * + * + *
+   * Output only. Summarizes errors encountered with sample error log entries.
+   * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ErrorSummary getErrorSummaries(int index) { + return errorSummaries_.get(index); + } + + /** + * + * + *
+   * Output only. Summarizes errors encountered with sample error log entries.
+   * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ErrorSummaryOrBuilder + getErrorSummariesOrBuilder(int index) { + return errorSummaries_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 10; + private int state_ = 0; + + /** + * + * + *
+   * Output only. State of the BucketOperation.
+   * 
+ * + * + * .google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. State of the BucketOperation.
+   * 
+ * + * + * .google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.BucketOperation.State getState() { + com.google.cloud.storagebatchoperations.v1.BucketOperation.State result = + com.google.cloud.storagebatchoperations.v1.BucketOperation.State.forNumber(state_); + return result == null + ? com.google.cloud.storagebatchoperations.v1.BucketOperation.State.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(bucketName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, bucketName_); + } + if (objectConfigurationCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.storagebatchoperations.v1.PrefixList) objectConfiguration_); + } + if (objectConfigurationCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.storagebatchoperations.v1.Manifest) objectConfiguration_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getCompleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getCounters()); + } + for (int i = 0; i < errorSummaries_.size(); i++) { + output.writeMessage(9, errorSummaries_.get(i)); + } + if (state_ + != com.google.cloud.storagebatchoperations.v1.BucketOperation.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, state_); + } + if (transformationCase_ == 11) { + output.writeMessage( + 11, (com.google.cloud.storagebatchoperations.v1.PutObjectHold) transformation_); + } + if (transformationCase_ == 12) { + output.writeMessage( + 12, (com.google.cloud.storagebatchoperations.v1.DeleteObject) transformation_); + } + if (transformationCase_ == 13) { + output.writeMessage( + 13, (com.google.cloud.storagebatchoperations.v1.PutMetadata) transformation_); + } + if (transformationCase_ == 14) { + output.writeMessage( + 14, (com.google.cloud.storagebatchoperations.v1.RewriteObject) transformation_); + } + 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(bucketName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, bucketName_); + } + if (objectConfigurationCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.storagebatchoperations.v1.PrefixList) objectConfiguration_); + } + if (objectConfigurationCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.storagebatchoperations.v1.Manifest) objectConfiguration_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCompleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCounters()); + } + for (int i = 0; i < errorSummaries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, errorSummaries_.get(i)); + } + if (state_ + != com.google.cloud.storagebatchoperations.v1.BucketOperation.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + } + if (transformationCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.storagebatchoperations.v1.PutObjectHold) transformation_); + } + if (transformationCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.storagebatchoperations.v1.DeleteObject) transformation_); + } + if (transformationCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.storagebatchoperations.v1.PutMetadata) transformation_); + } + if (transformationCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.storagebatchoperations.v1.RewriteObject) transformation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.storagebatchoperations.v1.BucketOperation)) { + return super.equals(obj); + } + com.google.cloud.storagebatchoperations.v1.BucketOperation other = + (com.google.cloud.storagebatchoperations.v1.BucketOperation) obj; + + if (!getName().equals(other.getName())) return false; + if (!getBucketName().equals(other.getBucketName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasCompleteTime() != other.hasCompleteTime()) return false; + if (hasCompleteTime()) { + if (!getCompleteTime().equals(other.getCompleteTime())) return false; + } + if (hasCounters() != other.hasCounters()) return false; + if (hasCounters()) { + if (!getCounters().equals(other.getCounters())) return false; + } + if (!getErrorSummariesList().equals(other.getErrorSummariesList())) return false; + if (state_ != other.state_) return false; + if (!getObjectConfigurationCase().equals(other.getObjectConfigurationCase())) return false; + switch (objectConfigurationCase_) { + case 3: + if (!getPrefixList().equals(other.getPrefixList())) return false; + break; + case 4: + if (!getManifest().equals(other.getManifest())) return false; + break; + case 0: + default: + } + if (!getTransformationCase().equals(other.getTransformationCase())) return false; + switch (transformationCase_) { + case 11: + if (!getPutObjectHold().equals(other.getPutObjectHold())) return false; + break; + case 12: + if (!getDeleteObject().equals(other.getDeleteObject())) return false; + break; + case 13: + if (!getPutMetadata().equals(other.getPutMetadata())) return false; + break; + case 14: + if (!getRewriteObject().equals(other.getRewriteObject())) 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) + BUCKET_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBucketName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasCompleteTime()) { + hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompleteTime().hashCode(); + } + if (hasCounters()) { + hash = (37 * hash) + COUNTERS_FIELD_NUMBER; + hash = (53 * hash) + getCounters().hashCode(); + } + if (getErrorSummariesCount() > 0) { + hash = (37 * hash) + ERROR_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSummariesList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + switch (objectConfigurationCase_) { + case 3: + hash = (37 * hash) + PREFIX_LIST_FIELD_NUMBER; + hash = (53 * hash) + getPrefixList().hashCode(); + break; + case 4: + hash = (37 * hash) + MANIFEST_FIELD_NUMBER; + hash = (53 * hash) + getManifest().hashCode(); + break; + case 0: + default: + } + switch (transformationCase_) { + case 11: + hash = (37 * hash) + PUT_OBJECT_HOLD_FIELD_NUMBER; + hash = (53 * hash) + getPutObjectHold().hashCode(); + break; + case 12: + hash = (37 * hash) + DELETE_OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getDeleteObject().hashCode(); + break; + case 13: + hash = (37 * hash) + PUT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPutMetadata().hashCode(); + break; + case 14: + hash = (37 * hash) + REWRITE_OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getRewriteObject().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.storagebatchoperations.v1.BucketOperation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * BucketOperation represents a bucket-level breakdown of a Job.
+   * 
+ * + * Protobuf type {@code google.cloud.storagebatchoperations.v1.BucketOperation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.storagebatchoperations.v1.BucketOperation) + com.google.cloud.storagebatchoperations.v1.BucketOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsTypesProto + .internal_static_google_cloud_storagebatchoperations_v1_BucketOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsTypesProto + .internal_static_google_cloud_storagebatchoperations_v1_BucketOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.storagebatchoperations.v1.BucketOperation.class, + com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder.class); + } + + // Construct using com.google.cloud.storagebatchoperations.v1.BucketOperation.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(); + internalGetStartTimeFieldBuilder(); + internalGetCompleteTimeFieldBuilder(); + internalGetCountersFieldBuilder(); + internalGetErrorSummariesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + bucketName_ = ""; + if (prefixListBuilder_ != null) { + prefixListBuilder_.clear(); + } + if (manifestBuilder_ != null) { + manifestBuilder_.clear(); + } + if (putObjectHoldBuilder_ != null) { + putObjectHoldBuilder_.clear(); + } + if (deleteObjectBuilder_ != null) { + deleteObjectBuilder_.clear(); + } + if (putMetadataBuilder_ != null) { + putMetadataBuilder_.clear(); + } + if (rewriteObjectBuilder_ != null) { + rewriteObjectBuilder_.clear(); + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + counters_ = null; + if (countersBuilder_ != null) { + countersBuilder_.dispose(); + countersBuilder_ = null; + } + if (errorSummariesBuilder_ == null) { + errorSummaries_ = java.util.Collections.emptyList(); + } else { + errorSummaries_ = null; + errorSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + state_ = 0; + objectConfigurationCase_ = 0; + objectConfiguration_ = null; + transformationCase_ = 0; + transformation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsTypesProto + .internal_static_google_cloud_storagebatchoperations_v1_BucketOperation_descriptor; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.BucketOperation getDefaultInstanceForType() { + return com.google.cloud.storagebatchoperations.v1.BucketOperation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.BucketOperation build() { + com.google.cloud.storagebatchoperations.v1.BucketOperation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.BucketOperation buildPartial() { + com.google.cloud.storagebatchoperations.v1.BucketOperation result = + new com.google.cloud.storagebatchoperations.v1.BucketOperation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.storagebatchoperations.v1.BucketOperation result) { + if (errorSummariesBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + errorSummaries_ = java.util.Collections.unmodifiableList(errorSummaries_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.errorSummaries_ = errorSummaries_; + } else { + result.errorSummaries_ = errorSummariesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.storagebatchoperations.v1.BucketOperation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bucketName_ = bucketName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.completeTime_ = + completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.counters_ = countersBuilder_ == null ? counters_ : countersBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.storagebatchoperations.v1.BucketOperation result) { + result.objectConfigurationCase_ = objectConfigurationCase_; + result.objectConfiguration_ = this.objectConfiguration_; + if (objectConfigurationCase_ == 3 && prefixListBuilder_ != null) { + result.objectConfiguration_ = prefixListBuilder_.build(); + } + if (objectConfigurationCase_ == 4 && manifestBuilder_ != null) { + result.objectConfiguration_ = manifestBuilder_.build(); + } + result.transformationCase_ = transformationCase_; + result.transformation_ = this.transformation_; + if (transformationCase_ == 11 && putObjectHoldBuilder_ != null) { + result.transformation_ = putObjectHoldBuilder_.build(); + } + if (transformationCase_ == 12 && deleteObjectBuilder_ != null) { + result.transformation_ = deleteObjectBuilder_.build(); + } + if (transformationCase_ == 13 && putMetadataBuilder_ != null) { + result.transformation_ = putMetadataBuilder_.build(); + } + if (transformationCase_ == 14 && rewriteObjectBuilder_ != null) { + result.transformation_ = rewriteObjectBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.storagebatchoperations.v1.BucketOperation) { + return mergeFrom((com.google.cloud.storagebatchoperations.v1.BucketOperation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.storagebatchoperations.v1.BucketOperation other) { + if (other == com.google.cloud.storagebatchoperations.v1.BucketOperation.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBucketName().isEmpty()) { + bucketName_ = other.bucketName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasCompleteTime()) { + mergeCompleteTime(other.getCompleteTime()); + } + if (other.hasCounters()) { + mergeCounters(other.getCounters()); + } + if (errorSummariesBuilder_ == null) { + if (!other.errorSummaries_.isEmpty()) { + if (errorSummaries_.isEmpty()) { + errorSummaries_ = other.errorSummaries_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureErrorSummariesIsMutable(); + errorSummaries_.addAll(other.errorSummaries_); + } + onChanged(); + } + } else { + if (!other.errorSummaries_.isEmpty()) { + if (errorSummariesBuilder_.isEmpty()) { + errorSummariesBuilder_.dispose(); + errorSummariesBuilder_ = null; + errorSummaries_ = other.errorSummaries_; + bitField0_ = (bitField0_ & ~0x00001000); + errorSummariesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetErrorSummariesFieldBuilder() + : null; + } else { + errorSummariesBuilder_.addAllMessages(other.errorSummaries_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getObjectConfigurationCase()) { + case PREFIX_LIST: + { + mergePrefixList(other.getPrefixList()); + break; + } + case MANIFEST: + { + mergeManifest(other.getManifest()); + break; + } + case OBJECTCONFIGURATION_NOT_SET: + { + break; + } + } + switch (other.getTransformationCase()) { + case PUT_OBJECT_HOLD: + { + mergePutObjectHold(other.getPutObjectHold()); + break; + } + case DELETE_OBJECT: + { + mergeDeleteObject(other.getDeleteObject()); + break; + } + case PUT_METADATA: + { + mergePutMetadata(other.getPutMetadata()); + break; + } + case REWRITE_OBJECT: + { + mergeRewriteObject(other.getRewriteObject()); + break; + } + case TRANSFORMATION_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_ |= 0x00000001; + break; + } // case 10 + case 18: + { + bucketName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetPrefixListFieldBuilder().getBuilder(), extensionRegistry); + objectConfigurationCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetManifestFieldBuilder().getBuilder(), extensionRegistry); + objectConfigurationCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCountersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 66 + case 74: + { + com.google.cloud.storagebatchoperations.v1.ErrorSummary m = + input.readMessage( + com.google.cloud.storagebatchoperations.v1.ErrorSummary.parser(), + extensionRegistry); + if (errorSummariesBuilder_ == null) { + ensureErrorSummariesIsMutable(); + errorSummaries_.add(m); + } else { + errorSummariesBuilder_.addMessage(m); + } + break; + } // case 74 + case 80: + { + state_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 80 + case 90: + { + input.readMessage( + internalGetPutObjectHoldFieldBuilder().getBuilder(), extensionRegistry); + transformationCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + internalGetDeleteObjectFieldBuilder().getBuilder(), extensionRegistry); + transformationCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + internalGetPutMetadataFieldBuilder().getBuilder(), extensionRegistry); + transformationCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage( + internalGetRewriteObjectFieldBuilder().getBuilder(), extensionRegistry); + transformationCase_ = 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 objectConfigurationCase_ = 0; + private java.lang.Object objectConfiguration_; + + public ObjectConfigurationCase getObjectConfigurationCase() { + return ObjectConfigurationCase.forNumber(objectConfigurationCase_); + } + + public Builder clearObjectConfiguration() { + objectConfigurationCase_ = 0; + objectConfiguration_ = null; + onChanged(); + return this; + } + + private int transformationCase_ = 0; + private java.lang.Object transformation_; + + public TransformationCase getTransformationCase() { + return TransformationCase.forNumber(transformationCase_); + } + + public Builder clearTransformation() { + transformationCase_ = 0; + transformation_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the BucketOperation. This is defined by
+     * the service. Format:
+     * projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
+     * 
+ * + * 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 BucketOperation. This is defined by
+     * the service. Format:
+     * projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
+     * 
+ * + * 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 BucketOperation. This is defined by
+     * the service. Format:
+     * projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
+     * 
+ * + * 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 BucketOperation. This is defined by
+     * the service. Format:
+     * projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
+     * 
+ * + * 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 BucketOperation. This is defined by
+     * the service. Format:
+     * projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
+     * 
+ * + * 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 bucketName_ = ""; + + /** + * + * + *
+     * The bucket name of the objects to be transformed in the BucketOperation.
+     * 
+ * + * string bucket_name = 2; + * + * @return The bucketName. + */ + public java.lang.String getBucketName() { + java.lang.Object ref = bucketName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucketName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The bucket name of the objects to be transformed in the BucketOperation.
+     * 
+ * + * string bucket_name = 2; + * + * @return The bytes for bucketName. + */ + public com.google.protobuf.ByteString getBucketNameBytes() { + java.lang.Object ref = bucketName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The bucket name of the objects to be transformed in the BucketOperation.
+     * 
+ * + * string bucket_name = 2; + * + * @param value The bucketName to set. + * @return This builder for chaining. + */ + public Builder setBucketName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucketName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The bucket name of the objects to be transformed in the BucketOperation.
+     * 
+ * + * string bucket_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearBucketName() { + bucketName_ = getDefaultInstance().getBucketName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The bucket name of the objects to be transformed in the BucketOperation.
+     * 
+ * + * string bucket_name = 2; + * + * @param value The bytes for bucketName to set. + * @return This builder for chaining. + */ + public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucketName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.PrefixList, + com.google.cloud.storagebatchoperations.v1.PrefixList.Builder, + com.google.cloud.storagebatchoperations.v1.PrefixListOrBuilder> + prefixListBuilder_; + + /** + * + * + *
+     * Specifies objects matching a prefix set.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + * + * @return Whether the prefixList field is set. + */ + @java.lang.Override + public boolean hasPrefixList() { + return objectConfigurationCase_ == 3; + } + + /** + * + * + *
+     * Specifies objects matching a prefix set.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + * + * @return The prefixList. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PrefixList getPrefixList() { + if (prefixListBuilder_ == null) { + if (objectConfigurationCase_ == 3) { + return (com.google.cloud.storagebatchoperations.v1.PrefixList) objectConfiguration_; + } + return com.google.cloud.storagebatchoperations.v1.PrefixList.getDefaultInstance(); + } else { + if (objectConfigurationCase_ == 3) { + return prefixListBuilder_.getMessage(); + } + return com.google.cloud.storagebatchoperations.v1.PrefixList.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Specifies objects matching a prefix set.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + */ + public Builder setPrefixList(com.google.cloud.storagebatchoperations.v1.PrefixList value) { + if (prefixListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + objectConfiguration_ = value; + onChanged(); + } else { + prefixListBuilder_.setMessage(value); + } + objectConfigurationCase_ = 3; + return this; + } + + /** + * + * + *
+     * Specifies objects matching a prefix set.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + */ + public Builder setPrefixList( + com.google.cloud.storagebatchoperations.v1.PrefixList.Builder builderForValue) { + if (prefixListBuilder_ == null) { + objectConfiguration_ = builderForValue.build(); + onChanged(); + } else { + prefixListBuilder_.setMessage(builderForValue.build()); + } + objectConfigurationCase_ = 3; + return this; + } + + /** + * + * + *
+     * Specifies objects matching a prefix set.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + */ + public Builder mergePrefixList(com.google.cloud.storagebatchoperations.v1.PrefixList value) { + if (prefixListBuilder_ == null) { + if (objectConfigurationCase_ == 3 + && objectConfiguration_ + != com.google.cloud.storagebatchoperations.v1.PrefixList.getDefaultInstance()) { + objectConfiguration_ = + com.google.cloud.storagebatchoperations.v1.PrefixList.newBuilder( + (com.google.cloud.storagebatchoperations.v1.PrefixList) objectConfiguration_) + .mergeFrom(value) + .buildPartial(); + } else { + objectConfiguration_ = value; + } + onChanged(); + } else { + if (objectConfigurationCase_ == 3) { + prefixListBuilder_.mergeFrom(value); + } else { + prefixListBuilder_.setMessage(value); + } + } + objectConfigurationCase_ = 3; + return this; + } + + /** + * + * + *
+     * Specifies objects matching a prefix set.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + */ + public Builder clearPrefixList() { + if (prefixListBuilder_ == null) { + if (objectConfigurationCase_ == 3) { + objectConfigurationCase_ = 0; + objectConfiguration_ = null; + onChanged(); + } + } else { + if (objectConfigurationCase_ == 3) { + objectConfigurationCase_ = 0; + objectConfiguration_ = null; + } + prefixListBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Specifies objects matching a prefix set.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + */ + public com.google.cloud.storagebatchoperations.v1.PrefixList.Builder getPrefixListBuilder() { + return internalGetPrefixListFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Specifies objects matching a prefix set.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PrefixListOrBuilder getPrefixListOrBuilder() { + if ((objectConfigurationCase_ == 3) && (prefixListBuilder_ != null)) { + return prefixListBuilder_.getMessageOrBuilder(); + } else { + if (objectConfigurationCase_ == 3) { + return (com.google.cloud.storagebatchoperations.v1.PrefixList) objectConfiguration_; + } + return com.google.cloud.storagebatchoperations.v1.PrefixList.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Specifies objects matching a prefix set.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.PrefixList, + com.google.cloud.storagebatchoperations.v1.PrefixList.Builder, + com.google.cloud.storagebatchoperations.v1.PrefixListOrBuilder> + internalGetPrefixListFieldBuilder() { + if (prefixListBuilder_ == null) { + if (!(objectConfigurationCase_ == 3)) { + objectConfiguration_ = + com.google.cloud.storagebatchoperations.v1.PrefixList.getDefaultInstance(); + } + prefixListBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.PrefixList, + com.google.cloud.storagebatchoperations.v1.PrefixList.Builder, + com.google.cloud.storagebatchoperations.v1.PrefixListOrBuilder>( + (com.google.cloud.storagebatchoperations.v1.PrefixList) objectConfiguration_, + getParentForChildren(), + isClean()); + objectConfiguration_ = null; + } + objectConfigurationCase_ = 3; + onChanged(); + return prefixListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.Manifest, + com.google.cloud.storagebatchoperations.v1.Manifest.Builder, + com.google.cloud.storagebatchoperations.v1.ManifestOrBuilder> + manifestBuilder_; + + /** + * + * + *
+     * Specifies objects in a manifest file.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + * + * @return Whether the manifest field is set. + */ + @java.lang.Override + public boolean hasManifest() { + return objectConfigurationCase_ == 4; + } + + /** + * + * + *
+     * Specifies objects in a manifest file.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + * + * @return The manifest. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.Manifest getManifest() { + if (manifestBuilder_ == null) { + if (objectConfigurationCase_ == 4) { + return (com.google.cloud.storagebatchoperations.v1.Manifest) objectConfiguration_; + } + return com.google.cloud.storagebatchoperations.v1.Manifest.getDefaultInstance(); + } else { + if (objectConfigurationCase_ == 4) { + return manifestBuilder_.getMessage(); + } + return com.google.cloud.storagebatchoperations.v1.Manifest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Specifies objects in a manifest file.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + */ + public Builder setManifest(com.google.cloud.storagebatchoperations.v1.Manifest value) { + if (manifestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + objectConfiguration_ = value; + onChanged(); + } else { + manifestBuilder_.setMessage(value); + } + objectConfigurationCase_ = 4; + return this; + } + + /** + * + * + *
+     * Specifies objects in a manifest file.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + */ + public Builder setManifest( + com.google.cloud.storagebatchoperations.v1.Manifest.Builder builderForValue) { + if (manifestBuilder_ == null) { + objectConfiguration_ = builderForValue.build(); + onChanged(); + } else { + manifestBuilder_.setMessage(builderForValue.build()); + } + objectConfigurationCase_ = 4; + return this; + } + + /** + * + * + *
+     * Specifies objects in a manifest file.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + */ + public Builder mergeManifest(com.google.cloud.storagebatchoperations.v1.Manifest value) { + if (manifestBuilder_ == null) { + if (objectConfigurationCase_ == 4 + && objectConfiguration_ + != com.google.cloud.storagebatchoperations.v1.Manifest.getDefaultInstance()) { + objectConfiguration_ = + com.google.cloud.storagebatchoperations.v1.Manifest.newBuilder( + (com.google.cloud.storagebatchoperations.v1.Manifest) objectConfiguration_) + .mergeFrom(value) + .buildPartial(); + } else { + objectConfiguration_ = value; + } + onChanged(); + } else { + if (objectConfigurationCase_ == 4) { + manifestBuilder_.mergeFrom(value); + } else { + manifestBuilder_.setMessage(value); + } + } + objectConfigurationCase_ = 4; + return this; + } + + /** + * + * + *
+     * Specifies objects in a manifest file.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + */ + public Builder clearManifest() { + if (manifestBuilder_ == null) { + if (objectConfigurationCase_ == 4) { + objectConfigurationCase_ = 0; + objectConfiguration_ = null; + onChanged(); + } + } else { + if (objectConfigurationCase_ == 4) { + objectConfigurationCase_ = 0; + objectConfiguration_ = null; + } + manifestBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Specifies objects in a manifest file.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + */ + public com.google.cloud.storagebatchoperations.v1.Manifest.Builder getManifestBuilder() { + return internalGetManifestFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Specifies objects in a manifest file.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ManifestOrBuilder getManifestOrBuilder() { + if ((objectConfigurationCase_ == 4) && (manifestBuilder_ != null)) { + return manifestBuilder_.getMessageOrBuilder(); + } else { + if (objectConfigurationCase_ == 4) { + return (com.google.cloud.storagebatchoperations.v1.Manifest) objectConfiguration_; + } + return com.google.cloud.storagebatchoperations.v1.Manifest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Specifies objects in a manifest file.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.Manifest, + com.google.cloud.storagebatchoperations.v1.Manifest.Builder, + com.google.cloud.storagebatchoperations.v1.ManifestOrBuilder> + internalGetManifestFieldBuilder() { + if (manifestBuilder_ == null) { + if (!(objectConfigurationCase_ == 4)) { + objectConfiguration_ = + com.google.cloud.storagebatchoperations.v1.Manifest.getDefaultInstance(); + } + manifestBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.Manifest, + com.google.cloud.storagebatchoperations.v1.Manifest.Builder, + com.google.cloud.storagebatchoperations.v1.ManifestOrBuilder>( + (com.google.cloud.storagebatchoperations.v1.Manifest) objectConfiguration_, + getParentForChildren(), + isClean()); + objectConfiguration_ = null; + } + objectConfigurationCase_ = 4; + onChanged(); + return manifestBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.PutObjectHold, + com.google.cloud.storagebatchoperations.v1.PutObjectHold.Builder, + com.google.cloud.storagebatchoperations.v1.PutObjectHoldOrBuilder> + putObjectHoldBuilder_; + + /** + * + * + *
+     * Changes object hold status.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + * + * @return Whether the putObjectHold field is set. + */ + @java.lang.Override + public boolean hasPutObjectHold() { + return transformationCase_ == 11; + } + + /** + * + * + *
+     * Changes object hold status.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + * + * @return The putObjectHold. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PutObjectHold getPutObjectHold() { + if (putObjectHoldBuilder_ == null) { + if (transformationCase_ == 11) { + return (com.google.cloud.storagebatchoperations.v1.PutObjectHold) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.PutObjectHold.getDefaultInstance(); + } else { + if (transformationCase_ == 11) { + return putObjectHoldBuilder_.getMessage(); + } + return com.google.cloud.storagebatchoperations.v1.PutObjectHold.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Changes object hold status.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + */ + public Builder setPutObjectHold( + com.google.cloud.storagebatchoperations.v1.PutObjectHold value) { + if (putObjectHoldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transformation_ = value; + onChanged(); + } else { + putObjectHoldBuilder_.setMessage(value); + } + transformationCase_ = 11; + return this; + } + + /** + * + * + *
+     * Changes object hold status.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + */ + public Builder setPutObjectHold( + com.google.cloud.storagebatchoperations.v1.PutObjectHold.Builder builderForValue) { + if (putObjectHoldBuilder_ == null) { + transformation_ = builderForValue.build(); + onChanged(); + } else { + putObjectHoldBuilder_.setMessage(builderForValue.build()); + } + transformationCase_ = 11; + return this; + } + + /** + * + * + *
+     * Changes object hold status.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + */ + public Builder mergePutObjectHold( + com.google.cloud.storagebatchoperations.v1.PutObjectHold value) { + if (putObjectHoldBuilder_ == null) { + if (transformationCase_ == 11 + && transformation_ + != com.google.cloud.storagebatchoperations.v1.PutObjectHold.getDefaultInstance()) { + transformation_ = + com.google.cloud.storagebatchoperations.v1.PutObjectHold.newBuilder( + (com.google.cloud.storagebatchoperations.v1.PutObjectHold) transformation_) + .mergeFrom(value) + .buildPartial(); + } else { + transformation_ = value; + } + onChanged(); + } else { + if (transformationCase_ == 11) { + putObjectHoldBuilder_.mergeFrom(value); + } else { + putObjectHoldBuilder_.setMessage(value); + } + } + transformationCase_ = 11; + return this; + } + + /** + * + * + *
+     * Changes object hold status.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + */ + public Builder clearPutObjectHold() { + if (putObjectHoldBuilder_ == null) { + if (transformationCase_ == 11) { + transformationCase_ = 0; + transformation_ = null; + onChanged(); + } + } else { + if (transformationCase_ == 11) { + transformationCase_ = 0; + transformation_ = null; + } + putObjectHoldBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Changes object hold status.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + */ + public com.google.cloud.storagebatchoperations.v1.PutObjectHold.Builder + getPutObjectHoldBuilder() { + return internalGetPutObjectHoldFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Changes object hold status.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PutObjectHoldOrBuilder + getPutObjectHoldOrBuilder() { + if ((transformationCase_ == 11) && (putObjectHoldBuilder_ != null)) { + return putObjectHoldBuilder_.getMessageOrBuilder(); + } else { + if (transformationCase_ == 11) { + return (com.google.cloud.storagebatchoperations.v1.PutObjectHold) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.PutObjectHold.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Changes object hold status.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.PutObjectHold, + com.google.cloud.storagebatchoperations.v1.PutObjectHold.Builder, + com.google.cloud.storagebatchoperations.v1.PutObjectHoldOrBuilder> + internalGetPutObjectHoldFieldBuilder() { + if (putObjectHoldBuilder_ == null) { + if (!(transformationCase_ == 11)) { + transformation_ = + com.google.cloud.storagebatchoperations.v1.PutObjectHold.getDefaultInstance(); + } + putObjectHoldBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.PutObjectHold, + com.google.cloud.storagebatchoperations.v1.PutObjectHold.Builder, + com.google.cloud.storagebatchoperations.v1.PutObjectHoldOrBuilder>( + (com.google.cloud.storagebatchoperations.v1.PutObjectHold) transformation_, + getParentForChildren(), + isClean()); + transformation_ = null; + } + transformationCase_ = 11; + onChanged(); + return putObjectHoldBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.DeleteObject, + com.google.cloud.storagebatchoperations.v1.DeleteObject.Builder, + com.google.cloud.storagebatchoperations.v1.DeleteObjectOrBuilder> + deleteObjectBuilder_; + + /** + * + * + *
+     * Delete objects.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + * + * @return Whether the deleteObject field is set. + */ + @java.lang.Override + public boolean hasDeleteObject() { + return transformationCase_ == 12; + } + + /** + * + * + *
+     * Delete objects.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + * + * @return The deleteObject. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.DeleteObject getDeleteObject() { + if (deleteObjectBuilder_ == null) { + if (transformationCase_ == 12) { + return (com.google.cloud.storagebatchoperations.v1.DeleteObject) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.DeleteObject.getDefaultInstance(); + } else { + if (transformationCase_ == 12) { + return deleteObjectBuilder_.getMessage(); + } + return com.google.cloud.storagebatchoperations.v1.DeleteObject.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Delete objects.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + */ + public Builder setDeleteObject(com.google.cloud.storagebatchoperations.v1.DeleteObject value) { + if (deleteObjectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transformation_ = value; + onChanged(); + } else { + deleteObjectBuilder_.setMessage(value); + } + transformationCase_ = 12; + return this; + } + + /** + * + * + *
+     * Delete objects.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + */ + public Builder setDeleteObject( + com.google.cloud.storagebatchoperations.v1.DeleteObject.Builder builderForValue) { + if (deleteObjectBuilder_ == null) { + transformation_ = builderForValue.build(); + onChanged(); + } else { + deleteObjectBuilder_.setMessage(builderForValue.build()); + } + transformationCase_ = 12; + return this; + } + + /** + * + * + *
+     * Delete objects.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + */ + public Builder mergeDeleteObject( + com.google.cloud.storagebatchoperations.v1.DeleteObject value) { + if (deleteObjectBuilder_ == null) { + if (transformationCase_ == 12 + && transformation_ + != com.google.cloud.storagebatchoperations.v1.DeleteObject.getDefaultInstance()) { + transformation_ = + com.google.cloud.storagebatchoperations.v1.DeleteObject.newBuilder( + (com.google.cloud.storagebatchoperations.v1.DeleteObject) transformation_) + .mergeFrom(value) + .buildPartial(); + } else { + transformation_ = value; + } + onChanged(); + } else { + if (transformationCase_ == 12) { + deleteObjectBuilder_.mergeFrom(value); + } else { + deleteObjectBuilder_.setMessage(value); + } + } + transformationCase_ = 12; + return this; + } + + /** + * + * + *
+     * Delete objects.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + */ + public Builder clearDeleteObject() { + if (deleteObjectBuilder_ == null) { + if (transformationCase_ == 12) { + transformationCase_ = 0; + transformation_ = null; + onChanged(); + } + } else { + if (transformationCase_ == 12) { + transformationCase_ = 0; + transformation_ = null; + } + deleteObjectBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Delete objects.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + */ + public com.google.cloud.storagebatchoperations.v1.DeleteObject.Builder + getDeleteObjectBuilder() { + return internalGetDeleteObjectFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Delete objects.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.DeleteObjectOrBuilder + getDeleteObjectOrBuilder() { + if ((transformationCase_ == 12) && (deleteObjectBuilder_ != null)) { + return deleteObjectBuilder_.getMessageOrBuilder(); + } else { + if (transformationCase_ == 12) { + return (com.google.cloud.storagebatchoperations.v1.DeleteObject) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.DeleteObject.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Delete objects.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.DeleteObject, + com.google.cloud.storagebatchoperations.v1.DeleteObject.Builder, + com.google.cloud.storagebatchoperations.v1.DeleteObjectOrBuilder> + internalGetDeleteObjectFieldBuilder() { + if (deleteObjectBuilder_ == null) { + if (!(transformationCase_ == 12)) { + transformation_ = + com.google.cloud.storagebatchoperations.v1.DeleteObject.getDefaultInstance(); + } + deleteObjectBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.DeleteObject, + com.google.cloud.storagebatchoperations.v1.DeleteObject.Builder, + com.google.cloud.storagebatchoperations.v1.DeleteObjectOrBuilder>( + (com.google.cloud.storagebatchoperations.v1.DeleteObject) transformation_, + getParentForChildren(), + isClean()); + transformation_ = null; + } + transformationCase_ = 12; + onChanged(); + return deleteObjectBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.PutMetadata, + com.google.cloud.storagebatchoperations.v1.PutMetadata.Builder, + com.google.cloud.storagebatchoperations.v1.PutMetadataOrBuilder> + putMetadataBuilder_; + + /** + * + * + *
+     * Updates object metadata. Allows updating fixed-key and custom metadata
+     * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+     * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + * + * @return Whether the putMetadata field is set. + */ + @java.lang.Override + public boolean hasPutMetadata() { + return transformationCase_ == 13; + } + + /** + * + * + *
+     * Updates object metadata. Allows updating fixed-key and custom metadata
+     * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+     * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + * + * @return The putMetadata. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PutMetadata getPutMetadata() { + if (putMetadataBuilder_ == null) { + if (transformationCase_ == 13) { + return (com.google.cloud.storagebatchoperations.v1.PutMetadata) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.PutMetadata.getDefaultInstance(); + } else { + if (transformationCase_ == 13) { + return putMetadataBuilder_.getMessage(); + } + return com.google.cloud.storagebatchoperations.v1.PutMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Updates object metadata. Allows updating fixed-key and custom metadata
+     * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+     * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + */ + public Builder setPutMetadata(com.google.cloud.storagebatchoperations.v1.PutMetadata value) { + if (putMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transformation_ = value; + onChanged(); + } else { + putMetadataBuilder_.setMessage(value); + } + transformationCase_ = 13; + return this; + } + + /** + * + * + *
+     * Updates object metadata. Allows updating fixed-key and custom metadata
+     * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+     * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + */ + public Builder setPutMetadata( + com.google.cloud.storagebatchoperations.v1.PutMetadata.Builder builderForValue) { + if (putMetadataBuilder_ == null) { + transformation_ = builderForValue.build(); + onChanged(); + } else { + putMetadataBuilder_.setMessage(builderForValue.build()); + } + transformationCase_ = 13; + return this; + } + + /** + * + * + *
+     * Updates object metadata. Allows updating fixed-key and custom metadata
+     * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+     * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + */ + public Builder mergePutMetadata(com.google.cloud.storagebatchoperations.v1.PutMetadata value) { + if (putMetadataBuilder_ == null) { + if (transformationCase_ == 13 + && transformation_ + != com.google.cloud.storagebatchoperations.v1.PutMetadata.getDefaultInstance()) { + transformation_ = + com.google.cloud.storagebatchoperations.v1.PutMetadata.newBuilder( + (com.google.cloud.storagebatchoperations.v1.PutMetadata) transformation_) + .mergeFrom(value) + .buildPartial(); + } else { + transformation_ = value; + } + onChanged(); + } else { + if (transformationCase_ == 13) { + putMetadataBuilder_.mergeFrom(value); + } else { + putMetadataBuilder_.setMessage(value); + } + } + transformationCase_ = 13; + return this; + } + + /** + * + * + *
+     * Updates object metadata. Allows updating fixed-key and custom metadata
+     * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+     * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + */ + public Builder clearPutMetadata() { + if (putMetadataBuilder_ == null) { + if (transformationCase_ == 13) { + transformationCase_ = 0; + transformation_ = null; + onChanged(); + } + } else { + if (transformationCase_ == 13) { + transformationCase_ = 0; + transformation_ = null; + } + putMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Updates object metadata. Allows updating fixed-key and custom metadata
+     * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+     * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + */ + public com.google.cloud.storagebatchoperations.v1.PutMetadata.Builder getPutMetadataBuilder() { + return internalGetPutMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Updates object metadata. Allows updating fixed-key and custom metadata
+     * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+     * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.PutMetadataOrBuilder + getPutMetadataOrBuilder() { + if ((transformationCase_ == 13) && (putMetadataBuilder_ != null)) { + return putMetadataBuilder_.getMessageOrBuilder(); + } else { + if (transformationCase_ == 13) { + return (com.google.cloud.storagebatchoperations.v1.PutMetadata) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.PutMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Updates object metadata. Allows updating fixed-key and custom metadata
+     * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+     * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.PutMetadata, + com.google.cloud.storagebatchoperations.v1.PutMetadata.Builder, + com.google.cloud.storagebatchoperations.v1.PutMetadataOrBuilder> + internalGetPutMetadataFieldBuilder() { + if (putMetadataBuilder_ == null) { + if (!(transformationCase_ == 13)) { + transformation_ = + com.google.cloud.storagebatchoperations.v1.PutMetadata.getDefaultInstance(); + } + putMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.PutMetadata, + com.google.cloud.storagebatchoperations.v1.PutMetadata.Builder, + com.google.cloud.storagebatchoperations.v1.PutMetadataOrBuilder>( + (com.google.cloud.storagebatchoperations.v1.PutMetadata) transformation_, + getParentForChildren(), + isClean()); + transformation_ = null; + } + transformationCase_ = 13; + onChanged(); + return putMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.RewriteObject, + com.google.cloud.storagebatchoperations.v1.RewriteObject.Builder, + com.google.cloud.storagebatchoperations.v1.RewriteObjectOrBuilder> + rewriteObjectBuilder_; + + /** + * + * + *
+     * Rewrite the object and updates metadata like KMS key.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + * + * @return Whether the rewriteObject field is set. + */ + @java.lang.Override + public boolean hasRewriteObject() { + return transformationCase_ == 14; + } + + /** + * + * + *
+     * Rewrite the object and updates metadata like KMS key.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + * + * @return The rewriteObject. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.RewriteObject getRewriteObject() { + if (rewriteObjectBuilder_ == null) { + if (transformationCase_ == 14) { + return (com.google.cloud.storagebatchoperations.v1.RewriteObject) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.RewriteObject.getDefaultInstance(); + } else { + if (transformationCase_ == 14) { + return rewriteObjectBuilder_.getMessage(); + } + return com.google.cloud.storagebatchoperations.v1.RewriteObject.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Rewrite the object and updates metadata like KMS key.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + */ + public Builder setRewriteObject( + com.google.cloud.storagebatchoperations.v1.RewriteObject value) { + if (rewriteObjectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transformation_ = value; + onChanged(); + } else { + rewriteObjectBuilder_.setMessage(value); + } + transformationCase_ = 14; + return this; + } + + /** + * + * + *
+     * Rewrite the object and updates metadata like KMS key.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + */ + public Builder setRewriteObject( + com.google.cloud.storagebatchoperations.v1.RewriteObject.Builder builderForValue) { + if (rewriteObjectBuilder_ == null) { + transformation_ = builderForValue.build(); + onChanged(); + } else { + rewriteObjectBuilder_.setMessage(builderForValue.build()); + } + transformationCase_ = 14; + return this; + } + + /** + * + * + *
+     * Rewrite the object and updates metadata like KMS key.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + */ + public Builder mergeRewriteObject( + com.google.cloud.storagebatchoperations.v1.RewriteObject value) { + if (rewriteObjectBuilder_ == null) { + if (transformationCase_ == 14 + && transformation_ + != com.google.cloud.storagebatchoperations.v1.RewriteObject.getDefaultInstance()) { + transformation_ = + com.google.cloud.storagebatchoperations.v1.RewriteObject.newBuilder( + (com.google.cloud.storagebatchoperations.v1.RewriteObject) transformation_) + .mergeFrom(value) + .buildPartial(); + } else { + transformation_ = value; + } + onChanged(); + } else { + if (transformationCase_ == 14) { + rewriteObjectBuilder_.mergeFrom(value); + } else { + rewriteObjectBuilder_.setMessage(value); + } + } + transformationCase_ = 14; + return this; + } + + /** + * + * + *
+     * Rewrite the object and updates metadata like KMS key.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + */ + public Builder clearRewriteObject() { + if (rewriteObjectBuilder_ == null) { + if (transformationCase_ == 14) { + transformationCase_ = 0; + transformation_ = null; + onChanged(); + } + } else { + if (transformationCase_ == 14) { + transformationCase_ = 0; + transformation_ = null; + } + rewriteObjectBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Rewrite the object and updates metadata like KMS key.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + */ + public com.google.cloud.storagebatchoperations.v1.RewriteObject.Builder + getRewriteObjectBuilder() { + return internalGetRewriteObjectFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Rewrite the object and updates metadata like KMS key.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.RewriteObjectOrBuilder + getRewriteObjectOrBuilder() { + if ((transformationCase_ == 14) && (rewriteObjectBuilder_ != null)) { + return rewriteObjectBuilder_.getMessageOrBuilder(); + } else { + if (transformationCase_ == 14) { + return (com.google.cloud.storagebatchoperations.v1.RewriteObject) transformation_; + } + return com.google.cloud.storagebatchoperations.v1.RewriteObject.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Rewrite the object and updates metadata like KMS key.
+     * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.RewriteObject, + com.google.cloud.storagebatchoperations.v1.RewriteObject.Builder, + com.google.cloud.storagebatchoperations.v1.RewriteObjectOrBuilder> + internalGetRewriteObjectFieldBuilder() { + if (rewriteObjectBuilder_ == null) { + if (!(transformationCase_ == 14)) { + transformation_ = + com.google.cloud.storagebatchoperations.v1.RewriteObject.getDefaultInstance(); + } + rewriteObjectBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.RewriteObject, + com.google.cloud.storagebatchoperations.v1.RewriteObject.Builder, + com.google.cloud.storagebatchoperations.v1.RewriteObjectOrBuilder>( + (com.google.cloud.storagebatchoperations.v1.RewriteObject) transformation_, + getParentForChildren(), + isClean()); + transformation_ = null; + } + transformationCase_ = 14; + onChanged(); + return rewriteObjectBuilder_; + } + + 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 that the BucketOperation 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_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation 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 time that the BucketOperation 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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation 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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation 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_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation 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 time that the BucketOperation 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 startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+     * Output only. The time that the BucketOperation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.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 time that the BucketOperation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000200); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.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 time that the BucketOperation was started.
+     * 
+ * + * .google.protobuf.Timestamp start_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> + 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 completeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; + + /** + * + * + *
+     * Output only. The time that the BucketOperation was completed.
+     * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was completed.
+     * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + public com.google.protobuf.Timestamp getCompleteTime() { + if (completeTimeBuilder_ == null) { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } else { + return completeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was completed.
+     * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completeTime_ = value; + } else { + completeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was completed.
+     * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completeTimeBuilder_ == null) { + completeTime_ = builderForValue.build(); + } else { + completeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was completed.
+     * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && completeTime_ != null + && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompleteTimeBuilder().mergeFrom(value); + } else { + completeTime_ = value; + } + } else { + completeTimeBuilder_.mergeFrom(value); + } + if (completeTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was completed.
+     * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCompleteTime() { + bitField0_ = (bitField0_ & ~0x00000400); + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was completed.
+     * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetCompleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was completed.
+     * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + if (completeTimeBuilder_ != null) { + return completeTimeBuilder_.getMessageOrBuilder(); + } else { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + } + + /** + * + * + *
+     * Output only. The time that the BucketOperation was completed.
+     * 
+ * + * + * .google.protobuf.Timestamp complete_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> + internalGetCompleteTimeFieldBuilder() { + if (completeTimeBuilder_ == null) { + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); + completeTime_ = null; + } + return completeTimeBuilder_; + } + + private com.google.cloud.storagebatchoperations.v1.Counters counters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.Counters, + com.google.cloud.storagebatchoperations.v1.Counters.Builder, + com.google.cloud.storagebatchoperations.v1.CountersOrBuilder> + countersBuilder_; + + /** + * + * + *
+     * Output only. Information about the progress of the bucket operation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the counters field is set. + */ + public boolean hasCounters() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. Information about the progress of the bucket operation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The counters. + */ + public com.google.cloud.storagebatchoperations.v1.Counters getCounters() { + if (countersBuilder_ == null) { + return counters_ == null + ? com.google.cloud.storagebatchoperations.v1.Counters.getDefaultInstance() + : counters_; + } else { + return countersBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Information about the progress of the bucket operation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCounters(com.google.cloud.storagebatchoperations.v1.Counters value) { + if (countersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + counters_ = value; + } else { + countersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the progress of the bucket operation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCounters( + com.google.cloud.storagebatchoperations.v1.Counters.Builder builderForValue) { + if (countersBuilder_ == null) { + counters_ = builderForValue.build(); + } else { + countersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the progress of the bucket operation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCounters(com.google.cloud.storagebatchoperations.v1.Counters value) { + if (countersBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && counters_ != null + && counters_ + != com.google.cloud.storagebatchoperations.v1.Counters.getDefaultInstance()) { + getCountersBuilder().mergeFrom(value); + } else { + counters_ = value; + } + } else { + countersBuilder_.mergeFrom(value); + } + if (counters_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Information about the progress of the bucket operation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCounters() { + bitField0_ = (bitField0_ & ~0x00000800); + counters_ = null; + if (countersBuilder_ != null) { + countersBuilder_.dispose(); + countersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the progress of the bucket operation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.storagebatchoperations.v1.Counters.Builder getCountersBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetCountersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Information about the progress of the bucket operation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.storagebatchoperations.v1.CountersOrBuilder getCountersOrBuilder() { + if (countersBuilder_ != null) { + return countersBuilder_.getMessageOrBuilder(); + } else { + return counters_ == null + ? com.google.cloud.storagebatchoperations.v1.Counters.getDefaultInstance() + : counters_; + } + } + + /** + * + * + *
+     * Output only. Information about the progress of the bucket operation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.Counters, + com.google.cloud.storagebatchoperations.v1.Counters.Builder, + com.google.cloud.storagebatchoperations.v1.CountersOrBuilder> + internalGetCountersFieldBuilder() { + if (countersBuilder_ == null) { + countersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.storagebatchoperations.v1.Counters, + com.google.cloud.storagebatchoperations.v1.Counters.Builder, + com.google.cloud.storagebatchoperations.v1.CountersOrBuilder>( + getCounters(), getParentForChildren(), isClean()); + counters_ = null; + } + return countersBuilder_; + } + + private java.util.List + errorSummaries_ = java.util.Collections.emptyList(); + + private void ensureErrorSummariesIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + errorSummaries_ = + new java.util.ArrayList( + errorSummaries_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.storagebatchoperations.v1.ErrorSummary, + com.google.cloud.storagebatchoperations.v1.ErrorSummary.Builder, + com.google.cloud.storagebatchoperations.v1.ErrorSummaryOrBuilder> + errorSummariesBuilder_; + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorSummariesList() { + if (errorSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSummaries_); + } else { + return errorSummariesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorSummariesCount() { + if (errorSummariesBuilder_ == null) { + return errorSummaries_.size(); + } else { + return errorSummariesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.storagebatchoperations.v1.ErrorSummary getErrorSummaries(int index) { + if (errorSummariesBuilder_ == null) { + return errorSummaries_.get(index); + } else { + return errorSummariesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrorSummaries( + int index, com.google.cloud.storagebatchoperations.v1.ErrorSummary value) { + if (errorSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSummariesIsMutable(); + errorSummaries_.set(index, value); + onChanged(); + } else { + errorSummariesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrorSummaries( + int index, + com.google.cloud.storagebatchoperations.v1.ErrorSummary.Builder builderForValue) { + if (errorSummariesBuilder_ == null) { + ensureErrorSummariesIsMutable(); + errorSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSummaries( + com.google.cloud.storagebatchoperations.v1.ErrorSummary value) { + if (errorSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSummariesIsMutable(); + errorSummaries_.add(value); + onChanged(); + } else { + errorSummariesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSummaries( + int index, com.google.cloud.storagebatchoperations.v1.ErrorSummary value) { + if (errorSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSummariesIsMutable(); + errorSummaries_.add(index, value); + onChanged(); + } else { + errorSummariesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSummaries( + com.google.cloud.storagebatchoperations.v1.ErrorSummary.Builder builderForValue) { + if (errorSummariesBuilder_ == null) { + ensureErrorSummariesIsMutable(); + errorSummaries_.add(builderForValue.build()); + onChanged(); + } else { + errorSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrorSummaries( + int index, + com.google.cloud.storagebatchoperations.v1.ErrorSummary.Builder builderForValue) { + if (errorSummariesBuilder_ == null) { + ensureErrorSummariesIsMutable(); + errorSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrorSummaries( + java.lang.Iterable + values) { + if (errorSummariesBuilder_ == null) { + ensureErrorSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSummaries_); + onChanged(); + } else { + errorSummariesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrorSummaries() { + if (errorSummariesBuilder_ == null) { + errorSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + errorSummariesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrorSummaries(int index) { + if (errorSummariesBuilder_ == null) { + ensureErrorSummariesIsMutable(); + errorSummaries_.remove(index); + onChanged(); + } else { + errorSummariesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.storagebatchoperations.v1.ErrorSummary.Builder getErrorSummariesBuilder( + int index) { + return internalGetErrorSummariesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.storagebatchoperations.v1.ErrorSummaryOrBuilder + getErrorSummariesOrBuilder(int index) { + if (errorSummariesBuilder_ == null) { + return errorSummaries_.get(index); + } else { + return errorSummariesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.storagebatchoperations.v1.ErrorSummaryOrBuilder> + getErrorSummariesOrBuilderList() { + if (errorSummariesBuilder_ != null) { + return errorSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSummaries_); + } + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.storagebatchoperations.v1.ErrorSummary.Builder + addErrorSummariesBuilder() { + return internalGetErrorSummariesFieldBuilder() + .addBuilder(com.google.cloud.storagebatchoperations.v1.ErrorSummary.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.storagebatchoperations.v1.ErrorSummary.Builder addErrorSummariesBuilder( + int index) { + return internalGetErrorSummariesFieldBuilder() + .addBuilder( + index, com.google.cloud.storagebatchoperations.v1.ErrorSummary.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Summarizes errors encountered with sample error log entries.
+     * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorSummariesBuilderList() { + return internalGetErrorSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.storagebatchoperations.v1.ErrorSummary, + com.google.cloud.storagebatchoperations.v1.ErrorSummary.Builder, + com.google.cloud.storagebatchoperations.v1.ErrorSummaryOrBuilder> + internalGetErrorSummariesFieldBuilder() { + if (errorSummariesBuilder_ == null) { + errorSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.storagebatchoperations.v1.ErrorSummary, + com.google.cloud.storagebatchoperations.v1.ErrorSummary.Builder, + com.google.cloud.storagebatchoperations.v1.ErrorSummaryOrBuilder>( + errorSummaries_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + errorSummaries_ = null; + } + return errorSummariesBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. State of the BucketOperation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. State of the BucketOperation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. State of the BucketOperation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.BucketOperation.State getState() { + com.google.cloud.storagebatchoperations.v1.BucketOperation.State result = + com.google.cloud.storagebatchoperations.v1.BucketOperation.State.forNumber(state_); + return result == null + ? com.google.cloud.storagebatchoperations.v1.BucketOperation.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. State of the BucketOperation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.storagebatchoperations.v1.BucketOperation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. State of the BucketOperation.
+     * 
+ * + * + * .google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00002000); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.storagebatchoperations.v1.BucketOperation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.storagebatchoperations.v1.BucketOperation) + private static final com.google.cloud.storagebatchoperations.v1.BucketOperation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.storagebatchoperations.v1.BucketOperation(); + } + + public static com.google.cloud.storagebatchoperations.v1.BucketOperation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BucketOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.BucketOperation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperationName.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperationName.java new file mode 100644 index 000000000000..c22fb663442d --- /dev/null +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperationName.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. + */ + +package com.google.cloud.storagebatchoperations.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 BucketOperationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_JOB_BUCKET_OPERATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/jobs/{job}/bucketOperations/{bucket_operation}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String job; + private final String bucketOperation; + + @Deprecated + protected BucketOperationName() { + project = null; + location = null; + job = null; + bucketOperation = null; + } + + private BucketOperationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + job = Preconditions.checkNotNull(builder.getJob()); + bucketOperation = Preconditions.checkNotNull(builder.getBucketOperation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public String getBucketOperation() { + return bucketOperation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BucketOperationName of( + String project, String location, String job, String bucketOperation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setJob(job) + .setBucketOperation(bucketOperation) + .build(); + } + + public static String format(String project, String location, String job, String bucketOperation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setJob(job) + .setBucketOperation(bucketOperation) + .build() + .toString(); + } + + public static BucketOperationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_JOB_BUCKET_OPERATION.validatedMatch( + formattedString, "BucketOperationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("job"), + matchMap.get("bucket_operation")); + } + + 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 (BucketOperationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_JOB_BUCKET_OPERATION.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 (job != null) { + fieldMapBuilder.put("job", job); + } + if (bucketOperation != null) { + fieldMapBuilder.put("bucket_operation", bucketOperation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_JOB_BUCKET_OPERATION.instantiate( + "project", project, "location", location, "job", job, "bucket_operation", bucketOperation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BucketOperationName that = ((BucketOperationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.job, that.job) + && Objects.equals(this.bucketOperation, that.bucketOperation); + } + 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(job); + h *= 1000003; + h ^= Objects.hashCode(bucketOperation); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/jobs/{job}/bucketOperations/{bucket_operation}. + */ + public static class Builder { + private String project; + private String location; + private String job; + private String bucketOperation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public String getBucketOperation() { + return bucketOperation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setJob(String job) { + this.job = job; + return this; + } + + public Builder setBucketOperation(String bucketOperation) { + this.bucketOperation = bucketOperation; + return this; + } + + private Builder(BucketOperationName bucketOperationName) { + this.project = bucketOperationName.project; + this.location = bucketOperationName.location; + this.job = bucketOperationName.job; + this.bucketOperation = bucketOperationName.bucketOperation; + } + + public BucketOperationName build() { + return new BucketOperationName(this); + } + } +} diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperationOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperationOrBuilder.java new file mode 100644 index 000000000000..f23f2fbbb31a --- /dev/null +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperationOrBuilder.java @@ -0,0 +1,581 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.storagebatchoperations.v1; + +@com.google.protobuf.Generated +public interface BucketOperationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.storagebatchoperations.v1.BucketOperation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the BucketOperation. This is defined by
+   * the service. Format:
+   * projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the BucketOperation. This is defined by
+   * the service. Format:
+   * projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The bucket name of the objects to be transformed in the BucketOperation.
+   * 
+ * + * string bucket_name = 2; + * + * @return The bucketName. + */ + java.lang.String getBucketName(); + + /** + * + * + *
+   * The bucket name of the objects to be transformed in the BucketOperation.
+   * 
+ * + * string bucket_name = 2; + * + * @return The bytes for bucketName. + */ + com.google.protobuf.ByteString getBucketNameBytes(); + + /** + * + * + *
+   * Specifies objects matching a prefix set.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + * + * @return Whether the prefixList field is set. + */ + boolean hasPrefixList(); + + /** + * + * + *
+   * Specifies objects matching a prefix set.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + * + * @return The prefixList. + */ + com.google.cloud.storagebatchoperations.v1.PrefixList getPrefixList(); + + /** + * + * + *
+   * Specifies objects matching a prefix set.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3; + */ + com.google.cloud.storagebatchoperations.v1.PrefixListOrBuilder getPrefixListOrBuilder(); + + /** + * + * + *
+   * Specifies objects in a manifest file.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + * + * @return Whether the manifest field is set. + */ + boolean hasManifest(); + + /** + * + * + *
+   * Specifies objects in a manifest file.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + * + * @return The manifest. + */ + com.google.cloud.storagebatchoperations.v1.Manifest getManifest(); + + /** + * + * + *
+   * Specifies objects in a manifest file.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.Manifest manifest = 4; + */ + com.google.cloud.storagebatchoperations.v1.ManifestOrBuilder getManifestOrBuilder(); + + /** + * + * + *
+   * Changes object hold status.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + * + * @return Whether the putObjectHold field is set. + */ + boolean hasPutObjectHold(); + + /** + * + * + *
+   * Changes object hold status.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + * + * @return The putObjectHold. + */ + com.google.cloud.storagebatchoperations.v1.PutObjectHold getPutObjectHold(); + + /** + * + * + *
+   * Changes object hold status.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11; + */ + com.google.cloud.storagebatchoperations.v1.PutObjectHoldOrBuilder getPutObjectHoldOrBuilder(); + + /** + * + * + *
+   * Delete objects.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + * + * @return Whether the deleteObject field is set. + */ + boolean hasDeleteObject(); + + /** + * + * + *
+   * Delete objects.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + * + * @return The deleteObject. + */ + com.google.cloud.storagebatchoperations.v1.DeleteObject getDeleteObject(); + + /** + * + * + *
+   * Delete objects.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12; + */ + com.google.cloud.storagebatchoperations.v1.DeleteObjectOrBuilder getDeleteObjectOrBuilder(); + + /** + * + * + *
+   * Updates object metadata. Allows updating fixed-key and custom metadata
+   * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+   * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + * + * @return Whether the putMetadata field is set. + */ + boolean hasPutMetadata(); + + /** + * + * + *
+   * Updates object metadata. Allows updating fixed-key and custom metadata
+   * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+   * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + * + * @return The putMetadata. + */ + com.google.cloud.storagebatchoperations.v1.PutMetadata getPutMetadata(); + + /** + * + * + *
+   * Updates object metadata. Allows updating fixed-key and custom metadata
+   * and fixed-key metadata i.e. Cache-Control, Content-Disposition,
+   * Content-Encoding, Content-Language, Content-Type, Custom-Time.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13; + */ + com.google.cloud.storagebatchoperations.v1.PutMetadataOrBuilder getPutMetadataOrBuilder(); + + /** + * + * + *
+   * Rewrite the object and updates metadata like KMS key.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + * + * @return Whether the rewriteObject field is set. + */ + boolean hasRewriteObject(); + + /** + * + * + *
+   * Rewrite the object and updates metadata like KMS key.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + * + * @return The rewriteObject. + */ + com.google.cloud.storagebatchoperations.v1.RewriteObject getRewriteObject(); + + /** + * + * + *
+   * Rewrite the object and updates metadata like KMS key.
+   * 
+ * + * .google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14; + */ + com.google.cloud.storagebatchoperations.v1.RewriteObjectOrBuilder getRewriteObjectOrBuilder(); + + /** + * + * + *
+   * Output only. The time that the BucketOperation 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 time that the BucketOperation 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 time that the BucketOperation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time that the BucketOperation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Output only. The time that the BucketOperation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Output only. The time that the BucketOperation was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time that the BucketOperation was completed.
+   * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + boolean hasCompleteTime(); + + /** + * + * + *
+   * Output only. The time that the BucketOperation was completed.
+   * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + com.google.protobuf.Timestamp getCompleteTime(); + + /** + * + * + *
+   * Output only. The time that the BucketOperation was completed.
+   * 
+ * + * + * .google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Information about the progress of the bucket operation.
+   * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the counters field is set. + */ + boolean hasCounters(); + + /** + * + * + *
+   * Output only. Information about the progress of the bucket operation.
+   * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The counters. + */ + com.google.cloud.storagebatchoperations.v1.Counters getCounters(); + + /** + * + * + *
+   * Output only. Information about the progress of the bucket operation.
+   * 
+ * + * + * .google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.storagebatchoperations.v1.CountersOrBuilder getCountersOrBuilder(); + + /** + * + * + *
+   * Output only. Summarizes errors encountered with sample error log entries.
+   * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorSummariesList(); + + /** + * + * + *
+   * Output only. Summarizes errors encountered with sample error log entries.
+   * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.storagebatchoperations.v1.ErrorSummary getErrorSummaries(int index); + + /** + * + * + *
+   * Output only. Summarizes errors encountered with sample error log entries.
+   * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorSummariesCount(); + + /** + * + * + *
+   * Output only. Summarizes errors encountered with sample error log entries.
+   * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getErrorSummariesOrBuilderList(); + + /** + * + * + *
+   * Output only. Summarizes errors encountered with sample error log entries.
+   * 
+ * + * + * repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.storagebatchoperations.v1.ErrorSummaryOrBuilder getErrorSummariesOrBuilder( + int index); + + /** + * + * + *
+   * Output only. State of the BucketOperation.
+   * 
+ * + * + * .google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. State of the BucketOperation.
+   * 
+ * + * + * .google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.storagebatchoperations.v1.BucketOperation.State getState(); + + com.google.cloud.storagebatchoperations.v1.BucketOperation.ObjectConfigurationCase + getObjectConfigurationCase(); + + com.google.cloud.storagebatchoperations.v1.BucketOperation.TransformationCase + getTransformationCase(); +} diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequest.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequest.java index bd224300cb48..be2353099c2a 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequest.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequest.java @@ -195,6 +195,28 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. If set to true, any child bucket operations of the job will also
+   * be deleted. Highly recommended to be set to true by all clients. Users
+   * cannot mutate bucket operations directly, so only the jobs.delete
+   * permission is required to delete a job (and its child bucket operations).
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -215,6 +237,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); } + if (force_ != false) { + output.writeBool(3, force_); + } getUnknownFields().writeTo(output); } @@ -230,6 +255,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -248,6 +276,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,6 +292,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -406,6 +437,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; requestId_ = ""; + force_ = false; return this; } @@ -448,6 +480,9 @@ private void buildPartial0(com.google.cloud.storagebatchoperations.v1.DeleteJobR if (((from_bitField0_ & 0x00000002) != 0)) { result.requestId_ = requestId_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } } @java.lang.Override @@ -473,6 +508,9 @@ public Builder mergeFrom(com.google.cloud.storagebatchoperations.v1.DeleteJobReq bitField0_ |= 0x00000002; onChanged(); } + if (other.getForce() != false) { + setForce(other.getForce()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -511,6 +549,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -797,6 +841,71 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private boolean force_; + + /** + * + * + *
+     * Optional. If set to true, any child bucket operations of the job will also
+     * be deleted. Highly recommended to be set to true by all clients. Users
+     * cannot mutate bucket operations directly, so only the jobs.delete
+     * permission is required to delete a job (and its child bucket operations).
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. If set to true, any child bucket operations of the job will also
+     * be deleted. Highly recommended to be set to true by all clients. Users
+     * cannot mutate bucket operations directly, so only the jobs.delete
+     * permission is required to delete a job (and its child bucket operations).
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, any child bucket operations of the job will also
+     * be deleted. Highly recommended to be set to true by all clients. Users
+     * cannot mutate bucket operations directly, so only the jobs.delete
+     * permission is required to delete a job (and its child bucket operations).
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.storagebatchoperations.v1.DeleteJobRequest) } diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequestOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequestOrBuilder.java index 2ebe72780435..8fe61cdb8337 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequestOrBuilder.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequestOrBuilder.java @@ -95,4 +95,20 @@ public interface DeleteJobRequestOrBuilder * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, any child bucket operations of the job will also
+   * be deleted. Highly recommended to be set to true by all clients. Users
+   * cannot mutate bucket operations directly, so only the jobs.delete
+   * permission is required to delete a job (and its child bucket operations).
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); } diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/GetBucketOperationRequest.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/GetBucketOperationRequest.java new file mode 100644 index 000000000000..9ad14902e2d4 --- /dev/null +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/GetBucketOperationRequest.java @@ -0,0 +1,636 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/storagebatchoperations/v1/storage_batch_operations.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.storagebatchoperations.v1; + +/** + * + * + *
+ * Message for getting a BucketOperation.
+ * 
+ * + * Protobuf type {@code google.cloud.storagebatchoperations.v1.GetBucketOperationRequest} + */ +@com.google.protobuf.Generated +public final class GetBucketOperationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.storagebatchoperations.v1.GetBucketOperationRequest) + GetBucketOperationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetBucketOperationRequest"); + } + + // Use GetBucketOperationRequest.newBuilder() to construct. + private GetBucketOperationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetBucketOperationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_GetBucketOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_GetBucketOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest.class, + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. `name` of the bucket operation to retrieve.
+   * Format:
+   * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.
+   * 
+ * + * + * 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. `name` of the bucket operation to retrieve.
+   * Format:
+   * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.
+   * 
+ * + * + * 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.storagebatchoperations.v1.GetBucketOperationRequest)) { + return super.equals(obj); + } + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest other = + (com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest) 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.storagebatchoperations.v1.GetBucketOperationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 getting a BucketOperation.
+   * 
+ * + * Protobuf type {@code google.cloud.storagebatchoperations.v1.GetBucketOperationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.storagebatchoperations.v1.GetBucketOperationRequest) + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_GetBucketOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_GetBucketOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest.class, + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest.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.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_GetBucketOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest + getDefaultInstanceForType() { + return com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest build() { + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest buildPartial() { + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest result = + new com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest 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.storagebatchoperations.v1.GetBucketOperationRequest) { + return mergeFrom( + (com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest other) { + if (other + == com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest + .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. `name` of the bucket operation to retrieve.
+     * Format:
+     * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.
+     * 
+ * + * + * 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. `name` of the bucket operation to retrieve.
+     * Format:
+     * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.
+     * 
+ * + * + * 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. `name` of the bucket operation to retrieve.
+     * Format:
+     * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.
+     * 
+ * + * + * 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. `name` of the bucket operation to retrieve.
+     * Format:
+     * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.
+     * 
+ * + * + * 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. `name` of the bucket operation to retrieve.
+     * Format:
+     * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.
+     * 
+ * + * + * 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.storagebatchoperations.v1.GetBucketOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.storagebatchoperations.v1.GetBucketOperationRequest) + private static final com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest(); + } + + public static com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBucketOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/GetBucketOperationRequestOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/GetBucketOperationRequestOrBuilder.java new file mode 100644 index 000000000000..cde648448e02 --- /dev/null +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/GetBucketOperationRequestOrBuilder.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/storagebatchoperations/v1/storage_batch_operations.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.storagebatchoperations.v1; + +@com.google.protobuf.Generated +public interface GetBucketOperationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.storagebatchoperations.v1.GetBucketOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. `name` of the bucket operation to retrieve.
+   * Format:
+   * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. `name` of the bucket operation to retrieve.
+   * Format:
+   * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/Job.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/Job.java index 71a9960c9ef5..7ab2d6ec28d0 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/Job.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/Job.java @@ -133,6 +133,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * FAILED = 4; */ FAILED(4), + /** + * + * + *
+     * Queued but not yet started.
+     * 
+ * + * QUEUED = 5; + */ + QUEUED(5), UNRECOGNIZED(-1), ; @@ -201,6 +211,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 4; + /** + * + * + *
+     * Queued but not yet started.
+     * 
+ * + * QUEUED = 5; + */ + public static final int QUEUED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -235,6 +256,8 @@ public static State forNumber(int value) { return CANCELED; case 4: return FAILED; + case 5: + return QUEUED; default: return null; } @@ -1228,6 +1251,26 @@ public boolean getDryRun() { return dryRun_; } + public static final int IS_MULTI_BUCKET_JOB_FIELD_NUMBER = 24; + private boolean isMultiBucketJob_ = false; + + /** + * + * + *
+   * Output only. If true, this Job operates on multiple buckets. Multibucket
+   * jobs are subject to different quota limits than single-bucket jobs.
+   * 
+ * + * bool is_multi_bucket_job = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isMultiBucketJob. + */ + @java.lang.Override + public boolean getIsMultiBucketJob() { + return isMultiBucketJob_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1292,6 +1335,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dryRun_ != false) { output.writeBool(22, dryRun_); } + if (isMultiBucketJob_ != false) { + output.writeBool(24, isMultiBucketJob_); + } getUnknownFields().writeTo(output); } @@ -1357,6 +1403,9 @@ public int getSerializedSize() { if (dryRun_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(22, dryRun_); } + if (isMultiBucketJob_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, isMultiBucketJob_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1398,6 +1447,7 @@ public boolean equals(final java.lang.Object obj) { if (!getErrorSummariesList().equals(other.getErrorSummariesList())) return false; if (state_ != other.state_) return false; if (getDryRun() != other.getDryRun()) return false; + if (getIsMultiBucketJob() != other.getIsMultiBucketJob()) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 19: @@ -1466,6 +1516,8 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + DRY_RUN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDryRun()); + hash = (37 * hash) + IS_MULTI_BUCKET_JOB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsMultiBucketJob()); switch (sourceCase_) { case 19: hash = (37 * hash) + BUCKET_LIST_FIELD_NUMBER; @@ -1699,6 +1751,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00001000); state_ = 0; dryRun_ = false; + isMultiBucketJob_ = false; sourceCase_ = 0; source_ = null; transformationCase_ = 0; @@ -1789,6 +1842,9 @@ private void buildPartial0(com.google.cloud.storagebatchoperations.v1.Job result if (((from_bitField0_ & 0x00004000) != 0)) { result.dryRun_ = dryRun_; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.isMultiBucketJob_ = isMultiBucketJob_; + } result.bitField0_ |= to_bitField0_; } @@ -1884,6 +1940,9 @@ public Builder mergeFrom(com.google.cloud.storagebatchoperations.v1.Job other) { if (other.getDryRun() != false) { setDryRun(other.getDryRun()); } + if (other.getIsMultiBucketJob() != false) { + setIsMultiBucketJob(other.getIsMultiBucketJob()); + } switch (other.getSourceCase()) { case BUCKET_LIST: { @@ -2055,6 +2114,12 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 176 + case 192: + { + isMultiBucketJob_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 192 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5136,6 +5201,65 @@ public Builder clearDryRun() { return this; } + private boolean isMultiBucketJob_; + + /** + * + * + *
+     * Output only. If true, this Job operates on multiple buckets. Multibucket
+     * jobs are subject to different quota limits than single-bucket jobs.
+     * 
+ * + * bool is_multi_bucket_job = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isMultiBucketJob. + */ + @java.lang.Override + public boolean getIsMultiBucketJob() { + return isMultiBucketJob_; + } + + /** + * + * + *
+     * Output only. If true, this Job operates on multiple buckets. Multibucket
+     * jobs are subject to different quota limits than single-bucket jobs.
+     * 
+ * + * bool is_multi_bucket_job = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isMultiBucketJob to set. + * @return This builder for chaining. + */ + public Builder setIsMultiBucketJob(boolean value) { + + isMultiBucketJob_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. If true, this Job operates on multiple buckets. Multibucket
+     * jobs are subject to different quota limits than single-bucket jobs.
+     * 
+ * + * bool is_multi_bucket_job = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsMultiBucketJob() { + bitField0_ = (bitField0_ & ~0x00008000); + isMultiBucketJob_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.storagebatchoperations.v1.Job) } diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/JobOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/JobOrBuilder.java index d18f6e10405c..30fec0541e40 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/JobOrBuilder.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/JobOrBuilder.java @@ -603,6 +603,20 @@ com.google.cloud.storagebatchoperations.v1.ErrorSummaryOrBuilder getErrorSummari */ boolean getDryRun(); + /** + * + * + *
+   * Output only. If true, this Job operates on multiple buckets. Multibucket
+   * jobs are subject to different quota limits than single-bucket jobs.
+   * 
+ * + * bool is_multi_bucket_job = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isMultiBucketJob. + */ + boolean getIsMultiBucketJob(); + com.google.cloud.storagebatchoperations.v1.Job.SourceCase getSourceCase(); com.google.cloud.storagebatchoperations.v1.Job.TransformationCase getTransformationCase(); diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsRequest.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsRequest.java new file mode 100644 index 000000000000..6b9a9a237fc8 --- /dev/null +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsRequest.java @@ -0,0 +1,1287 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/storagebatchoperations/v1/storage_batch_operations.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.storagebatchoperations.v1; + +/** + * + * + *
+ * Message for request to list BucketOperations
+ * 
+ * + * Protobuf type {@code google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest} + */ +@com.google.protobuf.Generated +public final class ListBucketOperationsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest) + ListBucketOperationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListBucketOperationsRequest"); + } + + // Use ListBucketOperationsRequest.newBuilder() to construct. + private ListBucketOperationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBucketOperationsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest.class, + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Format: projects/{project_id}/locations/global/jobs/{job_id}.
+   * 
+ * + * + * 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. Format: projects/{project_id}/locations/global/jobs/{job_id}.
+   * 
+ * + * + * 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 FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filters results as defined by https://google.aip.dev/160.
+   * 
+ * + * 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. Filters results as defined by https://google.aip.dev/160.
+   * 
+ * + * 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. The list page size. Default page size is 100.
+   * 
+ * + * 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. The list page token.
+   * 
+ * + * 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. The list page token.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Field to sort by. Supported fields are name, create_time.
+   * 
+ * + * 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. Supported fields are name, create_time.
+   * 
+ * + * 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 (!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_); + } + 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 (!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_); + } + 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.storagebatchoperations.v1.ListBucketOperationsRequest)) { + return super.equals(obj); + } + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest other = + (com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!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) + 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 = (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.storagebatchoperations.v1.ListBucketOperationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 request to list BucketOperations
+   * 
+ * + * Protobuf type {@code google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest) + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest.class, + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest.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_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest + getDefaultInstanceForType() { + return com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest build() { + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest buildPartial() { + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest result = + new com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + 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.storagebatchoperations.v1.ListBucketOperationsRequest) { + return mergeFrom( + (com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest other) { + if (other + == com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + 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(); + } + 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 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 + 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. Format: projects/{project_id}/locations/global/jobs/{job_id}.
+     * 
+ * + * + * 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. Format: projects/{project_id}/locations/global/jobs/{job_id}.
+     * 
+ * + * + * 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. Format: projects/{project_id}/locations/global/jobs/{job_id}.
+     * 
+ * + * + * 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. Format: projects/{project_id}/locations/global/jobs/{job_id}.
+     * 
+ * + * + * 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. Format: projects/{project_id}/locations/global/jobs/{job_id}.
+     * 
+ * + * + * 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 filter_ = ""; + + /** + * + * + *
+     * Optional. Filters results as defined by https://google.aip.dev/160.
+     * 
+ * + * 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. Filters results as defined by https://google.aip.dev/160.
+     * 
+ * + * 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. Filters results as defined by https://google.aip.dev/160.
+     * 
+ * + * 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. Filters results as defined by https://google.aip.dev/160.
+     * 
+ * + * 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. Filters results as defined by https://google.aip.dev/160.
+     * 
+ * + * 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. The list page size. Default page size is 100.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The list page size. Default page size is 100.
+     * 
+ * + * 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 list page size. Default page size is 100.
+     * 
+ * + * 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. The list page token.
+     * 
+ * + * 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. The list page token.
+     * 
+ * + * 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. The list page token.
+     * 
+ * + * 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. The list page token.
+     * 
+ * + * 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. The list page token.
+     * 
+ * + * 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; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Field to sort by. Supported fields are name, create_time.
+     * 
+ * + * 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. Supported fields are name, create_time.
+     * 
+ * + * 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. Supported fields are name, create_time.
+     * 
+ * + * 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. Supported fields are name, create_time.
+     * 
+ * + * 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. Supported fields are name, create_time.
+     * 
+ * + * 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.storagebatchoperations.v1.ListBucketOperationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest) + private static final com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest(); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBucketOperationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsRequestOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsRequestOrBuilder.java new file mode 100644 index 000000000000..13f44753dbf2 --- /dev/null +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/storagebatchoperations/v1/storage_batch_operations.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.storagebatchoperations.v1; + +@com.google.protobuf.Generated +public interface ListBucketOperationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: projects/{project_id}/locations/global/jobs/{job_id}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Format: projects/{project_id}/locations/global/jobs/{job_id}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Filters results as defined by https://google.aip.dev/160.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filters results as defined by https://google.aip.dev/160.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The list page size. Default page size is 100.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. The list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Field to sort by. Supported fields are name, create_time.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Field to sort by. Supported fields are name, create_time.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsResponse.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsResponse.java new file mode 100644 index 000000000000..01bd41d9333a --- /dev/null +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsResponse.java @@ -0,0 +1,1467 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/storagebatchoperations/v1/storage_batch_operations.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.storagebatchoperations.v1; + +/** + * + * + *
+ * Message for response to listing BucketOperations
+ * 
+ * + * Protobuf type {@code google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse} + */ +@com.google.protobuf.Generated +public final class ListBucketOperationsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse) + ListBucketOperationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListBucketOperationsResponse"); + } + + // Use ListBucketOperationsResponse.newBuilder() to construct. + private ListBucketOperationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBucketOperationsResponse() { + bucketOperations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse.class, + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse.Builder.class); + } + + public static final int BUCKET_OPERATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + bucketOperations_; + + /** + * + * + *
+   * A list of storage batch bucket operations.
+   * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + @java.lang.Override + public java.util.List + getBucketOperationsList() { + return bucketOperations_; + } + + /** + * + * + *
+   * A list of storage batch bucket operations.
+   * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.storagebatchoperations.v1.BucketOperationOrBuilder> + getBucketOperationsOrBuilderList() { + return bucketOperations_; + } + + /** + * + * + *
+   * A list of storage batch bucket operations.
+   * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + @java.lang.Override + public int getBucketOperationsCount() { + return bucketOperations_.size(); + } + + /** + * + * + *
+   * A list of storage batch bucket operations.
+   * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.BucketOperation getBucketOperations(int index) { + return bucketOperations_.get(index); + } + + /** + * + * + *
+   * A list of storage batch bucket operations.
+   * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.BucketOperationOrBuilder + getBucketOperationsOrBuilder(int index) { + return bucketOperations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a 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 identifying a 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 UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + 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 < bucketOperations_.size(); i++) { + output.writeMessage(1, bucketOperations_.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 < bucketOperations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bucketOperations_.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.storagebatchoperations.v1.ListBucketOperationsResponse)) { + return super.equals(obj); + } + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse other = + (com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse) obj; + + if (!getBucketOperationsList().equals(other.getBucketOperationsList())) 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 (getBucketOperationsCount() > 0) { + hash = (37 * hash) + BUCKET_OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getBucketOperationsList().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.storagebatchoperations.v1.ListBucketOperationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 response to listing BucketOperations
+   * 
+ * + * Protobuf type {@code google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse) + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse.class, + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bucketOperationsBuilder_ == null) { + bucketOperations_ = java.util.Collections.emptyList(); + } else { + bucketOperations_ = null; + bucketOperationsBuilder_.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.storagebatchoperations.v1.StorageBatchOperationsProto + .internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse + getDefaultInstanceForType() { + return com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse build() { + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse buildPartial() { + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse result = + new com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse result) { + if (bucketOperationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bucketOperations_ = java.util.Collections.unmodifiableList(bucketOperations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bucketOperations_ = bucketOperations_; + } else { + result.bucketOperations_ = bucketOperationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse 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.storagebatchoperations.v1.ListBucketOperationsResponse) { + return mergeFrom( + (com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse other) { + if (other + == com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse + .getDefaultInstance()) return this; + if (bucketOperationsBuilder_ == null) { + if (!other.bucketOperations_.isEmpty()) { + if (bucketOperations_.isEmpty()) { + bucketOperations_ = other.bucketOperations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBucketOperationsIsMutable(); + bucketOperations_.addAll(other.bucketOperations_); + } + onChanged(); + } + } else { + if (!other.bucketOperations_.isEmpty()) { + if (bucketOperationsBuilder_.isEmpty()) { + bucketOperationsBuilder_.dispose(); + bucketOperationsBuilder_ = null; + bucketOperations_ = other.bucketOperations_; + bitField0_ = (bitField0_ & ~0x00000001); + bucketOperationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBucketOperationsFieldBuilder() + : null; + } else { + bucketOperationsBuilder_.addAllMessages(other.bucketOperations_); + } + } + } + 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.storagebatchoperations.v1.BucketOperation m = + input.readMessage( + com.google.cloud.storagebatchoperations.v1.BucketOperation.parser(), + extensionRegistry); + if (bucketOperationsBuilder_ == null) { + ensureBucketOperationsIsMutable(); + bucketOperations_.add(m); + } else { + bucketOperationsBuilder_.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 + bucketOperations_ = java.util.Collections.emptyList(); + + private void ensureBucketOperationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bucketOperations_ = + new java.util.ArrayList( + bucketOperations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.storagebatchoperations.v1.BucketOperation, + com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder, + com.google.cloud.storagebatchoperations.v1.BucketOperationOrBuilder> + bucketOperationsBuilder_; + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public java.util.List + getBucketOperationsList() { + if (bucketOperationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bucketOperations_); + } else { + return bucketOperationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public int getBucketOperationsCount() { + if (bucketOperationsBuilder_ == null) { + return bucketOperations_.size(); + } else { + return bucketOperationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public com.google.cloud.storagebatchoperations.v1.BucketOperation getBucketOperations( + int index) { + if (bucketOperationsBuilder_ == null) { + return bucketOperations_.get(index); + } else { + return bucketOperationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public Builder setBucketOperations( + int index, com.google.cloud.storagebatchoperations.v1.BucketOperation value) { + if (bucketOperationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBucketOperationsIsMutable(); + bucketOperations_.set(index, value); + onChanged(); + } else { + bucketOperationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public Builder setBucketOperations( + int index, + com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder builderForValue) { + if (bucketOperationsBuilder_ == null) { + ensureBucketOperationsIsMutable(); + bucketOperations_.set(index, builderForValue.build()); + onChanged(); + } else { + bucketOperationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public Builder addBucketOperations( + com.google.cloud.storagebatchoperations.v1.BucketOperation value) { + if (bucketOperationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBucketOperationsIsMutable(); + bucketOperations_.add(value); + onChanged(); + } else { + bucketOperationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public Builder addBucketOperations( + int index, com.google.cloud.storagebatchoperations.v1.BucketOperation value) { + if (bucketOperationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBucketOperationsIsMutable(); + bucketOperations_.add(index, value); + onChanged(); + } else { + bucketOperationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public Builder addBucketOperations( + com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder builderForValue) { + if (bucketOperationsBuilder_ == null) { + ensureBucketOperationsIsMutable(); + bucketOperations_.add(builderForValue.build()); + onChanged(); + } else { + bucketOperationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public Builder addBucketOperations( + int index, + com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder builderForValue) { + if (bucketOperationsBuilder_ == null) { + ensureBucketOperationsIsMutable(); + bucketOperations_.add(index, builderForValue.build()); + onChanged(); + } else { + bucketOperationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public Builder addAllBucketOperations( + java.lang.Iterable + values) { + if (bucketOperationsBuilder_ == null) { + ensureBucketOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bucketOperations_); + onChanged(); + } else { + bucketOperationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public Builder clearBucketOperations() { + if (bucketOperationsBuilder_ == null) { + bucketOperations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bucketOperationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public Builder removeBucketOperations(int index) { + if (bucketOperationsBuilder_ == null) { + ensureBucketOperationsIsMutable(); + bucketOperations_.remove(index); + onChanged(); + } else { + bucketOperationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder + getBucketOperationsBuilder(int index) { + return internalGetBucketOperationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public com.google.cloud.storagebatchoperations.v1.BucketOperationOrBuilder + getBucketOperationsOrBuilder(int index) { + if (bucketOperationsBuilder_ == null) { + return bucketOperations_.get(index); + } else { + return bucketOperationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.storagebatchoperations.v1.BucketOperationOrBuilder> + getBucketOperationsOrBuilderList() { + if (bucketOperationsBuilder_ != null) { + return bucketOperationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bucketOperations_); + } + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder + addBucketOperationsBuilder() { + return internalGetBucketOperationsFieldBuilder() + .addBuilder( + com.google.cloud.storagebatchoperations.v1.BucketOperation.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder + addBucketOperationsBuilder(int index) { + return internalGetBucketOperationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.storagebatchoperations.v1.BucketOperation.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of storage batch bucket operations.
+     * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + public java.util.List + getBucketOperationsBuilderList() { + return internalGetBucketOperationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.storagebatchoperations.v1.BucketOperation, + com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder, + com.google.cloud.storagebatchoperations.v1.BucketOperationOrBuilder> + internalGetBucketOperationsFieldBuilder() { + if (bucketOperationsBuilder_ == null) { + bucketOperationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.storagebatchoperations.v1.BucketOperation, + com.google.cloud.storagebatchoperations.v1.BucketOperation.Builder, + com.google.cloud.storagebatchoperations.v1.BucketOperationOrBuilder>( + bucketOperations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + bucketOperations_ = null; + } + return bucketOperationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a 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 identifying a 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 identifying a 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 identifying a 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 identifying a 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 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; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse) + private static final com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse(); + } + + public static com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBucketOperationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsResponseOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsResponseOrBuilder.java new file mode 100644 index 000000000000..87874b1f3a6a --- /dev/null +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ListBucketOperationsResponseOrBuilder.java @@ -0,0 +1,171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/storagebatchoperations/v1/storage_batch_operations.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.storagebatchoperations.v1; + +@com.google.protobuf.Generated +public interface ListBucketOperationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of storage batch bucket operations.
+   * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + java.util.List + getBucketOperationsList(); + + /** + * + * + *
+   * A list of storage batch bucket operations.
+   * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + com.google.cloud.storagebatchoperations.v1.BucketOperation getBucketOperations(int index); + + /** + * + * + *
+   * A list of storage batch bucket operations.
+   * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + int getBucketOperationsCount(); + + /** + * + * + *
+   * A list of storage batch bucket operations.
+   * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + java.util.List + getBucketOperationsOrBuilderList(); + + /** + * + * + *
+   * A list of storage batch bucket operations.
+   * 
+ * + * repeated .google.cloud.storagebatchoperations.v1.BucketOperation bucket_operations = 1; + * + */ + com.google.cloud.storagebatchoperations.v1.BucketOperationOrBuilder getBucketOperationsOrBuilder( + int index); + + /** + * + * + *
+   * A token identifying a page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsProto.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsProto.java index 7c2521dc1620..780d8a06508c 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsProto.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsProto.java @@ -68,6 +68,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_storagebatchoperations_v1_CancelJobResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_storagebatchoperations_v1_CancelJobResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_storagebatchoperations_v1_GetBucketOperationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_storagebatchoperations_v1_GetBucketOperationRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_storagebatchoperations_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -114,12 +126,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020CancelJobRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")storagebatchoperations.googleapis.com/Job\022\037\n\n" - + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"t\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\210\001\n" + "\020DeleteJobRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")storagebatchoperations.googleapis.com/Job\022\037\n\n" - + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\023\n" - + "\021CancelJobResponse\"\222\002\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\022\n" + + "\005force\030\003 \001(\010B\003\340A\001\"\023\n" + + "\021CancelJobResponse\"\311\001\n" + + "\033ListBucketOperationsRequest\022M\n" + + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225s" + + "toragebatchoperations.googleapis.com/BucketOperation\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\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\240\001\n" + + "\034ListBucketOperationsResponse\022R\n" + + "\021bucket_operations\030\001" + + " \003(\01327.google.cloud.storagebatchoperations.v1.BucketOperation\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"h\n" + + "\031GetBucketOperationRequest\022K\n" + + "\004name\030\001 \001(\tB=\340A\002\372A7\n" + + "5storagebatchoperations.googleapis.com/BucketOperation\"\222\002\n" + "\021OperationMetadata\022\026\n" + "\toperation\030\001 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" @@ -127,33 +155,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\007 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\010 \001(\tB\003\340A\003\022=\n" + "\003job\030\n" - + " \001(\0132+.google.cloud.storagebatchoperations.v1.JobB\003\340A\0032\202\010\n" + + " \001(\0132+.google.cloud.storagebatchoperations.v1.JobB\003\340A\0032\323\013\n" + "\026StorageBatchOperations\022\270\001\n" - + "\010ListJobs\0227.google.cloud.storagebatchoperations.v1.L" - + "istJobsRequest\0328.google.cloud.storagebat" - + "choperations.v1.ListJobsResponse\"9\332A\006par" - + "ent\202\323\344\223\002*\022(/v1/{parent=projects/*/locations/*}/jobs\022\245\001\n" - + "\006GetJob\0225.google.cloud.storagebatchoperations.v1.GetJobRequest\032+." - + "google.cloud.storagebatchoperations.v1.J" - + "ob\"7\332A\004name\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*/jobs/*}\022\312\001\n" - + "\tCreateJob\0228.google.cloud.storagebatchoperations.v1.Creat" - + "eJobRequest\032\035.google.longrunning.Operation\"d\312A\030\n" - + "\003Job\022\021OperationMetadata\332A\021parent" - + ",job,job_id\202\323\344\223\002/\"(/v1/{parent=projects/*/locations/*}/jobs:\003job\022\226\001\n" - + "\tDeleteJob\0228.google.cloud.storagebatchoperations.v1." - + "DeleteJobRequest\032\026.google.protobuf.Empty" - + "\"7\332A\004name\202\323\344\223\002**(/v1/{name=projects/*/locations/*/jobs/*}\022\303\001\n" - + "\tCancelJob\0228.google.cloud.storagebatchoperations.v1.CancelJ" - + "obRequest\0329.google.cloud.storagebatchope" - + "rations.v1.CancelJobResponse\"A\332A\004name\202\323\344" - + "\223\0024\"//v1/{name=projects/*/locations/*/jo" - + "bs/*}:cancel:\001*\032Y\312A%storagebatchoperatio" - + "ns.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\255\002\n" - + "*com.google.cloud.storagebatchoperations.v1B\033Stora" - + "geBatchOperationsProtoP\001Zbcloud.google.com/go/storagebatchoperations/apiv1/stora" - + "gebatchoperationspb;storagebatchoperationspb\252\002&Google.Cloud.StorageBatchOperatio" - + "ns.V1\312\002&Google\\Cloud\\StorageBatchOperati" - + "ons\\V1\352\002)Google::Cloud::StorageBatchOperations::V1b\006proto3" + + "\010ListJobs\0227.google.cloud.storagebatcho" + + "perations.v1.ListJobsRequest\0328.google.cloud.storagebatchoperations.v1.ListJobsRe" + + "sponse\"9\332A\006parent\202\323\344\223\002*\022(/v1/{parent=projects/*/locations/*}/jobs\022\245\001\n" + + "\006GetJob\0225.google.cloud.storagebatchoperations.v1.Ge" + + "tJobRequest\032+.google.cloud.storagebatcho" + + "perations.v1.Job\"7\332A\004name\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*/jobs/*}\022\312\001\n" + + "\tCreateJob\0228.google.cloud.storagebatchopera" + + "tions.v1.CreateJobRequest\032\035.google.longrunning.Operation\"d\312A\030\n" + + "\003Job\022\021OperationMet" + + "adata\332A\021parent,job,job_id\202\323\344\223\002/\"(/v1/{pa" + + "rent=projects/*/locations/*}/jobs:\003job\022\226\001\n" + + "\tDeleteJob\0228.google.cloud.storagebatch" + + "operations.v1.DeleteJobRequest\032\026.google." + + "protobuf.Empty\"7\332A\004name\202\323\344\223\002**(/v1/{name=projects/*/locations/*/jobs/*}\022\303\001\n" + + "\tCancelJob\0228.google.cloud.storagebatchoperati" + + "ons.v1.CancelJobRequest\0329.google.cloud.storagebatchoperations.v1.CancelJobRespon" + + "se\"A\332A\004name\202\323\344\223\0024\"//v1/{name=projects/*/locations/*/jobs/*}:cancel:\001*\022\357\001\n" + + "\024ListBucketOperations\022C.google.cloud.storagebat" + + "choperations.v1.ListBucketOperationsRequest\032D.google.cloud.storagebatchoperation" + + "s.v1.ListBucketOperationsResponse\"L\332A\006pa" + + "rent\202\323\344\223\002=\022;/v1/{parent=projects/*/locations/*/jobs/*}/bucketOperations\022\334\001\n" + + "\022GetBucketOperation\022A.google.cloud.storagebat" + + "choperations.v1.GetBucketOperationRequest\0327.google.cloud.storagebatchoperations." + + "v1.BucketOperation\"J\332A\004name\202\323\344\223\002=\022;/v1/{" + + "name=projects/*/locations/*/jobs/*/bucketOperations/*}\032Y\312A%storagebatchoperation" + + "s.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\255\002\n" + + "*com.google.cloud.storagebatchoperations.v1B\033Storag" + + "eBatchOperationsProtoP\001Zbcloud.google.com/go/storagebatchoperations/apiv1/storag" + + "ebatchoperationspb;storagebatchoperationspb\252\002&Google.Cloud.StorageBatchOperation" + + "s.V1\312\002&Google\\Cloud\\StorageBatchOperatio" + + "ns\\V1\352\002)Google::Cloud::StorageBatchOperations::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -216,7 +250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_DeleteJobRequest_descriptor, new java.lang.String[] { - "Name", "RequestId", + "Name", "RequestId", "Force", }); internal_static_google_cloud_storagebatchoperations_v1_CancelJobResponse_descriptor = getDescriptor().getMessageType(6); @@ -224,8 +258,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_CancelJobResponse_descriptor, new java.lang.String[] {}); - internal_static_google_cloud_storagebatchoperations_v1_OperationMetadata_descriptor = + internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsRequest_descriptor = getDescriptor().getMessageType(7); + internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", + }); + internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsResponse_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_storagebatchoperations_v1_ListBucketOperationsResponse_descriptor, + new java.lang.String[] { + "BucketOperations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_storagebatchoperations_v1_GetBucketOperationRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_storagebatchoperations_v1_GetBucketOperationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_storagebatchoperations_v1_GetBucketOperationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_storagebatchoperations_v1_OperationMetadata_descriptor = + getDescriptor().getMessageType(10); internal_static_google_cloud_storagebatchoperations_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_OperationMetadata_descriptor, diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsTypesProto.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsTypesProto.java index aa4e7728aa00..04f5a8463240 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsTypesProto.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsTypesProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_storagebatchoperations_v1_Job_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_storagebatchoperations_v1_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_storagebatchoperations_v1_BucketOperation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_storagebatchoperations_v1_BucketOperation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_storagebatchoperations_v1_BucketList_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -113,7 +117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Kgoogle/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto\022&g" + "oogle.cloud.storagebatchoperations.v1\032\037g" + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\032\037google/protobuf/timestamp.proto\032\025google/rpc/code.proto\"\221" + + "pi/resource.proto\032\037google/protobuf/timestamp.proto\032\025google/rpc/code.proto\"\277" + "\t\n" + "\003Job\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" @@ -140,36 +144,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oud.storagebatchoperations.v1.ErrorSummaryB\003\340A\003\022E\n" + "\005state\030\017 \001(\01621.google.cloud.st" + "oragebatchoperations.v1.Job.StateB\003\340A\003\022\024\n" - + "\007dry_run\030\026 \001(\010B\003\340A\001\"T\n" + + "\007dry_run\030\026 \001(\010B\003\340A\001\022 \n" + + "\023is_multi_bucket_job\030\030 \001(\010B\003\340A\003\"`\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\r\n" + "\tSUCCEEDED\020\002\022\014\n" + "\010CANCELED\020\003\022\n\n" - + "\006FAILED\020\004:m\352Aj\n" - + ")storagebatchoperations.googleapis.com/Job\0222proj" - + "ects/{project}/locations/{location}/jobs/{job}*\004jobs2\003jobB\010\n" + + "\006FAILED\020\004\022\n\n" + + "\006QUEUED\020\005:m\352Aj\n" + + ")storagebatchoperations.googleapis.com/Job" + + "\0222projects/{project}/locations/{location}/jobs/{job}*\004jobs2\003jobB\010\n" + "\006sourceB\020\n" + + "\016transformation\"\341\t\n" + + "\017BucketOperation\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\023\n" + + "\013bucket_name\030\002 \001(\t\022I\n" + + "\013prefix_list\030\003" + + " \001(\01322.google.cloud.storagebatchoperations.v1.PrefixListH\000\022D\n" + + "\010manifest\030\004" + + " \001(\01320.google.cloud.storagebatchoperations.v1.ManifestH\000\022P\n" + + "\017put_object_hold\030\013 \001(" + + "\01325.google.cloud.storagebatchoperations.v1.PutObjectHoldH\001\022M\n\r" + + "delete_object\030\014 \001(" + + "\01324.google.cloud.storagebatchoperations.v1.DeleteObjectH\001\022K\n" + + "\014put_metadata\030\r" + + " \001(\01323.google.cloud.storagebatchoperations.v1.PutMetadataH\001\022O\n" + + "\016rewrite_object\030\016 \001(\01325" + + ".google.cloud.storagebatchoperations.v1.RewriteObjectH\001\0224\n" + + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0223\n\n" + + "start_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n\r" + + "complete_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022G\n" + + "\010counters\030\010 \001(\01320.g" + + "oogle.cloud.storagebatchoperations.v1.CountersB\003\340A\003\022R\n" + + "\017error_summaries\030\t \003(\01324.g" + + "oogle.cloud.storagebatchoperations.v1.ErrorSummaryB\003\340A\003\022Q\n" + + "\005state\030\n" + + " \001(\0162=.google." + + "cloud.storagebatchoperations.v1.BucketOperation.StateB\003\340A\003\"`\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006QUEUED\020\001\022\013\n" + + "\007RUNNING\020\002\022\r\n" + + "\tSUCCEEDED\020\003\022\014\n" + + "\010CANCELED\020\004\022\n\n" + + "\006FAILED\020\005:\266\001\352A\262\001\n" + + "5storagebatchoperations.googleapis.com/BucketOperation\022Vprojects/{project}/l" + + "ocations/{location}/jobs/{job}/bucketOpe" + + "rations/{bucket_operation}*\020bucketoperations2\017bucketOperationB\026\n" + + "\024object_configurationB\020\n" + "\016transformation\"\246\002\n\n" + "BucketList\022O\n" - + "\007buckets\030\001 \003(\01329." - + "google.cloud.storagebatchoperations.v1.BucketList.BucketB\003\340A\002\032\306\001\n" + + "\007buckets\030\001 \003(\01329.google.cloud.storageba" + + "tchoperations.v1.BucketList.BucketB\003\340A\002\032\306\001\n" + "\006Bucket\022\023\n" + "\006bucket\030\001 \001(\tB\003\340A\002\022I\n" - + "\013prefix_list\030\002 \001(\01322.goo" - + "gle.cloud.storagebatchoperations.v1.PrefixListH\000\022D\n" - + "\010manifest\030\003 \001(\01320.google.clou" - + "d.storagebatchoperations.v1.ManifestH\000B\026\n" + + "\013prefix_list\030\002" + + " \001(\01322.google.cloud.storagebatchoperations.v1.PrefixListH\000\022D\n" + + "\010manifest\030\003" + + " \001(\01320.google.cloud.storagebatchoperations.v1.ManifestH\000B\026\n" + "\024object_configuration\"*\n" + "\010Manifest\022\036\n" + "\021manifest_location\030\002 \001(\tB\003\340A\002\"3\n\n" + "PrefixList\022%\n" + "\030included_object_prefixes\030\002 \003(\tB\003\340A\001\"\216\002\n\r" + "PutObjectHold\022]\n" - + "\016temporary_hold\030\001 \001(" - + "\0162@.google.cloud.storagebatchoperations.v1.PutObjectHold.HoldStatusB\003\340A\002\022_\n" - + "\020event_based_hold\030\002 \001(\0162@.google.cloud.storag" - + "ebatchoperations.v1.PutObjectHold.HoldStatusB\003\340A\002\"=\n\n" + + "\016temporary_hold\030\001 \001(\0162@.google.cloud.stora" + + "gebatchoperations.v1.PutObjectHold.HoldStatusB\003\340A\002\022_\n" + + "\020event_based_hold\030\002 \001(\0162@.g" + + "oogle.cloud.storagebatchoperations.v1.PutObjectHold.HoldStatusB\003\340A\002\"=\n\n" + "HoldStatus\022\033\n" + "\027HOLD_STATUS_UNSPECIFIED\020\000\022\007\n" + "\003SET\020\001\022\t\n" @@ -182,8 +226,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_kms_key\"\223\002\n" + "\017ObjectRetention\022#\n" + "\021retain_until_time\030\001 \001(\tB\003\340A\002H\000\210\001\001\022g\n" - + "\016retention_mode\030\002 \001(\0162E.google" - + ".cloud.storagebatchoperations.v1.ObjectRetention.RetentionModeB\003\340A\002H\001\210\001\001\"I\n\r" + + "\016retention_mode\030\002 \001(\0162E.google.cloud.storagebatchope" + + "rations.v1.ObjectRetention.RetentionModeB\003\340A\002H\001\210\001\001\"I\n\r" + "RetentionMode\022\036\n" + "\032RETENTION_MODE_UNSPECIFIED\020\000\022\n\n" + "\006LOCKED\020\001\022\014\n" @@ -197,10 +241,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014content_type\030\004 \001(\tB\003\340A\001H\003\210\001\001\022\037\n\r" + "cache_control\030\005 \001(\tB\003\340A\001H\004\210\001\001\022\035\n" + "\013custom_time\030\006 \001(\tB\003\340A\001H\005\210\001\001\022e\n" - + "\017custom_metadata\030\007 \003(\0132G.g" - + "oogle.cloud.storagebatchoperations.v1.PutMetadata.CustomMetadataEntryB\003\340A\001\022[\n" - + "\020object_retention\030\010 \001(\01327.google.cloud.stor" - + "agebatchoperations.v1.ObjectRetentionB\003\340A\001H\006\210\001\001\0325\n" + + "\017custom_metadata\030\007 \003(\0132G.google.cloud.storagebat" + + "choperations.v1.PutMetadata.CustomMetadataEntryB\003\340A\001\022[\n" + + "\020object_retention\030\010 \001(\01327" + + ".google.cloud.storagebatchoperations.v1.ObjectRetentionB\003\340A\001H\006\210\001\001\0325\n" + "\023CustomMetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\026\n" @@ -214,8 +258,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014ErrorSummary\022)\n\n" + "error_code\030\001 \001(\0162\020.google.rpc.CodeB\003\340A\002\022\030\n" + "\013error_count\030\002 \001(\003B\003\340A\002\022U\n" - + "\021error_log_entries\030\003 \003(\01325.goog" - + "le.cloud.storagebatchoperations.v1.ErrorLogEntryB\003\340A\002\"J\n\r" + + "\021error_log_entries\030\003" + + " \003(\01325.google.cloud.storagebatchoperations.v1.ErrorLogEntryB\003\340A\002\"J\n\r" + "ErrorLogEntry\022\032\n\n" + "object_uri\030\001 \001(\tB\006\340A\002\340A\003\022\035\n\r" + "error_details\030\003 \003(\tB\006\340A\001\340A\003\"\255\001\n" @@ -226,10 +270,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021total_bytes_found\030\004 \001(\003B\003\340A\003H\000\210\001\001B\024\n" + "\022_total_bytes_found\"\365\002\n\r" + "LoggingConfig\022^\n" - + "\013log_actions\030\001 \003(\0162D.google.cloud." - + "storagebatchoperations.v1.LoggingConfig.LoggableActionB\003\340A\002\022i\n" - + "\021log_action_states\030\002 \003(\0162I.google.cloud.storagebatchoperat" - + "ions.v1.LoggingConfig.LoggableActionStateB\003\340A\002\"@\n" + + "\013log_actions\030\001 \003" + + "(\0162D.google.cloud.storagebatchoperations.v1.LoggingConfig.LoggableActionB\003\340A\002\022i\n" + + "\021log_action_states\030\002 \003(\0162I.google.cloud." + + "storagebatchoperations.v1.LoggingConfig.LoggableActionStateB\003\340A\002\"@\n" + "\016LoggableAction\022\037\n" + "\033LOGGABLE_ACTION_UNSPECIFIED\020\000\022\r\n" + "\tTRANSFORM\020\006\"W\n" @@ -237,13 +281,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!LOGGABLE_ACTION_STATE_UNSPECIFIED\020\000\022\r\n" + "\tSUCCEEDED\020\001\022\n\n" + "\006FAILED\020\002B\255\003\n" - + "*com.google.cloud.storagebatchoperations.v1B StorageBatchOperationsTypesPro" - + "toP\001Zbcloud.google.com/go/storagebatchoperations/apiv1/storagebatchoperationspb;" - + "storagebatchoperationspb\252\002&Google.Cloud." - + "StorageBatchOperations.V1\312\002&Google\\Cloud" - + "\\StorageBatchOperations\\V1\352\002)Google::Cloud::StorageBatchOperations::V1\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{" - + "project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\006proto3" + + "*com.google.cloud.storagebatchoperations.v1B StorageBatch" + + "OperationsTypesProtoP\001Zbcloud.google.com/go/storagebatchoperations/apiv1/storage" + + "batchoperationspb;storagebatchoperationspb\252\002&Google.Cloud.StorageBatchOperations" + + ".V1\312\002&Google\\Cloud\\StorageBatchOperation" + + "s\\V1\352\002)Google::Cloud::StorageBatchOperations::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{lo" + + "cation}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -275,11 +319,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorSummaries", "State", "DryRun", + "IsMultiBucketJob", "Source", "Transformation", }); - internal_static_google_cloud_storagebatchoperations_v1_BucketList_descriptor = + internal_static_google_cloud_storagebatchoperations_v1_BucketOperation_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_storagebatchoperations_v1_BucketOperation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_storagebatchoperations_v1_BucketOperation_descriptor, + new java.lang.String[] { + "Name", + "BucketName", + "PrefixList", + "Manifest", + "PutObjectHold", + "DeleteObject", + "PutMetadata", + "RewriteObject", + "CreateTime", + "StartTime", + "CompleteTime", + "Counters", + "ErrorSummaries", + "State", + "ObjectConfiguration", + "Transformation", + }); + internal_static_google_cloud_storagebatchoperations_v1_BucketList_descriptor = + getDescriptor().getMessageType(2); internal_static_google_cloud_storagebatchoperations_v1_BucketList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_BucketList_descriptor, @@ -296,7 +364,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bucket", "PrefixList", "Manifest", "ObjectConfiguration", }); internal_static_google_cloud_storagebatchoperations_v1_Manifest_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_storagebatchoperations_v1_Manifest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_Manifest_descriptor, @@ -304,7 +372,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ManifestLocation", }); internal_static_google_cloud_storagebatchoperations_v1_PrefixList_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_storagebatchoperations_v1_PrefixList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_PrefixList_descriptor, @@ -312,7 +380,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludedObjectPrefixes", }); internal_static_google_cloud_storagebatchoperations_v1_PutObjectHold_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(5); internal_static_google_cloud_storagebatchoperations_v1_PutObjectHold_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_PutObjectHold_descriptor, @@ -320,7 +388,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TemporaryHold", "EventBasedHold", }); internal_static_google_cloud_storagebatchoperations_v1_DeleteObject_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(6); internal_static_google_cloud_storagebatchoperations_v1_DeleteObject_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_DeleteObject_descriptor, @@ -328,7 +396,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PermanentObjectDeletionEnabled", }); internal_static_google_cloud_storagebatchoperations_v1_RewriteObject_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(7); internal_static_google_cloud_storagebatchoperations_v1_RewriteObject_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_RewriteObject_descriptor, @@ -336,7 +404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KmsKey", }); internal_static_google_cloud_storagebatchoperations_v1_ObjectRetention_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(8); internal_static_google_cloud_storagebatchoperations_v1_ObjectRetention_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_ObjectRetention_descriptor, @@ -344,7 +412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RetainUntilTime", "RetentionMode", }); internal_static_google_cloud_storagebatchoperations_v1_PutMetadata_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(9); internal_static_google_cloud_storagebatchoperations_v1_PutMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_PutMetadata_descriptor, @@ -368,7 +436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_storagebatchoperations_v1_ErrorSummary_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_storagebatchoperations_v1_ErrorSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_ErrorSummary_descriptor, @@ -376,7 +444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorCode", "ErrorCount", "ErrorLogEntries", }); internal_static_google_cloud_storagebatchoperations_v1_ErrorLogEntry_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_storagebatchoperations_v1_ErrorLogEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_ErrorLogEntry_descriptor, @@ -384,7 +452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ObjectUri", "ErrorDetails", }); internal_static_google_cloud_storagebatchoperations_v1_Counters_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_storagebatchoperations_v1_Counters_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_Counters_descriptor, @@ -392,7 +460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalObjectCount", "SucceededObjectCount", "FailedObjectCount", "TotalBytesFound", }); internal_static_google_cloud_storagebatchoperations_v1_LoggingConfig_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_cloud_storagebatchoperations_v1_LoggingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_storagebatchoperations_v1_LoggingConfig_descriptor, diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations.proto b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations.proto index a12ebab088c9..556b7d378c9a 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations.proto +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations.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. @@ -88,6 +88,23 @@ service StorageBatchOperations { }; option (google.api.method_signature) = "name"; } + + // Lists BucketOperations in a given project and job. + rpc ListBucketOperations(ListBucketOperationsRequest) + returns (ListBucketOperationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/jobs/*}/bucketOperations" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a BucketOperation. + rpc GetBucketOperation(GetBucketOperationRequest) returns (BucketOperation) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/jobs/*/bucketOperations/*}" + }; + option (google.api.method_signature) = "name"; + } } // Message for request to list Jobs @@ -209,11 +226,65 @@ message DeleteJobRequest { (google.api.field_info).format = UUID4, (google.api.field_behavior) = OPTIONAL ]; + + // Optional. If set to true, any child bucket operations of the job will also + // be deleted. Highly recommended to be set to true by all clients. Users + // cannot mutate bucket operations directly, so only the jobs.delete + // permission is required to delete a job (and its child bucket operations). + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; } // Message for response to cancel Job. message CancelJobResponse {} +// Message for request to list BucketOperations +message ListBucketOperationsRequest { + // Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "storagebatchoperations.googleapis.com/BucketOperation" + } + ]; + + // Optional. Filters results as defined by https://google.aip.dev/160. + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list page size. Default page size is 100. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. Supported fields are name, create_time. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing BucketOperations +message ListBucketOperationsResponse { + // A list of storage batch bucket operations. + repeated BucketOperation bucket_operations = 1; + + // A token identifying a page of results. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a BucketOperation. +message GetBucketOperationRequest { + // Required. `name` of the bucket operation to retrieve. + // Format: + // projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "storagebatchoperations.googleapis.com/BucketOperation" + } + ]; +} + // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The unique operation resource name. diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto index 8c2edec56520..f661216bcb3e 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.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. @@ -58,6 +58,9 @@ message Job { // Terminated due to an unrecoverable failure. FAILED = 4; + + // Queued but not yet started. + QUEUED = 5; } // Identifier. The resource name of the Job. job_id is unique @@ -123,6 +126,97 @@ message Job { // object count and, if the object configuration is a prefix list, the bytes // found from source. No transformations will be performed. bool dry_run = 22 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. If true, this Job operates on multiple buckets. Multibucket + // jobs are subject to different quota limits than single-bucket jobs. + bool is_multi_bucket_job = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// BucketOperation represents a bucket-level breakdown of a Job. +message BucketOperation { + option (google.api.resource) = { + type: "storagebatchoperations.googleapis.com/BucketOperation" + pattern: "projects/{project}/locations/{location}/jobs/{job}/bucketOperations/{bucket_operation}" + plural: "bucketoperations" + singular: "bucketOperation" + }; + + // Describes state of the BucketOperation. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Created but not yet started. + QUEUED = 1; + + // In progress. + RUNNING = 2; + + // Completed successfully. + SUCCEEDED = 3; + + // Cancelled by the user. + CANCELED = 4; + + // Terminated due to an unrecoverable failure. + FAILED = 5; + } + + // Identifier. The resource name of the BucketOperation. This is defined by + // the service. Format: + // projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // The bucket name of the objects to be transformed in the BucketOperation. + string bucket_name = 2; + + // Specifies objects to be transformed in the BucketOperation. + oneof object_configuration { + // Specifies objects matching a prefix set. + PrefixList prefix_list = 3; + + // Specifies objects in a manifest file. + Manifest manifest = 4; + } + + // Action to be performed on the objects. + oneof transformation { + // Changes object hold status. + PutObjectHold put_object_hold = 11; + + // Delete objects. + DeleteObject delete_object = 12; + + // Updates object metadata. Allows updating fixed-key and custom metadata + // and fixed-key metadata i.e. Cache-Control, Content-Disposition, + // Content-Encoding, Content-Language, Content-Type, Custom-Time. + PutMetadata put_metadata = 13; + + // Rewrite the object and updates metadata like KMS key. + RewriteObject rewrite_object = 14; + } + + // Output only. The time that the BucketOperation was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time that the BucketOperation was started. + google.protobuf.Timestamp start_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time that the BucketOperation was completed. + google.protobuf.Timestamp complete_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Information about the progress of the bucket operation. + Counters counters = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summarizes errors encountered with sample error log entries. + repeated ErrorSummary error_summaries = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the BucketOperation. + State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Describes list of buckets and their objects to be transformed. diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/deletejob/AsyncDeleteJob.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/deletejob/AsyncDeleteJob.java index 37bff1aa7040..4a392c922d90 100644 --- a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/deletejob/AsyncDeleteJob.java +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/deletejob/AsyncDeleteJob.java @@ -41,6 +41,7 @@ public static void asyncDeleteJob() throws Exception { DeleteJobRequest.newBuilder() .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); ApiFuture future = storageBatchOperationsClient.deleteJobCallable().futureCall(request); diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/deletejob/SyncDeleteJob.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/deletejob/SyncDeleteJob.java index 750464528274..0ca8d16d6b86 100644 --- a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/deletejob/SyncDeleteJob.java +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/deletejob/SyncDeleteJob.java @@ -40,6 +40,7 @@ public static void syncDeleteJob() throws Exception { DeleteJobRequest.newBuilder() .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) .setRequestId("requestId693933066") + .setForce(true) .build(); storageBatchOperationsClient.deleteJob(request); } diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/AsyncGetBucketOperation.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/AsyncGetBucketOperation.java new file mode 100644 index 000000000000..f9853c6ce996 --- /dev/null +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/AsyncGetBucketOperation.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.storagebatchoperations.v1.samples; + +// [START storagebatchoperations_v1_generated_StorageBatchOperations_GetBucketOperation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.storagebatchoperations.v1.BucketOperation; +import com.google.cloud.storagebatchoperations.v1.BucketOperationName; +import com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest; +import com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient; + +public class AsyncGetBucketOperation { + + public static void main(String[] args) throws Exception { + asyncGetBucketOperation(); + } + + public static void asyncGetBucketOperation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (StorageBatchOperationsClient storageBatchOperationsClient = + StorageBatchOperationsClient.create()) { + GetBucketOperationRequest request = + GetBucketOperationRequest.newBuilder() + .setName( + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]") + .toString()) + .build(); + ApiFuture future = + storageBatchOperationsClient.getBucketOperationCallable().futureCall(request); + // Do something. + BucketOperation response = future.get(); + } + } +} +// [END storagebatchoperations_v1_generated_StorageBatchOperations_GetBucketOperation_async] diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/SyncGetBucketOperation.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/SyncGetBucketOperation.java new file mode 100644 index 000000000000..e6de96f95f73 --- /dev/null +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/SyncGetBucketOperation.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.storagebatchoperations.v1.samples; + +// [START storagebatchoperations_v1_generated_StorageBatchOperations_GetBucketOperation_sync] +import com.google.cloud.storagebatchoperations.v1.BucketOperation; +import com.google.cloud.storagebatchoperations.v1.BucketOperationName; +import com.google.cloud.storagebatchoperations.v1.GetBucketOperationRequest; +import com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient; + +public class SyncGetBucketOperation { + + public static void main(String[] args) throws Exception { + syncGetBucketOperation(); + } + + public static void syncGetBucketOperation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (StorageBatchOperationsClient storageBatchOperationsClient = + StorageBatchOperationsClient.create()) { + GetBucketOperationRequest request = + GetBucketOperationRequest.newBuilder() + .setName( + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]") + .toString()) + .build(); + BucketOperation response = storageBatchOperationsClient.getBucketOperation(request); + } + } +} +// [END storagebatchoperations_v1_generated_StorageBatchOperations_GetBucketOperation_sync] diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/SyncGetBucketOperationBucketoperationname.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/SyncGetBucketOperationBucketoperationname.java new file mode 100644 index 000000000000..4bd77c09f374 --- /dev/null +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/SyncGetBucketOperationBucketoperationname.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.storagebatchoperations.v1.samples; + +// [START storagebatchoperations_v1_generated_StorageBatchOperations_GetBucketOperation_Bucketoperationname_sync] +import com.google.cloud.storagebatchoperations.v1.BucketOperation; +import com.google.cloud.storagebatchoperations.v1.BucketOperationName; +import com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient; + +public class SyncGetBucketOperationBucketoperationname { + + public static void main(String[] args) throws Exception { + syncGetBucketOperationBucketoperationname(); + } + + public static void syncGetBucketOperationBucketoperationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (StorageBatchOperationsClient storageBatchOperationsClient = + StorageBatchOperationsClient.create()) { + BucketOperationName name = + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]"); + BucketOperation response = storageBatchOperationsClient.getBucketOperation(name); + } + } +} +// [END storagebatchoperations_v1_generated_StorageBatchOperations_GetBucketOperation_Bucketoperationname_sync] diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/SyncGetBucketOperationString.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/SyncGetBucketOperationString.java new file mode 100644 index 000000000000..919f6a67b749 --- /dev/null +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/getbucketoperation/SyncGetBucketOperationString.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.storagebatchoperations.v1.samples; + +// [START storagebatchoperations_v1_generated_StorageBatchOperations_GetBucketOperation_String_sync] +import com.google.cloud.storagebatchoperations.v1.BucketOperation; +import com.google.cloud.storagebatchoperations.v1.BucketOperationName; +import com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient; + +public class SyncGetBucketOperationString { + + public static void main(String[] args) throws Exception { + syncGetBucketOperationString(); + } + + public static void syncGetBucketOperationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (StorageBatchOperationsClient storageBatchOperationsClient = + StorageBatchOperationsClient.create()) { + String name = + BucketOperationName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[BUCKET_OPERATION]") + .toString(); + BucketOperation response = storageBatchOperationsClient.getBucketOperation(name); + } + } +} +// [END storagebatchoperations_v1_generated_StorageBatchOperations_GetBucketOperation_String_sync] diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/AsyncListBucketOperations.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/AsyncListBucketOperations.java new file mode 100644 index 000000000000..7a91d1094caa --- /dev/null +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/AsyncListBucketOperations.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.storagebatchoperations.v1.samples; + +// [START storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.storagebatchoperations.v1.BucketOperation; +import com.google.cloud.storagebatchoperations.v1.JobName; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest; +import com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient; + +public class AsyncListBucketOperations { + + public static void main(String[] args) throws Exception { + asyncListBucketOperations(); + } + + public static void asyncListBucketOperations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (StorageBatchOperationsClient storageBatchOperationsClient = + StorageBatchOperationsClient.create()) { + ListBucketOperationsRequest request = + ListBucketOperationsRequest.newBuilder() + .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + storageBatchOperationsClient.listBucketOperationsPagedCallable().futureCall(request); + // Do something. + for (BucketOperation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_async] diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/AsyncListBucketOperationsPaged.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/AsyncListBucketOperationsPaged.java new file mode 100644 index 000000000000..2db93122a81c --- /dev/null +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/AsyncListBucketOperationsPaged.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.storagebatchoperations.v1.samples; + +// [START storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_Paged_async] +import com.google.cloud.storagebatchoperations.v1.BucketOperation; +import com.google.cloud.storagebatchoperations.v1.JobName; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse; +import com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient; +import com.google.common.base.Strings; + +public class AsyncListBucketOperationsPaged { + + public static void main(String[] args) throws Exception { + asyncListBucketOperationsPaged(); + } + + public static void asyncListBucketOperationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (StorageBatchOperationsClient storageBatchOperationsClient = + StorageBatchOperationsClient.create()) { + ListBucketOperationsRequest request = + ListBucketOperationsRequest.newBuilder() + .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListBucketOperationsResponse response = + storageBatchOperationsClient.listBucketOperationsCallable().call(request); + for (BucketOperation element : response.getBucketOperationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_Paged_async] diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/SyncListBucketOperations.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/SyncListBucketOperations.java new file mode 100644 index 000000000000..8061c362cdfc --- /dev/null +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/SyncListBucketOperations.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.storagebatchoperations.v1.samples; + +// [START storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_sync] +import com.google.cloud.storagebatchoperations.v1.BucketOperation; +import com.google.cloud.storagebatchoperations.v1.JobName; +import com.google.cloud.storagebatchoperations.v1.ListBucketOperationsRequest; +import com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient; + +public class SyncListBucketOperations { + + public static void main(String[] args) throws Exception { + syncListBucketOperations(); + } + + public static void syncListBucketOperations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (StorageBatchOperationsClient storageBatchOperationsClient = + StorageBatchOperationsClient.create()) { + ListBucketOperationsRequest request = + ListBucketOperationsRequest.newBuilder() + .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + for (BucketOperation element : + storageBatchOperationsClient.listBucketOperations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_sync] diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/SyncListBucketOperationsJobname.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/SyncListBucketOperationsJobname.java new file mode 100644 index 000000000000..5c9de2b33aac --- /dev/null +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/SyncListBucketOperationsJobname.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.storagebatchoperations.v1.samples; + +// [START storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_Jobname_sync] +import com.google.cloud.storagebatchoperations.v1.BucketOperation; +import com.google.cloud.storagebatchoperations.v1.JobName; +import com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient; + +public class SyncListBucketOperationsJobname { + + public static void main(String[] args) throws Exception { + syncListBucketOperationsJobname(); + } + + public static void syncListBucketOperationsJobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (StorageBatchOperationsClient storageBatchOperationsClient = + StorageBatchOperationsClient.create()) { + JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + for (BucketOperation element : + storageBatchOperationsClient.listBucketOperations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_Jobname_sync] diff --git a/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/SyncListBucketOperationsString.java b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/SyncListBucketOperationsString.java new file mode 100644 index 000000000000..23ce7a53ae1e --- /dev/null +++ b/java-storagebatchoperations/samples/snippets/generated/com/google/cloud/storagebatchoperations/v1/storagebatchoperations/listbucketoperations/SyncListBucketOperationsString.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.storagebatchoperations.v1.samples; + +// [START storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_String_sync] +import com.google.cloud.storagebatchoperations.v1.BucketOperation; +import com.google.cloud.storagebatchoperations.v1.JobName; +import com.google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient; + +public class SyncListBucketOperationsString { + + public static void main(String[] args) throws Exception { + syncListBucketOperationsString(); + } + + public static void syncListBucketOperationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (StorageBatchOperationsClient storageBatchOperationsClient = + StorageBatchOperationsClient.create()) { + String parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); + for (BucketOperation element : + storageBatchOperationsClient.listBucketOperations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_String_sync] diff --git a/java-storageinsights/google-cloud-storageinsights-bom/pom.xml b/java-storageinsights/google-cloud-storageinsights-bom/pom.xml index 36e2d2feb161..b1f59db7dca5 100644 --- a/java-storageinsights/google-cloud-storageinsights-bom/pom.xml +++ b/java-storageinsights/google-cloud-storageinsights-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-storageinsights-bom - 0.69.0 + 0.70.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-storageinsights - 0.69.0 + 0.70.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.69.0 + 0.70.0
diff --git a/java-storageinsights/google-cloud-storageinsights/pom.xml b/java-storageinsights/google-cloud-storageinsights/pom.xml index 5ac7ae7d982f..2fa7cfc256c9 100644 --- a/java-storageinsights/google-cloud-storageinsights/pom.xml +++ b/java-storageinsights/google-cloud-storageinsights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storageinsights - 0.69.0 + 0.70.0 jar Google Storage Insights API Storage Insights API Provides insights capability on Google Cloud Storage com.google.cloud google-cloud-storageinsights-parent - 0.69.0 + 0.70.0 google-cloud-storageinsights diff --git a/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml b/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml index 1c32c8b7455e..ddb7827feec0 100644 --- a/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml +++ b/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.69.0 + 0.70.0 grpc-google-cloud-storageinsights-v1 GRPC library for google-cloud-storageinsights com.google.cloud google-cloud-storageinsights-parent - 0.69.0 + 0.70.0 diff --git a/java-storageinsights/pom.xml b/java-storageinsights/pom.xml index da35c107f8c1..c0623e3b500e 100644 --- a/java-storageinsights/pom.xml +++ b/java-storageinsights/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storageinsights-parent pom - 0.69.0 + 0.70.0 Google Storage Insights API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-storageinsights - 0.69.0 + 0.70.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.69.0 + 0.70.0 diff --git a/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml b/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml index 62dce7061fc4..b9ab43dbe120 100644 --- a/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml +++ b/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.69.0 + 0.70.0 proto-google-cloud-storageinsights-v1 Proto library for google-cloud-storageinsights com.google.cloud google-cloud-storageinsights-parent - 0.69.0 + 0.70.0 diff --git a/java-talent/google-cloud-talent-bom/pom.xml b/java-talent/google-cloud-talent-bom/pom.xml index 40489fb69611..61bb2fdbe49d 100644 --- a/java-talent/google-cloud-talent-bom/pom.xml +++ b/java-talent/google-cloud-talent-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-talent-bom - 2.85.0 + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-talent - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.128.0 + 0.129.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.128.0 + 0.129.0 diff --git a/java-talent/google-cloud-talent/pom.xml b/java-talent/google-cloud-talent/pom.xml index 70893a5ddcae..14c304f2615c 100644 --- a/java-talent/google-cloud-talent/pom.xml +++ b/java-talent/google-cloud-talent/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-talent - 2.85.0 + 2.86.0 jar Google Cloud Talent Solution Java idiomatic client for Google Cloud Talent Solution com.google.cloud google-cloud-talent-parent - 2.85.0 + 2.86.0 google-cloud-talent diff --git a/java-talent/grpc-google-cloud-talent-v4/pom.xml b/java-talent/grpc-google-cloud-talent-v4/pom.xml index c654dd3b39b1..aba2c33620bd 100644 --- a/java-talent/grpc-google-cloud-talent-v4/pom.xml +++ b/java-talent/grpc-google-cloud-talent-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.85.0 + 2.86.0 grpc-google-cloud-talent-v4 GRPC library for grpc-google-cloud-talent-v4 com.google.cloud google-cloud-talent-parent - 2.85.0 + 2.86.0 diff --git a/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml b/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml index dfa08fd71f2e..70092e9a44b5 100644 --- a/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml +++ b/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.128.0 + 0.129.0 grpc-google-cloud-talent-v4beta1 GRPC library for grpc-google-cloud-talent-v4beta1 com.google.cloud google-cloud-talent-parent - 2.85.0 + 2.86.0 diff --git a/java-talent/pom.xml b/java-talent/pom.xml index 20f4baba14a1..9bf3b58c55fe 100644 --- a/java-talent/pom.xml +++ b/java-talent/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-talent-parent pom - 2.85.0 + 2.86.0 Google Cloud Talent Solution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,32 +29,32 @@ com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.128.0 + 0.129.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.128.0 + 0.129.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.85.0 + 2.86.0 com.google.cloud google-cloud-talent - 2.85.0 + 2.86.0 com.google.cloud google-cloud-talent-bom - 2.85.0 + 2.86.0 diff --git a/java-talent/proto-google-cloud-talent-v4/pom.xml b/java-talent/proto-google-cloud-talent-v4/pom.xml index efc0aac17077..dd101913d364 100644 --- a/java-talent/proto-google-cloud-talent-v4/pom.xml +++ b/java-talent/proto-google-cloud-talent-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.85.0 + 2.86.0 proto-google-cloud-talent-v4 PROTO library for proto-google-cloud-talent-v4 com.google.cloud google-cloud-talent-parent - 2.85.0 + 2.86.0 diff --git a/java-talent/proto-google-cloud-talent-v4beta1/pom.xml b/java-talent/proto-google-cloud-talent-v4beta1/pom.xml index 993c369640de..cd34c0e74a64 100644 --- a/java-talent/proto-google-cloud-talent-v4beta1/pom.xml +++ b/java-talent/proto-google-cloud-talent-v4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.128.0 + 0.129.0 proto-google-cloud-talent-v4beta1 PROTO library for proto-google-cloud-talent-v4beta1 com.google.cloud google-cloud-talent-parent - 2.85.0 + 2.86.0 diff --git a/java-tasks/google-cloud-tasks-bom/pom.xml b/java-tasks/google-cloud-tasks-bom/pom.xml index 71f59fe34789..f3134c7d5502 100644 --- a/java-tasks/google-cloud-tasks-bom/pom.xml +++ b/java-tasks/google-cloud-tasks-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-tasks - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.174.0 + 0.175.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.174.0 + 0.175.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.174.0 + 0.175.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.174.0 + 0.175.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.84.0 + 2.85.0 diff --git a/java-tasks/google-cloud-tasks/pom.xml b/java-tasks/google-cloud-tasks/pom.xml index a03cefce8bef..1edcfdb07384 100644 --- a/java-tasks/google-cloud-tasks/pom.xml +++ b/java-tasks/google-cloud-tasks/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.84.0 + 2.85.0 jar Google Cloud Tasks Java idiomatic client for Google Cloud Tasks com.google.cloud google-cloud-tasks-parent - 2.84.0 + 2.85.0 google-cloud-tasks diff --git a/java-tasks/grpc-google-cloud-tasks-v2/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2/pom.xml index c8e42ff8cb54..743579139b99 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.84.0 + 2.85.0 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.84.0 + 2.85.0 diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml index 472285f5031e..f0c4ded56bc0 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.174.0 + 0.175.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.84.0 + 2.85.0 diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml index 95ae71f7352a..c35932dc9696 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.174.0 + 0.175.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.84.0 + 2.85.0 diff --git a/java-tasks/pom.xml b/java-tasks/pom.xml index 5e5f2f0410ee..848183539ec7 100644 --- a/java-tasks/pom.xml +++ b/java-tasks/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.84.0 + 2.85.0 Google Cloud Tasks Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.174.0 + 0.175.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.174.0 + 0.175.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.174.0 + 0.175.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.174.0 + 0.175.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-tasks - 2.84.0 + 2.85.0 diff --git a/java-tasks/proto-google-cloud-tasks-v2/pom.xml b/java-tasks/proto-google-cloud-tasks-v2/pom.xml index 7910e585ebd3..410f86f76230 100644 --- a/java-tasks/proto-google-cloud-tasks-v2/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.84.0 + 2.85.0 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.84.0 + 2.85.0 diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml b/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml index 5fe4bb4954b9..1b22fb8a1e9b 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.174.0 + 0.175.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.84.0 + 2.85.0 diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml b/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml index ae09e5a5f000..ef1893276622 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.174.0 + 0.175.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.84.0 + 2.85.0 diff --git a/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml index e8655cfa8b6c..7d0dcd52b92a 100644 --- a/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml +++ b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-telcoautomation-bom - 0.54.0 + 0.55.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-telcoautomation - 0.54.0 + 0.55.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.54.0 + 0.55.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.54.0 + 0.55.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.54.0 + 0.55.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.54.0 + 0.55.0 diff --git a/java-telcoautomation/google-cloud-telcoautomation/pom.xml b/java-telcoautomation/google-cloud-telcoautomation/pom.xml index d5bc2f42b37b..123d7d213230 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/pom.xml +++ b/java-telcoautomation/google-cloud-telcoautomation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-telcoautomation - 0.54.0 + 0.55.0 jar Google Telco Automation API Telco Automation API APIs to automate 5G deployment and management of cloud infrastructure and network functions. com.google.cloud google-cloud-telcoautomation-parent - 0.54.0 + 0.55.0 google-cloud-telcoautomation diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml index 136b9489201a..20f649b196aa 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.54.0 + 0.55.0 grpc-google-cloud-telcoautomation-v1 GRPC library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.54.0 + 0.55.0 diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml index 13609a3ed91e..0046a7bfdfb4 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.54.0 + 0.55.0 grpc-google-cloud-telcoautomation-v1alpha1 GRPC library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.54.0 + 0.55.0 diff --git a/java-telcoautomation/pom.xml b/java-telcoautomation/pom.xml index dee480dfb17c..82a335f3cebc 100644 --- a/java-telcoautomation/pom.xml +++ b/java-telcoautomation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-telcoautomation-parent pom - 0.54.0 + 0.55.0 Google Telco Automation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-telcoautomation - 0.54.0 + 0.55.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.54.0 + 0.55.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.54.0 + 0.55.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.54.0 + 0.55.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.54.0 + 0.55.0 diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml index c99069953e43..9acc7270e2cf 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.54.0 + 0.55.0 proto-google-cloud-telcoautomation-v1 Proto library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.54.0 + 0.55.0 diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml index 620c9bfabd42..2f315d30ea85 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.54.0 + 0.55.0 proto-google-cloud-telcoautomation-v1alpha1 Proto library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.54.0 + 0.55.0 diff --git a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml index 3ff592a63bec..b095de9cf914 100644 --- a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-texttospeech-bom - 2.85.0 + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-texttospeech - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.174.0 + 0.175.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.174.0 + 0.175.0 diff --git a/java-texttospeech/google-cloud-texttospeech/pom.xml b/java-texttospeech/google-cloud-texttospeech/pom.xml index f86ac179cff6..e4d1f4cf60c7 100644 --- a/java-texttospeech/google-cloud-texttospeech/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-texttospeech - 2.85.0 + 2.86.0 jar Google Cloud Text-to-Speech Java idiomatic client for Google Cloud Text-to-Speech com.google.cloud google-cloud-texttospeech-parent - 2.85.0 + 2.86.0 google-cloud-texttospeech diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml b/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml index ca72930cab50..b47cbec8216e 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.85.0 + 2.86.0 grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.cloud google-cloud-texttospeech-parent - 2.85.0 + 2.86.0 diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml index 420aa2a71b6f..9be584f968f3 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.174.0 + 0.175.0 grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.cloud google-cloud-texttospeech-parent - 2.85.0 + 2.86.0 diff --git a/java-texttospeech/pom.xml b/java-texttospeech/pom.xml index f2305475c406..7e91311cac88 100644 --- a/java-texttospeech/pom.xml +++ b/java-texttospeech/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-texttospeech-parent pom - 2.85.0 + 2.86.0 Google Cloud Text-to-Speech Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.174.0 + 0.175.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.174.0 + 0.175.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.85.0 + 2.86.0 com.google.cloud google-cloud-texttospeech - 2.85.0 + 2.86.0 diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml b/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml index 92aa2bda7dc7..a227e216fa51 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.85.0 + 2.86.0 proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.cloud google-cloud-texttospeech-parent - 2.85.0 + 2.86.0 diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml index 6ae655aeec14..096ce24fbf60 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.174.0 + 0.175.0 proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.cloud google-cloud-texttospeech-parent - 2.85.0 + 2.86.0 diff --git a/java-tpu/google-cloud-tpu-bom/pom.xml b/java-tpu/google-cloud-tpu-bom/pom.xml index d6367d09149b..9fd95247363c 100644 --- a/java-tpu/google-cloud-tpu-bom/pom.xml +++ b/java-tpu/google-cloud-tpu-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-tpu-bom - 2.85.0 + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-tpu - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.85.0 + 2.86.0 diff --git a/java-tpu/google-cloud-tpu/pom.xml b/java-tpu/google-cloud-tpu/pom.xml index eb99701ef263..32e4aa626a70 100644 --- a/java-tpu/google-cloud-tpu/pom.xml +++ b/java-tpu/google-cloud-tpu/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-tpu - 2.85.0 + 2.86.0 jar Google Cloud TPU Cloud TPU are Google's custom-developed application-specific integrated circuits (ASICs) used to accelerate machine learning workloads. com.google.cloud google-cloud-tpu-parent - 2.85.0 + 2.86.0 google-cloud-tpu diff --git a/java-tpu/grpc-google-cloud-tpu-v1/pom.xml b/java-tpu/grpc-google-cloud-tpu-v1/pom.xml index c900a6785ca3..dd9186d576c4 100644 --- a/java-tpu/grpc-google-cloud-tpu-v1/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.85.0 + 2.86.0 grpc-google-cloud-tpu-v1 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.85.0 + 2.86.0 diff --git a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml index 3769eedad4eb..6de59b34d182 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.85.0 + 2.86.0 grpc-google-cloud-tpu-v2 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.85.0 + 2.86.0 diff --git a/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml index 8932613d8edf..c4eb2b2cc913 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.85.0 + 2.86.0 grpc-google-cloud-tpu-v2alpha1 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.85.0 + 2.86.0 diff --git a/java-tpu/pom.xml b/java-tpu/pom.xml index 31d46accaa7c..8651196cf095 100644 --- a/java-tpu/pom.xml +++ b/java-tpu/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tpu-parent pom - 2.85.0 + 2.86.0 Google Cloud TPU Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-tpu - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.85.0 + 2.86.0 diff --git a/java-tpu/proto-google-cloud-tpu-v1/pom.xml b/java-tpu/proto-google-cloud-tpu-v1/pom.xml index 0e6b07aac2a1..4fc97e56e194 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.85.0 + 2.86.0 proto-google-cloud-tpu-v1 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.85.0 + 2.86.0 diff --git a/java-tpu/proto-google-cloud-tpu-v2/pom.xml b/java-tpu/proto-google-cloud-tpu-v2/pom.xml index 87867a84b272..a86b9eab20c7 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.85.0 + 2.86.0 proto-google-cloud-tpu-v2 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.85.0 + 2.86.0 diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml b/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml index e49b2f9eb8a5..f658856344d5 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.85.0 + 2.86.0 proto-google-cloud-tpu-v2alpha1 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.85.0 + 2.86.0 diff --git a/java-trace/google-cloud-trace-bom/pom.xml b/java-trace/google-cloud-trace-bom/pom.xml index ec9995a9176b..0b6387658a7f 100644 --- a/java-trace/google-cloud-trace-bom/pom.xml +++ b/java-trace/google-cloud-trace-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-trace-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-trace - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-trace-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.84.0 + 2.85.0 diff --git a/java-trace/google-cloud-trace/pom.xml b/java-trace/google-cloud-trace/pom.xml index 9d5258328b99..c10bacee1c75 100644 --- a/java-trace/google-cloud-trace/pom.xml +++ b/java-trace/google-cloud-trace/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-trace - 2.84.0 + 2.85.0 jar Google Cloud Trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-trace-parent - 2.84.0 + 2.85.0 google-cloud-trace diff --git a/java-trace/grpc-google-cloud-trace-v1/pom.xml b/java-trace/grpc-google-cloud-trace-v1/pom.xml index e24b0706f716..e13b6343d586 100644 --- a/java-trace/grpc-google-cloud-trace-v1/pom.xml +++ b/java-trace/grpc-google-cloud-trace-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.84.0 + 2.85.0 grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.cloud google-cloud-trace-parent - 2.84.0 + 2.85.0 diff --git a/java-trace/grpc-google-cloud-trace-v2/pom.xml b/java-trace/grpc-google-cloud-trace-v2/pom.xml index 9c4013ba33f1..0effb0f8659d 100644 --- a/java-trace/grpc-google-cloud-trace-v2/pom.xml +++ b/java-trace/grpc-google-cloud-trace-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.84.0 + 2.85.0 grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.cloud google-cloud-trace-parent - 2.84.0 + 2.85.0 diff --git a/java-trace/pom.xml b/java-trace/pom.xml index 8052d02c088d..af57046efdf5 100644 --- a/java-trace/pom.xml +++ b/java-trace/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-trace-parent pom - 2.84.0 + 2.85.0 Google Cloud Trace Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-trace-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-trace - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.84.0 + 2.85.0 diff --git a/java-trace/proto-google-cloud-trace-v1/pom.xml b/java-trace/proto-google-cloud-trace-v1/pom.xml index 1d1229005ea0..f36e0b4043ff 100644 --- a/java-trace/proto-google-cloud-trace-v1/pom.xml +++ b/java-trace/proto-google-cloud-trace-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-trace-v1 - 2.84.0 + 2.85.0 proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.cloud google-cloud-trace-parent - 2.84.0 + 2.85.0 diff --git a/java-trace/proto-google-cloud-trace-v2/pom.xml b/java-trace/proto-google-cloud-trace-v2/pom.xml index b50d1412c877..3efcc310af83 100644 --- a/java-trace/proto-google-cloud-trace-v2/pom.xml +++ b/java-trace/proto-google-cloud-trace-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.84.0 + 2.85.0 proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.cloud google-cloud-trace-parent - 2.84.0 + 2.85.0 diff --git a/java-translate/google-cloud-translate-bom/pom.xml b/java-translate/google-cloud-translate-bom/pom.xml index 48d53a079dc3..bef71706e030 100644 --- a/java-translate/google-cloud-translate-bom/pom.xml +++ b/java-translate/google-cloud-translate-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-translate-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-translate - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.166.0 + 0.167.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.166.0 + 0.167.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.84.0 + 2.85.0 diff --git a/java-translate/google-cloud-translate/pom.xml b/java-translate/google-cloud-translate/pom.xml index 4faa0472a538..c6e7361ae7f2 100644 --- a/java-translate/google-cloud-translate/pom.xml +++ b/java-translate/google-cloud-translate/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-translate - 2.84.0 + 2.85.0 jar Google Cloud Translate Java idiomatic client for Google Cloud Translate com.google.cloud google-cloud-translate-parent - 2.84.0 + 2.85.0 google-cloud-translate diff --git a/java-translate/grpc-google-cloud-translate-v3/pom.xml b/java-translate/grpc-google-cloud-translate-v3/pom.xml index fad482a1d9ad..11cbbba90c32 100644 --- a/java-translate/grpc-google-cloud-translate-v3/pom.xml +++ b/java-translate/grpc-google-cloud-translate-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.84.0 + 2.85.0 grpc-google-cloud-translate-v3 GRPC library for grpc-google-cloud-translate-v3 com.google.cloud google-cloud-translate-parent - 2.84.0 + 2.85.0 diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml b/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml index b9b271d57dbc..b5b6f8ced079 100644 --- a/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml +++ b/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.166.0 + 0.167.0 grpc-google-cloud-translate-v3beta1 GRPC library for grpc-google-cloud-translate-v3beta1 com.google.cloud google-cloud-translate-parent - 2.84.0 + 2.85.0 diff --git a/java-translate/pom.xml b/java-translate/pom.xml index b8e70cca2ed8..3597161f54a7 100644 --- a/java-translate/pom.xml +++ b/java-translate/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-translate-parent pom - 2.84.0 + 2.85.0 Google Cloud Translate Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.166.0 + 0.167.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.166.0 + 0.167.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-translate - 2.84.0 + 2.85.0 diff --git a/java-translate/proto-google-cloud-translate-v3/pom.xml b/java-translate/proto-google-cloud-translate-v3/pom.xml index 10d6f7044c8c..772fc4926c91 100644 --- a/java-translate/proto-google-cloud-translate-v3/pom.xml +++ b/java-translate/proto-google-cloud-translate-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.84.0 + 2.85.0 proto-google-cloud-translate-v3 PROTO library for proto-google-cloud-translate-v3 com.google.cloud google-cloud-translate-parent - 2.84.0 + 2.85.0 diff --git a/java-translate/proto-google-cloud-translate-v3beta1/pom.xml b/java-translate/proto-google-cloud-translate-v3beta1/pom.xml index ec2e40b226e8..775b1d638d5b 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/pom.xml +++ b/java-translate/proto-google-cloud-translate-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.166.0 + 0.167.0 proto-google-cloud-translate-v3beta1 PROTO library for proto-google-cloud-translate-v3beta1 com.google.cloud google-cloud-translate-parent - 2.84.0 + 2.85.0 diff --git a/java-valkey/google-cloud-valkey-bom/pom.xml b/java-valkey/google-cloud-valkey-bom/pom.xml index 55da0bcdac32..45a918df7663 100644 --- a/java-valkey/google-cloud-valkey-bom/pom.xml +++ b/java-valkey/google-cloud-valkey-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-valkey-bom - 0.30.0 + 0.31.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-valkey - 0.30.0 + 0.31.0 com.google.api.grpc proto-google-cloud-valkey-v1 - 0.30.0 + 0.31.0 com.google.api.grpc proto-google-cloud-valkey-v1beta - 0.30.0 + 0.31.0 diff --git a/java-valkey/google-cloud-valkey/pom.xml b/java-valkey/google-cloud-valkey/pom.xml index 8d93d632af2e..6a721322779d 100644 --- a/java-valkey/google-cloud-valkey/pom.xml +++ b/java-valkey/google-cloud-valkey/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-valkey - 0.30.0 + 0.31.0 jar Google Memorystore API Memorystore API Memorystore for Valkey is a fully managed Valkey Cluster service for Google Cloud. com.google.cloud google-cloud-valkey-parent - 0.30.0 + 0.31.0 google-cloud-valkey diff --git a/java-valkey/pom.xml b/java-valkey/pom.xml index e0fd2bd06eef..8c6b9e3f40ad 100644 --- a/java-valkey/pom.xml +++ b/java-valkey/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-valkey-parent pom - 0.30.0 + 0.31.0 Google Memorystore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-valkey - 0.30.0 + 0.31.0 com.google.api.grpc proto-google-cloud-valkey-v1 - 0.30.0 + 0.31.0 com.google.api.grpc proto-google-cloud-valkey-v1beta - 0.30.0 + 0.31.0 diff --git a/java-valkey/proto-google-cloud-valkey-v1/pom.xml b/java-valkey/proto-google-cloud-valkey-v1/pom.xml index 8367b8dd1f86..4397dff49b5c 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/pom.xml +++ b/java-valkey/proto-google-cloud-valkey-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-valkey-v1 - 0.30.0 + 0.31.0 proto-google-cloud-valkey-v1 Proto library for google-cloud-valkey com.google.cloud google-cloud-valkey-parent - 0.30.0 + 0.31.0 diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml b/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml index 7ca16aa66263..1f0b034f9cba 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml +++ b/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-valkey-v1beta - 0.30.0 + 0.31.0 proto-google-cloud-valkey-v1beta Proto library for google-cloud-valkey com.google.cloud google-cloud-valkey-parent - 0.30.0 + 0.31.0 diff --git a/java-vectorsearch/google-cloud-vectorsearch-bom/pom.xml b/java-vectorsearch/google-cloud-vectorsearch-bom/pom.xml index b45c61efb42a..b9ac63297143 100644 --- a/java-vectorsearch/google-cloud-vectorsearch-bom/pom.xml +++ b/java-vectorsearch/google-cloud-vectorsearch-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-vectorsearch-bom - 0.5.0 + 0.6.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-vectorsearch - 0.5.0 + 0.6.0 com.google.api.grpc grpc-google-cloud-vectorsearch-v1beta - 0.5.0 + 0.6.0 com.google.api.grpc proto-google-cloud-vectorsearch-v1beta - 0.5.0 + 0.6.0 diff --git a/java-vectorsearch/google-cloud-vectorsearch/pom.xml b/java-vectorsearch/google-cloud-vectorsearch/pom.xml index 99a7a29d33da..9a4b56a7df08 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/pom.xml +++ b/java-vectorsearch/google-cloud-vectorsearch/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vectorsearch - 0.5.0 + 0.6.0 jar Google Vector Search API Vector Search API The Vector Search API provides a fully-managed, highly performant, and scalable vector database designed to power next-generation search, recommendation, and generative AI applications. It allows you to store, index, and query your data and its corresponding vector embeddings through a simple, intuitive interface. With Vector Search, you can define custom schemas for your data, insert objects with associated metadata, automatically generate embeddings from your data, and perform fast approximate nearest neighbor (ANN) searches to find semantically similar items at scale. com.google.cloud google-cloud-vectorsearch-parent - 0.5.0 + 0.6.0 google-cloud-vectorsearch diff --git a/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/pom.xml b/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/pom.xml index 1a260dea70fb..6703bd36645a 100644 --- a/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/pom.xml +++ b/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vectorsearch-v1beta - 0.5.0 + 0.6.0 grpc-google-cloud-vectorsearch-v1beta GRPC library for google-cloud-vectorsearch com.google.cloud google-cloud-vectorsearch-parent - 0.5.0 + 0.6.0 diff --git a/java-vectorsearch/pom.xml b/java-vectorsearch/pom.xml index adf9ad4435ba..6e84ea524627 100644 --- a/java-vectorsearch/pom.xml +++ b/java-vectorsearch/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vectorsearch-parent pom - 0.5.0 + 0.6.0 Google Vector Search API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vectorsearch - 0.5.0 + 0.6.0 com.google.api.grpc grpc-google-cloud-vectorsearch-v1beta - 0.5.0 + 0.6.0 com.google.api.grpc proto-google-cloud-vectorsearch-v1beta - 0.5.0 + 0.6.0 diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/pom.xml b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/pom.xml index 54b5b4459665..d2be936b22a6 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/pom.xml +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vectorsearch-v1beta - 0.5.0 + 0.6.0 proto-google-cloud-vectorsearch-v1beta Proto library for google-cloud-vectorsearch com.google.cloud google-cloud-vectorsearch-parent - 0.5.0 + 0.6.0 diff --git a/java-vertexai/README.md b/java-vertexai/README.md index 2f2d821acd80..7a5da2f9d03c 100644 --- a/java-vertexai/README.md +++ b/java-vertexai/README.md @@ -48,20 +48,20 @@ If you're using Maven without the BOM, add the following to your dependencies: com.google.cloud google-cloud-vertexai - 1.44.0 + 1.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vertexai:1.44.0' +implementation 'com.google.cloud:google-cloud-vertexai:1.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vertexai" % "1.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vertexai" % "1.45.0" ``` diff --git a/java-vertexai/google-cloud-vertexai-bom/pom.xml b/java-vertexai/google-cloud-vertexai-bom/pom.xml index 7264f55e08bd..aafd6d3898c8 100644 --- a/java-vertexai/google-cloud-vertexai-bom/pom.xml +++ b/java-vertexai/google-cloud-vertexai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vertexai-bom - 1.44.0 + 1.45.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vertexai - 1.44.0 + 1.45.0 com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.44.0 + 1.45.0 com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.44.0 + 1.45.0 diff --git a/java-vertexai/google-cloud-vertexai/pom.xml b/java-vertexai/google-cloud-vertexai/pom.xml index 47216afafa83..f6802f0a1950 100644 --- a/java-vertexai/google-cloud-vertexai/pom.xml +++ b/java-vertexai/google-cloud-vertexai/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-vertexai - 1.44.0 + 1.45.0 jar Google VertexAI API Vertex AI is an integrated suite of machine learning tools and services @@ -25,7 +25,7 @@ com.google.cloud google-cloud-vertexai-parent - 1.44.0 + 1.45.0 google-cloud-vertexai diff --git a/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml b/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml index 9c9fddccdb36..bddf9cac6847 100644 --- a/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml +++ b/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.44.0 + 1.45.0 grpc-google-cloud-vertexai-v1 GRPC library for google-cloud-vertexai com.google.cloud google-cloud-vertexai-parent - 1.44.0 + 1.45.0 diff --git a/java-vertexai/pom.xml b/java-vertexai/pom.xml index c0e7315edab0..29178815a556 100644 --- a/java-vertexai/pom.xml +++ b/java-vertexai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vertexai-parent pom - 1.44.0 + 1.45.0 Google VertexAI API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vertexai - 1.44.0 + 1.45.0 com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.44.0 + 1.45.0 com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.44.0 + 1.45.0 diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml b/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml index 272618922ef9..0025c949f852 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml +++ b/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.44.0 + 1.45.0 proto-google-cloud-vertexai-v1 Proto library for google-cloud-vertexai com.google.cloud google-cloud-vertexai-parent - 1.44.0 + 1.45.0 diff --git a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml index 21d8162b2975..5448b51255a9 100644 --- a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-intelligence-bom - 2.83.0 + 2.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-video-intelligence - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.173.0 + 0.174.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.173.0 + 0.174.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.173.0 + 0.174.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.173.0 + 0.174.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.173.0 + 0.174.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.173.0 + 0.174.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.173.0 + 0.174.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.83.0 + 2.84.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.173.0 + 0.174.0 diff --git a/java-video-intelligence/google-cloud-video-intelligence/pom.xml b/java-video-intelligence/google-cloud-video-intelligence/pom.xml index c46e4f6f09a0..b094cef4d8ae 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-intelligence - 2.83.0 + 2.84.0 jar Google Cloud Video Intelligence Java idiomatic client for Google Cloud Video Intelligence com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 google-cloud-video-intelligence diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml index 11e3d7fda204..d5cbe2a5c18c 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.83.0 + 2.84.0 grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index 9a49721d9dc3..850a1c8f0e1a 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.173.0 + 0.174.0 grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index 46d58cd4e53c..b5a492837ce5 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.173.0 + 0.174.0 grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index 7fe7ca7dc0c0..73b6eb4ff020 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.173.0 + 0.174.0 grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml index 073bcf401a1c..45ab5e40701d 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.173.0 + 0.174.0 grpc-google-cloud-video-intelligence-v1p3beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p3beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 diff --git a/java-video-intelligence/pom.xml b/java-video-intelligence/pom.xml index add7628e5b5e..2e74c8ce75ef 100644 --- a/java-video-intelligence/pom.xml +++ b/java-video-intelligence/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-intelligence-parent pom - 2.83.0 + 2.84.0 Google Cloud Video Intelligence Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,62 +29,62 @@ com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.173.0 + 0.174.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.173.0 + 0.174.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.173.0 + 0.174.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.83.0 + 2.84.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.173.0 + 0.174.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.173.0 + 0.174.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.173.0 + 0.174.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.173.0 + 0.174.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.173.0 + 0.174.0 com.google.cloud google-cloud-video-intelligence - 2.83.0 + 2.84.0 com.google.cloud google-cloud-video-intelligence-bom - 2.83.0 + 2.84.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml index b13eb1b414b0..eeb600f772a4 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.83.0 + 2.84.0 proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml index d65a4925abc2..21f5b3243238 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.173.0 + 0.174.0 proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index b244e8997494..532363a81a75 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.173.0 + 0.174.0 proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index 2acdd0d59737..1f2465460011 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.173.0 + 0.174.0 proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml index dedcab93f977..50382f6f08dc 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.173.0 + 0.174.0 proto-google-cloud-video-intelligence-v1p3beta1 PROTO library for proto-google-cloud-video-intelligence-v1p3beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.83.0 + 2.84.0 diff --git a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml index 9bb82779a4d9..d7ca9d2f5d29 100644 --- a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-live-stream-bom - 0.86.0 + 0.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-live-stream - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.86.0 + 0.87.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.86.0 + 0.87.0 diff --git a/java-video-live-stream/google-cloud-live-stream/pom.xml b/java-video-live-stream/google-cloud-live-stream/pom.xml index 187977227fef..45bf314bb813 100644 --- a/java-video-live-stream/google-cloud-live-stream/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-live-stream - 0.86.0 + 0.87.0 jar Google Cloud Live Stream Cloud Live Stream transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms. com.google.cloud google-cloud-live-stream-parent - 0.86.0 + 0.87.0 google-cloud-live-stream diff --git a/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml b/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml index 40e822f23da6..392054bd9309 100644 --- a/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml +++ b/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.86.0 + 0.87.0 grpc-google-cloud-live-stream-v1 GRPC library for google-cloud-live-stream com.google.cloud google-cloud-live-stream-parent - 0.86.0 + 0.87.0 diff --git a/java-video-live-stream/pom.xml b/java-video-live-stream/pom.xml index 184c6f50abd2..8646e0c0426b 100644 --- a/java-video-live-stream/pom.xml +++ b/java-video-live-stream/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-live-stream-parent pom - 0.86.0 + 0.87.0 Google Cloud Live Stream Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-live-stream - 0.86.0 + 0.87.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.86.0 + 0.87.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.86.0 + 0.87.0 diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml b/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml index 16faa27790b6..f416464c002e 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.86.0 + 0.87.0 proto-google-cloud-live-stream-v1 Proto library for google-cloud-live-stream com.google.cloud google-cloud-live-stream-parent - 0.86.0 + 0.87.0 diff --git a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml index 6180455621af..a85ccdd106c5 100644 --- a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-stitcher-bom - 0.84.0 + 0.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-video-stitcher - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.84.0 + 0.85.0 diff --git a/java-video-stitcher/google-cloud-video-stitcher/pom.xml b/java-video-stitcher/google-cloud-video-stitcher/pom.xml index baeb1f41a469..cf441a9fe454 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-stitcher - 0.84.0 + 0.85.0 jar Google Video Stitcher API Video Stitcher API allows you to manipulate video content to dynamically insert ads prior to delivery to client devices. com.google.cloud google-cloud-video-stitcher-parent - 0.84.0 + 0.85.0 google-cloud-video-stitcher diff --git a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml index 5080d293e429..d9bfcab86e66 100644 --- a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml +++ b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.84.0 + 0.85.0 grpc-google-cloud-video-stitcher-v1 GRPC library for google-cloud-video-stitcher com.google.cloud google-cloud-video-stitcher-parent - 0.84.0 + 0.85.0 diff --git a/java-video-stitcher/pom.xml b/java-video-stitcher/pom.xml index 3854e7f09734..2f94cd39bade 100644 --- a/java-video-stitcher/pom.xml +++ b/java-video-stitcher/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-stitcher-parent pom - 0.84.0 + 0.85.0 Google Video Stitcher API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-video-stitcher - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.84.0 + 0.85.0 diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml index 4a38bec6ada4..76dae06b1bf4 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.84.0 + 0.85.0 proto-google-cloud-video-stitcher-v1 Proto library for google-cloud-video-stitcher com.google.cloud google-cloud-video-stitcher-parent - 0.84.0 + 0.85.0 diff --git a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml index 949c6fd3562b..4814b3b27758 100644 --- a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder-bom - 1.83.0 + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-video-transcoder - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.83.0 + 1.84.0 diff --git a/java-video-transcoder/google-cloud-video-transcoder/pom.xml b/java-video-transcoder/google-cloud-video-transcoder/pom.xml index 21ee258966e7..1cbb04c069c7 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder - 1.83.0 + 1.84.0 jar Google Video Transcoder allows you to transcode videos into a variety of formats. The Transcoder API benefits broadcasters, production companies, businesses, and individuals looking to transform their video content for use across a variety of user devices. com.google.cloud google-cloud-video-transcoder-parent - 1.83.0 + 1.84.0 google-cloud-video-transcoder diff --git a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml index 623503698a3f..42a6652973c6 100644 --- a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml +++ b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.83.0 + 1.84.0 grpc-google-cloud-video-transcoder-v1 GRPC library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 1.83.0 + 1.84.0 diff --git a/java-video-transcoder/pom.xml b/java-video-transcoder/pom.xml index 8d65ad258f4b..4cc41d3694f0 100644 --- a/java-video-transcoder/pom.xml +++ b/java-video-transcoder/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-transcoder-parent pom - 1.83.0 + 1.84.0 Google Video Transcoder Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-video-transcoder - 1.83.0 + 1.84.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.83.0 + 1.84.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.83.0 + 1.84.0 diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml index e1b2eaf11b7a..fe3b654f43e6 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.83.0 + 1.84.0 proto-google-cloud-video-transcoder-v1 Proto library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 1.83.0 + 1.84.0 diff --git a/java-vision/google-cloud-vision-bom/pom.xml b/java-vision/google-cloud-vision-bom/pom.xml index 2fd51b88b377..73353d1a9aba 100644 --- a/java-vision/google-cloud-vision-bom/pom.xml +++ b/java-vision/google-cloud-vision-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vision-bom - 3.82.0 + 3.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-vision - 3.82.0 + 3.83.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.82.0 + 3.83.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.82.0 + 3.83.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.82.0 + 3.83.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.82.0 + 3.83.0 diff --git a/java-vision/google-cloud-vision/pom.xml b/java-vision/google-cloud-vision/pom.xml index 00b2cb15458a..8229676f7d04 100644 --- a/java-vision/google-cloud-vision/pom.xml +++ b/java-vision/google-cloud-vision/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vision - 3.82.0 + 3.83.0 jar Google Cloud Vision Java idiomatic client for Google Cloud Vision com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 google-cloud-vision diff --git a/java-vision/grpc-google-cloud-vision-v1/pom.xml b/java-vision/grpc-google-cloud-vision-v1/pom.xml index 8fec4b0cbdae..ce67c2250247 100644 --- a/java-vision/grpc-google-cloud-vision-v1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.82.0 + 3.83.0 grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml index 6bb2e4a4ccb7..0bb62b544ae2 100644 --- a/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.171.0 + 0.172.0 grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml index 4f7cbb34f4a7..abe9fd8890b7 100644 --- a/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.82.0 + 3.83.0 grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml index e5cc75291408..7f25577444ef 100644 --- a/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.171.0 + 0.172.0 grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml index c40e0c620251..a9d46dde5c3a 100644 --- a/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.171.0 + 0.172.0 grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 diff --git a/java-vision/pom.xml b/java-vision/pom.xml index e813f10ec78e..86b2b31dfc27 100644 --- a/java-vision/pom.xml +++ b/java-vision/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vision-parent pom - 3.82.0 + 3.83.0 Google Cloud Vision Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,57 +29,57 @@ com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.82.0 + 3.83.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.82.0 + 3.83.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.82.0 + 3.83.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.82.0 + 3.83.0 com.google.cloud google-cloud-vision - 3.82.0 + 3.83.0 diff --git a/java-vision/proto-google-cloud-vision-v1/pom.xml b/java-vision/proto-google-cloud-vision-v1/pom.xml index dfa1d735e920..f5b0c98a507d 100644 --- a/java-vision/proto-google-cloud-vision-v1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.82.0 + 3.83.0 proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml index df449a818648..a0d94f05cc53 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.171.0 + 0.172.0 proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml index 8de7dd836583..5bfb3c645645 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.82.0 + 3.83.0 proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml index 3f9d840525d3..2a750ffa5995 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.171.0 + 0.172.0 proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml index aa74f407e708..4e4c6475e2d4 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.171.0 + 0.172.0 proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 3.82.0 + 3.83.0 diff --git a/java-visionai/google-cloud-visionai-bom/pom.xml b/java-visionai/google-cloud-visionai-bom/pom.xml index 9157fa7d9edc..cd88f8372392 100644 --- a/java-visionai/google-cloud-visionai-bom/pom.xml +++ b/java-visionai/google-cloud-visionai-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-visionai-bom - 0.41.0 + 0.42.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-visionai - 0.41.0 + 0.42.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.41.0 + 0.42.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.41.0 + 0.42.0 diff --git a/java-visionai/google-cloud-visionai/pom.xml b/java-visionai/google-cloud-visionai/pom.xml index d2f0b2fc8334..9cce3a1cc4fe 100644 --- a/java-visionai/google-cloud-visionai/pom.xml +++ b/java-visionai/google-cloud-visionai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-visionai - 0.41.0 + 0.42.0 jar Google Vision AI API Vision AI API Vertex AI Vision is an AI-powered platform to ingest, analyze and store video data. com.google.cloud google-cloud-visionai-parent - 0.41.0 + 0.42.0 google-cloud-visionai diff --git a/java-visionai/grpc-google-cloud-visionai-v1/pom.xml b/java-visionai/grpc-google-cloud-visionai-v1/pom.xml index b67551730ce7..92faa10e2662 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/pom.xml +++ b/java-visionai/grpc-google-cloud-visionai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.41.0 + 0.42.0 grpc-google-cloud-visionai-v1 GRPC library for google-cloud-visionai com.google.cloud google-cloud-visionai-parent - 0.41.0 + 0.42.0 diff --git a/java-visionai/pom.xml b/java-visionai/pom.xml index a49f57746e1b..7103a76a6148 100644 --- a/java-visionai/pom.xml +++ b/java-visionai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-visionai-parent pom - 0.41.0 + 0.42.0 Google Vision AI API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-visionai - 0.41.0 + 0.42.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.41.0 + 0.42.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.41.0 + 0.42.0 diff --git a/java-visionai/proto-google-cloud-visionai-v1/pom.xml b/java-visionai/proto-google-cloud-visionai-v1/pom.xml index c58b2e508778..6eb09d204bb2 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/pom.xml +++ b/java-visionai/proto-google-cloud-visionai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.41.0 + 0.42.0 proto-google-cloud-visionai-v1 Proto library for google-cloud-visionai com.google.cloud google-cloud-visionai-parent - 0.41.0 + 0.42.0 diff --git a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml index 8738db64595a..9001e087c821 100644 --- a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vmmigration-bom - 1.84.0 + 1.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vmmigration - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.84.0 + 1.85.0 diff --git a/java-vmmigration/google-cloud-vmmigration/pom.xml b/java-vmmigration/google-cloud-vmmigration/pom.xml index 01a8bb1483df..8f9d086e81b3 100644 --- a/java-vmmigration/google-cloud-vmmigration/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vmmigration - 1.84.0 + 1.85.0 jar Google VM Migration VM Migration helps customers migrating VMs to GCP at no additional cost, as well as an extensive ecosystem of partners to help with discovery and assessment, planning, migration, special use cases, and more. com.google.cloud google-cloud-vmmigration-parent - 1.84.0 + 1.85.0 google-cloud-vmmigration diff --git a/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml b/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml index 83699824bb6a..3f2e8f77b3a5 100644 --- a/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml +++ b/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.84.0 + 1.85.0 grpc-google-cloud-vmmigration-v1 GRPC library for google-cloud-vmmigration com.google.cloud google-cloud-vmmigration-parent - 1.84.0 + 1.85.0 diff --git a/java-vmmigration/pom.xml b/java-vmmigration/pom.xml index c540664183d8..f5e1cd42859e 100644 --- a/java-vmmigration/pom.xml +++ b/java-vmmigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vmmigration-parent pom - 1.84.0 + 1.85.0 Google VM Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vmmigration - 1.84.0 + 1.85.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.84.0 + 1.85.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.84.0 + 1.85.0 diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml b/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml index 92b22544ccbd..2ca1d3bb600c 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.84.0 + 1.85.0 proto-google-cloud-vmmigration-v1 Proto library for google-cloud-vmmigration com.google.cloud google-cloud-vmmigration-parent - 1.84.0 + 1.85.0 diff --git a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml index 9e5a309cdbc4..03d41f6ad6b2 100644 --- a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vmwareengine-bom - 0.78.0 + 0.79.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vmwareengine - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.78.0 + 0.79.0 diff --git a/java-vmwareengine/google-cloud-vmwareengine/pom.xml b/java-vmwareengine/google-cloud-vmwareengine/pom.xml index 7388cef7db22..f217b0528645 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vmwareengine - 0.78.0 + 0.79.0 jar Google Google Cloud VMware Engine Google Cloud VMware Engine Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes. com.google.cloud google-cloud-vmwareengine-parent - 0.78.0 + 0.79.0 google-cloud-vmwareengine diff --git a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml index 56a0e793f72e..fda5ebab77f1 100644 --- a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml +++ b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.78.0 + 0.79.0 grpc-google-cloud-vmwareengine-v1 GRPC library for google-cloud-vmwareengine com.google.cloud google-cloud-vmwareengine-parent - 0.78.0 + 0.79.0 diff --git a/java-vmwareengine/pom.xml b/java-vmwareengine/pom.xml index 5f63c1ef1b37..9df69d5cade7 100644 --- a/java-vmwareengine/pom.xml +++ b/java-vmwareengine/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vmwareengine-parent pom - 0.78.0 + 0.79.0 Google Google Cloud VMware Engine Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vmwareengine - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.78.0 + 0.79.0 diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml index fca2b9c35fe6..5b9f4460d7d4 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.78.0 + 0.79.0 proto-google-cloud-vmwareengine-v1 Proto library for google-cloud-vmwareengine com.google.cloud google-cloud-vmwareengine-parent - 0.78.0 + 0.79.0 diff --git a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml index 419cc545b143..67689c8ed8db 100644 --- a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vpcaccess-bom - 2.85.0 + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vpcaccess - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.85.0 + 2.86.0 diff --git a/java-vpcaccess/google-cloud-vpcaccess/pom.xml b/java-vpcaccess/google-cloud-vpcaccess/pom.xml index 42016e786279..cf0d52cb6f6d 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vpcaccess - 2.85.0 + 2.86.0 jar Google Serverless VPC Access Serverless VPC Access enables you to connect from a serverless environment on Google Cloud directly to your VPC network. This connection makes it possible for your serverless environment to access resources in your VPC network via internal IP addresses. com.google.cloud google-cloud-vpcaccess-parent - 2.85.0 + 2.86.0 google-cloud-vpcaccess diff --git a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml index 780bd1d7be94..441998278b6f 100644 --- a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml +++ b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.85.0 + 2.86.0 grpc-google-cloud-vpcaccess-v1 GRPC library for google-cloud-vpcaccess com.google.cloud google-cloud-vpcaccess-parent - 2.85.0 + 2.86.0 diff --git a/java-vpcaccess/pom.xml b/java-vpcaccess/pom.xml index 3fa46cf2b979..eef58df8d491 100644 --- a/java-vpcaccess/pom.xml +++ b/java-vpcaccess/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vpcaccess-parent pom - 2.85.0 + 2.86.0 Google Serverless VPC Access Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vpcaccess - 2.85.0 + 2.86.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.85.0 + 2.86.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.85.0 + 2.86.0 diff --git a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml index d72c90f37860..60ff21e82238 100644 --- a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml +++ b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.85.0 + 2.86.0 proto-google-cloud-vpcaccess-v1 Proto library for google-cloud-vpcaccess com.google.cloud google-cloud-vpcaccess-parent - 2.85.0 + 2.86.0 diff --git a/java-webrisk/google-cloud-webrisk-bom/pom.xml b/java-webrisk/google-cloud-webrisk-bom/pom.xml index 392dbfaeeb19..1a3488719073 100644 --- a/java-webrisk/google-cloud-webrisk-bom/pom.xml +++ b/java-webrisk/google-cloud-webrisk-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-webrisk-bom - 2.83.0 + 2.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-webrisk - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.120.0 + 0.121.0 com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.83.0 + 2.84.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.120.0 + 0.121.0 diff --git a/java-webrisk/google-cloud-webrisk/pom.xml b/java-webrisk/google-cloud-webrisk/pom.xml index 6dc5f95e0008..9b0146243f88 100644 --- a/java-webrisk/google-cloud-webrisk/pom.xml +++ b/java-webrisk/google-cloud-webrisk/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-webrisk - 2.83.0 + 2.84.0 jar Google Cloud Web Risk Java idiomatic client for Google Cloud Web Risk com.google.cloud google-cloud-webrisk-parent - 2.83.0 + 2.84.0 google-cloud-webrisk diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml b/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml index ee20f67ddd9a..ed1b1567a2df 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml +++ b/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.83.0 + 2.84.0 grpc-google-cloud-webrisk-v1 GRPC library for grpc-google-cloud-webrisk-v1 com.google.cloud google-cloud-webrisk-parent - 2.83.0 + 2.84.0 diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml index 4346a70b4d7d..251b7640e060 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml +++ b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.120.0 + 0.121.0 grpc-google-cloud-webrisk-v1beta1 GRPC library for grpc-google-cloud-webrisk-v1beta1 com.google.cloud google-cloud-webrisk-parent - 2.83.0 + 2.84.0 diff --git a/java-webrisk/pom.xml b/java-webrisk/pom.xml index fa8456297619..a2f98af8f9f3 100644 --- a/java-webrisk/pom.xml +++ b/java-webrisk/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-webrisk-parent pom - 2.83.0 + 2.84.0 Google Cloud Web Risk Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.83.0 + 2.84.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.120.0 + 0.121.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.83.0 + 2.84.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.120.0 + 0.121.0 com.google.cloud google-cloud-webrisk - 2.83.0 + 2.84.0 diff --git a/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml b/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml index 6258193cbe95..1dbdb4c7ec21 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml +++ b/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.83.0 + 2.84.0 proto-google-cloud-webrisk-v1 PROTO library for proto-google-cloud-webrisk-v1 com.google.cloud google-cloud-webrisk-parent - 2.83.0 + 2.84.0 diff --git a/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml b/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml index a3419535f3f3..3c3db86cbbf0 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml +++ b/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.120.0 + 0.121.0 proto-google-cloud-webrisk-v1beta1 PROTO library for proto-google-cloud-webrisk-v1beta1 com.google.cloud google-cloud-webrisk-parent - 2.83.0 + 2.84.0 diff --git a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml index 2f510cda3ae5..91f960c02c6a 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-websecurityscanner - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.84.0 + 2.85.0 diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml index 6c80a230c914..480beb540606 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner - 2.84.0 + 2.85.0 jar Google Cloud Web Security Scanner Java idiomatic client for Google Cloud Web Security Scanner com.google.cloud google-cloud-websecurityscanner-parent - 2.84.0 + 2.85.0 google-cloud-websecurityscanner diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml index 8798edbfaf19..097402393416 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.84.0 + 2.85.0 grpc-google-cloud-websecurityscanner-v1 GRPC library for grpc-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 2.84.0 + 2.85.0 diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index 2924c18db7ad..5c3a860fb6fa 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.171.0 + 0.172.0 grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.84.0 + 2.85.0 diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml index b52b25088518..d04c736dcddc 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.171.0 + 0.172.0 grpc-google-cloud-websecurityscanner-v1beta GRPC library for grpc-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.84.0 + 2.85.0 diff --git a/java-websecurityscanner/pom.xml b/java-websecurityscanner/pom.xml index faa6b7c049db..c0cc65a90711 100644 --- a/java-websecurityscanner/pom.xml +++ b/java-websecurityscanner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-websecurityscanner-parent pom - 2.84.0 + 2.85.0 Google Cloud Web Security Scanner Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.84.0 + 2.85.0 com.google.cloud google-cloud-websecurityscanner - 2.84.0 + 2.85.0 diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml index 770f07c25905..07510d7d473d 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.84.0 + 2.85.0 proto-google-cloud-websecurityscanner-v1 PROTO library for proto-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 2.84.0 + 2.85.0 diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index 87b68de6d3c0..50f76cfe4126 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.171.0 + 0.172.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.84.0 + 2.85.0 diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml index 8fc198fc4033..5c390029f171 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.171.0 + 0.172.0 proto-google-cloud-websecurityscanner-v1beta PROTO library for proto-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.84.0 + 2.85.0 diff --git a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml index b492d76503a9..1bb3bff0d9ab 100644 --- a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workflow-executions - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.88.0 + 0.89.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.84.0 + 2.85.0 diff --git a/java-workflow-executions/google-cloud-workflow-executions/pom.xml b/java-workflow-executions/google-cloud-workflow-executions/pom.xml index 9bb159e17760..ff1b7e0e88cc 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions - 2.84.0 + 2.85.0 jar Google Cloud Workflow Executions allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. com.google.cloud google-cloud-workflow-executions-parent - 2.84.0 + 2.85.0 google-cloud-workflow-executions diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml index b637c8a334a4..21e94fb6be54 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.84.0 + 2.85.0 grpc-google-cloud-workflow-executions-v1 GRPC library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.84.0 + 2.85.0 diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml index 65e09bef5beb..f98bd4b30452 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.88.0 + 0.89.0 grpc-google-cloud-workflow-executions-v1beta GRPC library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.84.0 + 2.85.0 diff --git a/java-workflow-executions/pom.xml b/java-workflow-executions/pom.xml index 4829d8c840f6..2b120a4f4fc1 100644 --- a/java-workflow-executions/pom.xml +++ b/java-workflow-executions/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workflow-executions-parent pom - 2.84.0 + 2.85.0 Google Cloud Workflow Executions Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workflow-executions - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.88.0 + 0.89.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.88.0 + 0.89.0 diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml index 8f9231fe9eb6..cbf70039e143 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.84.0 + 2.85.0 proto-google-cloud-workflow-executions-v1 Proto library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.84.0 + 2.85.0 diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml index ddfac5478c2b..8336409b362a 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.88.0 + 0.89.0 proto-google-cloud-workflow-executions-v1beta Proto library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.84.0 + 2.85.0 diff --git a/java-workflows/google-cloud-workflows-bom/pom.xml b/java-workflows/google-cloud-workflows-bom/pom.xml index d971fe76a6d5..084b376f3336 100644 --- a/java-workflows/google-cloud-workflows-bom/pom.xml +++ b/java-workflows/google-cloud-workflows-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workflows-bom - 2.84.0 + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workflows - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.90.0 + 0.91.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.90.0 + 0.91.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.84.0 + 2.85.0 diff --git a/java-workflows/google-cloud-workflows/pom.xml b/java-workflows/google-cloud-workflows/pom.xml index 0993b38374a8..17afc69001b6 100644 --- a/java-workflows/google-cloud-workflows/pom.xml +++ b/java-workflows/google-cloud-workflows/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workflows - 2.84.0 + 2.85.0 jar Google Cloud Workflows allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. com.google.cloud google-cloud-workflows-parent - 2.84.0 + 2.85.0 google-cloud-workflows diff --git a/java-workflows/grpc-google-cloud-workflows-v1/pom.xml b/java-workflows/grpc-google-cloud-workflows-v1/pom.xml index 436fa3a8de13..acdc5e0ad2b2 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1/pom.xml +++ b/java-workflows/grpc-google-cloud-workflows-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.84.0 + 2.85.0 grpc-google-cloud-workflows-v1 GRPC library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.84.0 + 2.85.0 diff --git a/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml b/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml index 20787c435886..9430bf601857 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml +++ b/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.90.0 + 0.91.0 grpc-google-cloud-workflows-v1beta GRPC library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.84.0 + 2.85.0 diff --git a/java-workflows/pom.xml b/java-workflows/pom.xml index fd2b1854b3ac..cf9bdc8d95eb 100644 --- a/java-workflows/pom.xml +++ b/java-workflows/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workflows-parent pom - 2.84.0 + 2.85.0 Google Cloud Workflows Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workflows - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.84.0 + 2.85.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.84.0 + 2.85.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.90.0 + 0.91.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.90.0 + 0.91.0 diff --git a/java-workflows/proto-google-cloud-workflows-v1/pom.xml b/java-workflows/proto-google-cloud-workflows-v1/pom.xml index 74be61aae34c..7ddc5cb1682b 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/pom.xml +++ b/java-workflows/proto-google-cloud-workflows-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.84.0 + 2.85.0 proto-google-cloud-workflows-v1 Proto library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.84.0 + 2.85.0 diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml b/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml index 3db005595c95..d64fedb2a089 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml +++ b/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.90.0 + 0.91.0 proto-google-cloud-workflows-v1beta Proto library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.84.0 + 2.85.0 diff --git a/java-workloadmanager/.OwlBot-hermetic.yaml b/java-workloadmanager/.OwlBot-hermetic.yaml new file mode 100644 index 000000000000..1364caa0df74 --- /dev/null +++ b/java-workloadmanager/.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-workloadmanager/grpc-google-.*/src" +- "/java-workloadmanager/proto-google-.*/src" +- "/java-workloadmanager/google-.*/src" +- "/java-workloadmanager/samples/snippets/generated" + +deep-preserve-regex: +- "/java-workloadmanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/workloadmanager/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-workloadmanager/$1/proto-google-cloud-workloadmanager-$1/src" +- source: "/google/cloud/workloadmanager/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-workloadmanager/$1/grpc-google-cloud-workloadmanager-$1/src" +- source: "/google/cloud/workloadmanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-workloadmanager/$1/google-cloud-workloadmanager/src" +- source: "/google/cloud/workloadmanager/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-workloadmanager/$1/samples/snippets/generated" + +api-name: workloadmanager \ No newline at end of file diff --git a/java-workloadmanager/.repo-metadata.json b/java-workloadmanager/.repo-metadata.json new file mode 100644 index 000000000000..03603fc4aab9 --- /dev/null +++ b/java-workloadmanager/.repo-metadata.json @@ -0,0 +1,17 @@ +{ + "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", + "transport": "both", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-workloadmanager", + "distribution_name": "com.google.cloud:google-cloud-workloadmanager", + "api_id": "workloadmanager.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true, + "rpc_documentation": "https://docs.cloud.google.com/workload-manager/docs/reference/rest" +} \ No newline at end of file diff --git a/java-workloadmanager/README.md b/java-workloadmanager/README.md new file mode 100644 index 000000000000..1ac701f8baec --- /dev/null +++ b/java-workloadmanager/README.md @@ -0,0 +1,205 @@ +# Google Workload Manager API Client for Java + +Java idiomatic client for [Workload Manager 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-workloadmanager + + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + +```xml + + com.google.cloud + google-cloud-workloadmanager + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-workloadmanager:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "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 Workload Manager API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Workload Manager API API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Workload Manager API [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Workload Manager 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-workloadmanager` library. See the [Quickstart](#quickstart) section +to add `google-cloud-workloadmanager` as a dependency in your code. + +## About Workload Manager API + + +[Workload Manager API][product-docs] 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. + +See the [Workload Manager API client library docs][javadocs] to learn how to +use this Workload Manager API Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Workload Manager 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/workload-manager/docs +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workloadmanager/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-workloadmanager.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadmanager/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=workloadmanager.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-workloadmanager/google-cloud-workloadmanager-bom/pom.xml b/java-workloadmanager/google-cloud-workloadmanager-bom/pom.xml new file mode 100644 index 000000000000..38161eb2d2e2 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager-bom/pom.xml @@ -0,0 +1,43 @@ + + + 4.0.0 + com.google.cloud + google-cloud-workloadmanager-bom + 0.1.0 + pom + + com.google.cloud + google-cloud-pom-parent + 1.79.0 + ../../google-cloud-pom-parent/pom.xml + + + Google Workload Manager API BOM + + BOM for Workload Manager API + + + + true + + + + + + com.google.cloud + google-cloud-workloadmanager + 0.1.0 + + + com.google.api.grpc + grpc-google-cloud-workloadmanager-v1 + 0.1.0 + + + com.google.api.grpc + proto-google-cloud-workloadmanager-v1 + 0.1.0 + + + + diff --git a/java-workloadmanager/google-cloud-workloadmanager/pom.xml b/java-workloadmanager/google-cloud-workloadmanager/pom.xml new file mode 100644 index 000000000000..9ccb7758a73d --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/pom.xml @@ -0,0 +1,115 @@ + + + 4.0.0 + com.google.cloud + google-cloud-workloadmanager + 0.1.0 + jar + Google Workload Manager API + Workload Manager API 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. + + com.google.cloud + google-cloud-workloadmanager-parent + 0.1.0 + + + google-cloud-workloadmanager + + + + 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-workloadmanager-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-workloadmanager-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-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClient.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClient.java new file mode 100644 index 000000000000..bbe685ee0624 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClient.java @@ -0,0 +1,2814 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workloadmanager.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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.stub.WorkloadManagerStub; +import com.google.cloud.workloadmanager.v1.stub.WorkloadManagerStubSettings; +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 Workload Manager provides various tools to deploy, validate and observe + * your workloads running on Google Cloud. + * + *

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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+ *   EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
+ *   Evaluation response = workloadManagerClient.getEvaluation(name);
+ * }
+ * }
+ * + *

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

ListEvaluations

Lists Evaluations in a given project and location.

+ *

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

+ *
    + *
  • listEvaluations(ListEvaluationsRequest request) + *

+ *

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

+ *
    + *
  • listEvaluations(LocationName parent) + *

  • listEvaluations(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.

+ *
    + *
  • listEvaluationsPagedCallable() + *

  • listEvaluationsCallable() + *

+ *

GetEvaluation

Gets details of a single Evaluation.

+ *

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

+ *
    + *
  • getEvaluation(GetEvaluationRequest request) + *

+ *

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

+ *
    + *
  • getEvaluation(EvaluationName name) + *

  • getEvaluation(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.

+ *
    + *
  • getEvaluationCallable() + *

+ *

CreateEvaluation

Creates a new Evaluation in a given project and location.

+ *

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

+ *
    + *
  • createEvaluationAsync(CreateEvaluationRequest request) + *

+ *

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

+ *
    + *
  • createEvaluationAsync(LocationName parent, Evaluation evaluation, String evaluationId) + *

  • createEvaluationAsync(String parent, Evaluation evaluation, String evaluationId) + *

+ *

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

+ *
    + *
  • createEvaluationOperationCallable() + *

  • createEvaluationCallable() + *

+ *

UpdateEvaluation

Updates the parameters of a single Evaluation.

+ *

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

+ *
    + *
  • updateEvaluationAsync(UpdateEvaluationRequest request) + *

+ *

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

+ *
    + *
  • updateEvaluationAsync(Evaluation evaluation, 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.

+ *
    + *
  • updateEvaluationOperationCallable() + *

  • updateEvaluationCallable() + *

+ *

DeleteEvaluation

Deletes a single Evaluation.

+ *

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

+ *
    + *
  • deleteEvaluationAsync(DeleteEvaluationRequest request) + *

+ *

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

+ *
    + *
  • deleteEvaluationAsync(EvaluationName name) + *

  • deleteEvaluationAsync(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.

+ *
    + *
  • deleteEvaluationOperationCallable() + *

  • deleteEvaluationCallable() + *

+ *

ListExecutions

Lists Executions in a given project and location.

+ *

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

+ *
    + *
  • listExecutions(ListExecutionsRequest request) + *

+ *

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

+ *
    + *
  • listExecutions(EvaluationName parent) + *

  • listExecutions(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.

+ *
    + *
  • listExecutionsPagedCallable() + *

  • listExecutionsCallable() + *

+ *

GetExecution

Gets details of a single Execution.

+ *

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

+ *
    + *
  • getExecution(GetExecutionRequest request) + *

+ *

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

+ *
    + *
  • getExecution(ExecutionName name) + *

  • getExecution(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.

+ *
    + *
  • getExecutionCallable() + *

+ *

RunEvaluation

Creates a new Execution in a given project and location.

+ *

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

+ *
    + *
  • runEvaluationAsync(RunEvaluationRequest request) + *

+ *

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

+ *
    + *
  • runEvaluationAsync(EvaluationName name, Execution execution, String executionId) + *

  • runEvaluationAsync(String name, Execution execution, String executionId) + *

+ *

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

+ *
    + *
  • runEvaluationOperationCallable() + *

  • runEvaluationCallable() + *

+ *

DeleteExecution

Deletes a single Execution.

+ *

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

+ *
    + *
  • deleteExecutionAsync(DeleteExecutionRequest request) + *

+ *

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

+ *
    + *
  • deleteExecutionAsync(ExecutionName name) + *

  • deleteExecutionAsync(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.

+ *
    + *
  • deleteExecutionOperationCallable() + *

  • deleteExecutionCallable() + *

+ *

ListExecutionResults

Lists the result of a single evaluation.

+ *

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

+ *
    + *
  • listExecutionResults(ListExecutionResultsRequest request) + *

+ *

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

+ *
    + *
  • listExecutionResults(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.

+ *
    + *
  • listExecutionResultsPagedCallable() + *

  • listExecutionResultsCallable() + *

+ *

ListRules

Lists rules in a given project.

+ *

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

+ *
    + *
  • listRules(ListRulesRequest request) + *

+ *

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

+ *
    + *
  • listRules(LocationName parent) + *

  • listRules(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.

+ *
    + *
  • listRulesCallable() + *

+ *

ListScannedResources

List all scanned resources for a single Execution.

+ *

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

+ *
    + *
  • listScannedResources(ListScannedResourcesRequest request) + *

+ *

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

+ *
    + *
  • listScannedResources(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.

+ *
    + *
  • listScannedResourcesPagedCallable() + *

  • listScannedResourcesCallable() + *

+ *

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 WorkloadManagerSettings 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
+ * WorkloadManagerSettings workloadManagerSettings =
+ *     WorkloadManagerSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * WorkloadManagerClient workloadManagerClient =
+ *     WorkloadManagerClient.create(workloadManagerSettings);
+ * }
+ * + *

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
+ * WorkloadManagerSettings workloadManagerSettings =
+ *     WorkloadManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * WorkloadManagerClient workloadManagerClient =
+ *     WorkloadManagerClient.create(workloadManagerSettings);
+ * }
+ * + *

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
+ * WorkloadManagerSettings workloadManagerSettings =
+ *     WorkloadManagerSettings.newHttpJsonBuilder().build();
+ * WorkloadManagerClient workloadManagerClient =
+ *     WorkloadManagerClient.create(workloadManagerSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class WorkloadManagerClient implements BackgroundResource { + private final WorkloadManagerSettings settings; + private final WorkloadManagerStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of WorkloadManagerClient with default settings. */ + public static final WorkloadManagerClient create() throws IOException { + return create(WorkloadManagerSettings.newBuilder().build()); + } + + /** + * Constructs an instance of WorkloadManagerClient, 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 WorkloadManagerClient create(WorkloadManagerSettings settings) + throws IOException { + return new WorkloadManagerClient(settings); + } + + /** + * Constructs an instance of WorkloadManagerClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(WorkloadManagerSettings). + */ + public static final WorkloadManagerClient create(WorkloadManagerStub stub) { + return new WorkloadManagerClient(stub); + } + + /** + * Constructs an instance of WorkloadManagerClient, 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 WorkloadManagerClient(WorkloadManagerSettings settings) throws IOException { + this.settings = settings; + this.stub = ((WorkloadManagerStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected WorkloadManagerClient(WorkloadManagerStub 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 WorkloadManagerSettings getSettings() { + return settings; + } + + public WorkloadManagerStub 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 Evaluations 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Evaluation element : workloadManagerClient.listEvaluations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListEvaluationsRequest. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationsPagedResponse listEvaluations(LocationName parent) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEvaluations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Evaluations 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Evaluation element : workloadManagerClient.listEvaluations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListEvaluationsRequest. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationsPagedResponse listEvaluations(String parent) { + ListEvaluationsRequest request = ListEvaluationsRequest.newBuilder().setParent(parent).build(); + return listEvaluations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Evaluations 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListEvaluationsRequest request =
+   *       ListEvaluationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Evaluation element : workloadManagerClient.listEvaluations(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 ListEvaluationsPagedResponse listEvaluations(ListEvaluationsRequest request) { + return listEvaluationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Evaluations 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListEvaluationsRequest request =
+   *       ListEvaluationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.listEvaluationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Evaluation element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listEvaluationsPagedCallable() { + return stub.listEvaluationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Evaluations 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListEvaluationsRequest request =
+   *       ListEvaluationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListEvaluationsResponse response =
+   *         workloadManagerClient.listEvaluationsCallable().call(request);
+   *     for (Evaluation element : response.getEvaluationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listEvaluationsCallable() { + return stub.listEvaluationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Evaluation. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   GetEvaluationRequest request =
+   *       GetEvaluationRequest.newBuilder()
+   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
+   *           .build();
+   *   Evaluation response = workloadManagerClient.getEvaluation(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 Evaluation getEvaluation(GetEvaluationRequest request) { + return getEvaluationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Evaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   GetEvaluationRequest request =
+   *       GetEvaluationRequest.newBuilder()
+   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.getEvaluationCallable().futureCall(request);
+   *   // Do something.
+   *   Evaluation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getEvaluationCallable() { + return stub.getEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Evaluation 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Evaluation evaluation = Evaluation.newBuilder().build();
+   *   String evaluationId = "evaluationId407318903";
+   *   Evaluation response =
+   *       workloadManagerClient.createEvaluationAsync(parent, evaluation, evaluationId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource prefix of the evaluation location using the form: + * `projects/{project_id}/locations/{location_id}`. + * @param evaluation Required. The resource being created. + * @param evaluationId Required. Id of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEvaluationAsync( + LocationName parent, Evaluation evaluation, String evaluationId) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setEvaluation(evaluation) + .setEvaluationId(evaluationId) + .build(); + return createEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Evaluation 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Evaluation evaluation = Evaluation.newBuilder().build();
+   *   String evaluationId = "evaluationId407318903";
+   *   Evaluation response =
+   *       workloadManagerClient.createEvaluationAsync(parent, evaluation, evaluationId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource prefix of the evaluation location using the form: + * `projects/{project_id}/locations/{location_id}`. + * @param evaluation Required. The resource being created. + * @param evaluationId Required. Id of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEvaluationAsync( + String parent, Evaluation evaluation, String evaluationId) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(parent) + .setEvaluation(evaluation) + .setEvaluationId(evaluationId) + .build(); + return createEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Evaluation 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   CreateEvaluationRequest request =
+   *       CreateEvaluationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setEvaluationId("evaluationId407318903")
+   *           .setEvaluation(Evaluation.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Evaluation response = workloadManagerClient.createEvaluationAsync(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 createEvaluationAsync( + CreateEvaluationRequest request) { + return createEvaluationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Evaluation 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   CreateEvaluationRequest request =
+   *       CreateEvaluationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setEvaluationId("evaluationId407318903")
+   *           .setEvaluation(Evaluation.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       workloadManagerClient.createEvaluationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Evaluation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createEvaluationOperationCallable() { + return stub.createEvaluationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Evaluation 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   CreateEvaluationRequest request =
+   *       CreateEvaluationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setEvaluationId("evaluationId407318903")
+   *           .setEvaluation(Evaluation.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.createEvaluationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createEvaluationCallable() { + return stub.createEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Evaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   Evaluation evaluation = Evaluation.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Evaluation response =
+   *       workloadManagerClient.updateEvaluationAsync(evaluation, updateMask).get();
+   * }
+   * }
+ * + * @param evaluation Required. The resource being updated. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * Evaluation resource by the update. The fields specified in the update_mask are relative to + * the resource, not the full request. A field will be overwritten if it is in the mask. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateEvaluationAsync( + Evaluation evaluation, FieldMask updateMask) { + UpdateEvaluationRequest request = + UpdateEvaluationRequest.newBuilder() + .setEvaluation(evaluation) + .setUpdateMask(updateMask) + .build(); + return updateEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Evaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   UpdateEvaluationRequest request =
+   *       UpdateEvaluationRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setEvaluation(Evaluation.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Evaluation response = workloadManagerClient.updateEvaluationAsync(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 updateEvaluationAsync( + UpdateEvaluationRequest request) { + return updateEvaluationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Evaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   UpdateEvaluationRequest request =
+   *       UpdateEvaluationRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setEvaluation(Evaluation.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       workloadManagerClient.updateEvaluationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Evaluation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateEvaluationOperationCallable() { + return stub.updateEvaluationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Evaluation. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   DeleteEvaluationRequest request =
+   *       DeleteEvaluationRequest.newBuilder()
+   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   workloadManagerClient.deleteEvaluationAsync(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 deleteEvaluationAsync( + DeleteEvaluationRequest request) { + return deleteEvaluationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Evaluation. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   DeleteEvaluationRequest request =
+   *       DeleteEvaluationRequest.newBuilder()
+   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.deleteEvaluationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteEvaluationCallable() { + return stub.deleteEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
+   *   for (Execution element : workloadManagerClient.listExecutions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource prefix of the Execution using the form: + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExecutionsPagedResponse listExecutions(EvaluationName parent) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExecutions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   String parent = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString();
+   *   for (Execution element : workloadManagerClient.listExecutions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource prefix of the Execution using the form: + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExecutionsPagedResponse listExecutions(String parent) { + ListExecutionsRequest request = ListExecutionsRequest.newBuilder().setParent(parent).build(); + return listExecutions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListExecutionsRequest request =
+   *       ListExecutionsRequest.newBuilder()
+   *           .setParent(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Execution element : workloadManagerClient.listExecutions(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 ListExecutionsPagedResponse listExecutions(ListExecutionsRequest request) { + return listExecutionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListExecutionsRequest request =
+   *       ListExecutionsRequest.newBuilder()
+   *           .setParent(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.listExecutionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Execution element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExecutionsPagedCallable() { + return stub.listExecutionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListExecutionsRequest request =
+   *       ListExecutionsRequest.newBuilder()
+   *           .setParent(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListExecutionsResponse response =
+   *         workloadManagerClient.listExecutionsCallable().call(request);
+   *     for (Execution element : response.getExecutionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExecutionsCallable() { + return stub.listExecutionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Execution. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   GetExecutionRequest request =
+   *       GetExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]")
+   *                   .toString())
+   *           .build();
+   *   Execution response = workloadManagerClient.getExecution(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 Execution getExecution(GetExecutionRequest request) { + return getExecutionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   GetExecutionRequest request =
+   *       GetExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.getExecutionCallable().futureCall(request);
+   *   // Do something.
+   *   Execution response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getExecutionCallable() { + return stub.getExecutionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Execution 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
+   *   Execution execution = Execution.newBuilder().build();
+   *   String executionId = "executionId-454906285";
+   *   Execution response =
+   *       workloadManagerClient.runEvaluationAsync(name, execution, executionId).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Evaluation using the form: + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + * @param execution Required. The resource being created. + * @param executionId Required. ID of the execution which will be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture runEvaluationAsync( + EvaluationName name, Execution execution, String executionId) { + RunEvaluationRequest request = + RunEvaluationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setExecution(execution) + .setExecutionId(executionId) + .build(); + return runEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Execution 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   String name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString();
+   *   Execution execution = Execution.newBuilder().build();
+   *   String executionId = "executionId-454906285";
+   *   Execution response =
+   *       workloadManagerClient.runEvaluationAsync(name, execution, executionId).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Evaluation using the form: + * `projects/{project}/locations/{location}/evaluations/{evaluation}`. + * @param execution Required. The resource being created. + * @param executionId Required. ID of the execution which will be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture runEvaluationAsync( + String name, Execution execution, String executionId) { + RunEvaluationRequest request = + RunEvaluationRequest.newBuilder() + .setName(name) + .setExecution(execution) + .setExecutionId(executionId) + .build(); + return runEvaluationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Execution 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   RunEvaluationRequest request =
+   *       RunEvaluationRequest.newBuilder()
+   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
+   *           .setExecutionId("executionId-454906285")
+   *           .setExecution(Execution.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Execution response = workloadManagerClient.runEvaluationAsync(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 runEvaluationAsync( + RunEvaluationRequest request) { + return runEvaluationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Execution 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   RunEvaluationRequest request =
+   *       RunEvaluationRequest.newBuilder()
+   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
+   *           .setExecutionId("executionId-454906285")
+   *           .setExecution(Execution.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       workloadManagerClient.runEvaluationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Execution response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + runEvaluationOperationCallable() { + return stub.runEvaluationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Execution 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   RunEvaluationRequest request =
+   *       RunEvaluationRequest.newBuilder()
+   *           .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString())
+   *           .setExecutionId("executionId-454906285")
+   *           .setExecution(Execution.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.runEvaluationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable runEvaluationCallable() { + return stub.runEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Execution. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   DeleteExecutionRequest request =
+   *       DeleteExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   workloadManagerClient.deleteExecutionAsync(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 deleteExecutionAsync( + DeleteExecutionRequest request) { + return deleteExecutionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Execution. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   DeleteExecutionRequest request =
+   *       DeleteExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.deleteExecutionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteExecutionCallable() { + return stub.deleteExecutionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the result of a single evaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   String parent = "parent-995424086";
+   *   for (ExecutionResult element :
+   *       workloadManagerClient.listExecutionResults(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The execution results. Format: + * {parent}/evaluations/*/executions/*/results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExecutionResultsPagedResponse listExecutionResults(String parent) { + ListExecutionResultsRequest request = + ListExecutionResultsRequest.newBuilder().setParent(parent).build(); + return listExecutionResults(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the result of a single evaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListExecutionResultsRequest request =
+   *       ListExecutionResultsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (ExecutionResult element :
+   *       workloadManagerClient.listExecutionResults(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 ListExecutionResultsPagedResponse listExecutionResults( + ListExecutionResultsRequest request) { + return listExecutionResultsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the result of a single evaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListExecutionResultsRequest request =
+   *       ListExecutionResultsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.listExecutionResultsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ExecutionResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExecutionResultsPagedCallable() { + return stub.listExecutionResultsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the result of a single evaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListExecutionResultsRequest request =
+   *       ListExecutionResultsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListExecutionResultsResponse response =
+   *         workloadManagerClient.listExecutionResultsCallable().call(request);
+   *     for (ExecutionResult element : response.getExecutionResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExecutionResultsCallable() { + return stub.listExecutionResultsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rules in a given 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ListRulesResponse response = workloadManagerClient.listRules(parent);
+   * }
+   * }
+ * + * @param parent Required. The [project] on which to execute the request. The format is: + * projects/{project_id}/locations/{location} Currently, the pre-defined rules are global + * available to all projects and all regions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRulesResponse listRules(LocationName parent) { + ListRulesRequest request = + ListRulesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listRules(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rules in a given 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   ListRulesResponse response = workloadManagerClient.listRules(parent);
+   * }
+   * }
+ * + * @param parent Required. The [project] on which to execute the request. The format is: + * projects/{project_id}/locations/{location} Currently, the pre-defined rules are global + * available to all projects and all regions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRulesResponse listRules(String parent) { + ListRulesRequest request = ListRulesRequest.newBuilder().setParent(parent).build(); + return listRules(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rules in a given 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListRulesRequest request =
+   *       ListRulesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setCustomRulesBucket("customRulesBucket-888019568")
+   *           .build();
+   *   ListRulesResponse response = workloadManagerClient.listRules(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 ListRulesResponse listRules(ListRulesRequest request) { + return listRulesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rules in a given 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListRulesRequest request =
+   *       ListRulesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setCustomRulesBucket("customRulesBucket-888019568")
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.listRulesCallable().futureCall(request);
+   *   // Do something.
+   *   ListRulesResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable listRulesCallable() { + return stub.listRulesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all scanned resources for a single Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   String parent = "parent-995424086";
+   *   for (ScannedResource element :
+   *       workloadManagerClient.listScannedResources(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent for ListScannedResourcesRequest. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScannedResourcesPagedResponse listScannedResources(String parent) { + ListScannedResourcesRequest request = + ListScannedResourcesRequest.newBuilder().setParent(parent).build(); + return listScannedResources(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all scanned resources for a single Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListScannedResourcesRequest request =
+   *       ListScannedResourcesRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setRule("rule3512060")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (ScannedResource element :
+   *       workloadManagerClient.listScannedResources(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 ListScannedResourcesPagedResponse listScannedResources( + ListScannedResourcesRequest request) { + return listScannedResourcesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all scanned resources for a single Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListScannedResourcesRequest request =
+   *       ListScannedResourcesRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setRule("rule3512060")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.listScannedResourcesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ScannedResource element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listScannedResourcesPagedCallable() { + return stub.listScannedResourcesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all scanned resources for a single Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListScannedResourcesRequest request =
+   *       ListScannedResourcesRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setRule("rule3512060")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListScannedResourcesResponse response =
+   *         workloadManagerClient.listScannedResourcesCallable().call(request);
+   *     for (ScannedResource element : response.getScannedResourcesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listScannedResourcesCallable() { + return stub.listScannedResourcesCallable(); + } + + // 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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : workloadManagerClient.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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       workloadManagerClient.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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         workloadManagerClient.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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = workloadManagerClient.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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = workloadManagerClient.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 ListEvaluationsPagedResponse + extends AbstractPagedListResponse< + ListEvaluationsRequest, + ListEvaluationsResponse, + Evaluation, + ListEvaluationsPage, + ListEvaluationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEvaluationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEvaluationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEvaluationsPagedResponse(ListEvaluationsPage page) { + super(page, ListEvaluationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListEvaluationsPage + extends AbstractPage< + ListEvaluationsRequest, ListEvaluationsResponse, Evaluation, ListEvaluationsPage> { + + private ListEvaluationsPage( + PageContext context, + ListEvaluationsResponse response) { + super(context, response); + } + + private static ListEvaluationsPage createEmptyPage() { + return new ListEvaluationsPage(null, null); + } + + @Override + protected ListEvaluationsPage createPage( + PageContext context, + ListEvaluationsResponse response) { + return new ListEvaluationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEvaluationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEvaluationsRequest, + ListEvaluationsResponse, + Evaluation, + ListEvaluationsPage, + ListEvaluationsFixedSizeCollection> { + + private ListEvaluationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEvaluationsFixedSizeCollection createEmptyCollection() { + return new ListEvaluationsFixedSizeCollection(null, 0); + } + + @Override + protected ListEvaluationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEvaluationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListExecutionsPagedResponse + extends AbstractPagedListResponse< + ListExecutionsRequest, + ListExecutionsResponse, + Execution, + ListExecutionsPage, + ListExecutionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExecutionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListExecutionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListExecutionsPagedResponse(ListExecutionsPage page) { + super(page, ListExecutionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListExecutionsPage + extends AbstractPage< + ListExecutionsRequest, ListExecutionsResponse, Execution, ListExecutionsPage> { + + private ListExecutionsPage( + PageContext context, + ListExecutionsResponse response) { + super(context, response); + } + + private static ListExecutionsPage createEmptyPage() { + return new ListExecutionsPage(null, null); + } + + @Override + protected ListExecutionsPage createPage( + PageContext context, + ListExecutionsResponse response) { + return new ListExecutionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListExecutionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListExecutionsRequest, + ListExecutionsResponse, + Execution, + ListExecutionsPage, + ListExecutionsFixedSizeCollection> { + + private ListExecutionsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListExecutionsFixedSizeCollection createEmptyCollection() { + return new ListExecutionsFixedSizeCollection(null, 0); + } + + @Override + protected ListExecutionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExecutionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListExecutionResultsPagedResponse + extends AbstractPagedListResponse< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ExecutionResult, + ListExecutionResultsPage, + ListExecutionResultsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExecutionResultsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListExecutionResultsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListExecutionResultsPagedResponse(ListExecutionResultsPage page) { + super(page, ListExecutionResultsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListExecutionResultsPage + extends AbstractPage< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ExecutionResult, + ListExecutionResultsPage> { + + private ListExecutionResultsPage( + PageContext + context, + ListExecutionResultsResponse response) { + super(context, response); + } + + private static ListExecutionResultsPage createEmptyPage() { + return new ListExecutionResultsPage(null, null); + } + + @Override + protected ListExecutionResultsPage createPage( + PageContext + context, + ListExecutionResultsResponse response) { + return new ListExecutionResultsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListExecutionResultsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ExecutionResult, + ListExecutionResultsPage, + ListExecutionResultsFixedSizeCollection> { + + private ListExecutionResultsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListExecutionResultsFixedSizeCollection createEmptyCollection() { + return new ListExecutionResultsFixedSizeCollection(null, 0); + } + + @Override + protected ListExecutionResultsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExecutionResultsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListScannedResourcesPagedResponse + extends AbstractPagedListResponse< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ScannedResource, + ListScannedResourcesPage, + ListScannedResourcesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListScannedResourcesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListScannedResourcesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListScannedResourcesPagedResponse(ListScannedResourcesPage page) { + super(page, ListScannedResourcesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListScannedResourcesPage + extends AbstractPage< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ScannedResource, + ListScannedResourcesPage> { + + private ListScannedResourcesPage( + PageContext + context, + ListScannedResourcesResponse response) { + super(context, response); + } + + private static ListScannedResourcesPage createEmptyPage() { + return new ListScannedResourcesPage(null, null); + } + + @Override + protected ListScannedResourcesPage createPage( + PageContext + context, + ListScannedResourcesResponse response) { + return new ListScannedResourcesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListScannedResourcesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ScannedResource, + ListScannedResourcesPage, + ListScannedResourcesFixedSizeCollection> { + + private ListScannedResourcesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListScannedResourcesFixedSizeCollection createEmptyCollection() { + return new ListScannedResourcesFixedSizeCollection(null, 0); + } + + @Override + protected ListScannedResourcesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListScannedResourcesFixedSizeCollection(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-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerSettings.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerSettings.java new file mode 100644 index 000000000000..e480ec9bb3dc --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerSettings.java @@ -0,0 +1,476 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workloadmanager.v1; + +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListEvaluationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionResultsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListScannedResourcesPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.stub.WorkloadManagerStubSettings; +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 WorkloadManagerClient}. + * + *

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

    + *
  • The default service address (workloadmanager.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 getEvaluation: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WorkloadManagerSettings.Builder workloadManagerSettingsBuilder =
+ *     WorkloadManagerSettings.newBuilder();
+ * workloadManagerSettingsBuilder
+ *     .getEvaluationSettings()
+ *     .setRetrySettings(
+ *         workloadManagerSettingsBuilder
+ *             .getEvaluationSettings()
+ *             .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());
+ * WorkloadManagerSettings workloadManagerSettings = workloadManagerSettingsBuilder.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 createEvaluation: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WorkloadManagerSettings.Builder workloadManagerSettingsBuilder =
+ *     WorkloadManagerSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * workloadManagerSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class WorkloadManagerSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listEvaluations. */ + public PagedCallSettings< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).listEvaluationsSettings(); + } + + /** Returns the object with the settings used for calls to getEvaluation. */ + public UnaryCallSettings getEvaluationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).getEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public UnaryCallSettings createEvaluationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).createEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public OperationCallSettings + createEvaluationOperationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).createEvaluationOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateEvaluation. */ + public UnaryCallSettings updateEvaluationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).updateEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to updateEvaluation. */ + public OperationCallSettings + updateEvaluationOperationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).updateEvaluationOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteEvaluation. */ + public UnaryCallSettings deleteEvaluationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).deleteEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to deleteEvaluation. */ + public OperationCallSettings + deleteEvaluationOperationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).deleteEvaluationOperationSettings(); + } + + /** Returns the object with the settings used for calls to listExecutions. */ + public PagedCallSettings< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).listExecutionsSettings(); + } + + /** Returns the object with the settings used for calls to getExecution. */ + public UnaryCallSettings getExecutionSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).getExecutionSettings(); + } + + /** Returns the object with the settings used for calls to runEvaluation. */ + public UnaryCallSettings runEvaluationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).runEvaluationSettings(); + } + + /** Returns the object with the settings used for calls to runEvaluation. */ + public OperationCallSettings + runEvaluationOperationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).runEvaluationOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteExecution. */ + public UnaryCallSettings deleteExecutionSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).deleteExecutionSettings(); + } + + /** Returns the object with the settings used for calls to deleteExecution. */ + public OperationCallSettings + deleteExecutionOperationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).deleteExecutionOperationSettings(); + } + + /** Returns the object with the settings used for calls to listExecutionResults. */ + public PagedCallSettings< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ListExecutionResultsPagedResponse> + listExecutionResultsSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).listExecutionResultsSettings(); + } + + /** Returns the object with the settings used for calls to listRules. */ + public UnaryCallSettings listRulesSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).listRulesSettings(); + } + + /** Returns the object with the settings used for calls to listScannedResources. */ + public PagedCallSettings< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ListScannedResourcesPagedResponse> + listScannedResourcesSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).listScannedResourcesSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((WorkloadManagerStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final WorkloadManagerSettings create(WorkloadManagerStubSettings stub) + throws IOException { + return new WorkloadManagerSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return WorkloadManagerStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return WorkloadManagerStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return WorkloadManagerStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return WorkloadManagerStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return WorkloadManagerStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return WorkloadManagerStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return WorkloadManagerStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return WorkloadManagerStubSettings.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 WorkloadManagerSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for WorkloadManagerSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(WorkloadManagerStubSettings.newBuilder(clientContext)); + } + + protected Builder(WorkloadManagerSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(WorkloadManagerStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(WorkloadManagerStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(WorkloadManagerStubSettings.newHttpJsonBuilder()); + } + + public WorkloadManagerStubSettings.Builder getStubSettingsBuilder() { + return ((WorkloadManagerStubSettings.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 listEvaluations. */ + public PagedCallSettings.Builder< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return getStubSettingsBuilder().listEvaluationsSettings(); + } + + /** Returns the builder for the settings used for calls to getEvaluation. */ + public UnaryCallSettings.Builder getEvaluationSettings() { + return getStubSettingsBuilder().getEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public UnaryCallSettings.Builder + createEvaluationSettings() { + return getStubSettingsBuilder().createEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public OperationCallSettings.Builder + createEvaluationOperationSettings() { + return getStubSettingsBuilder().createEvaluationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateEvaluation. */ + public UnaryCallSettings.Builder + updateEvaluationSettings() { + return getStubSettingsBuilder().updateEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to updateEvaluation. */ + public OperationCallSettings.Builder + updateEvaluationOperationSettings() { + return getStubSettingsBuilder().updateEvaluationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEvaluation. */ + public UnaryCallSettings.Builder + deleteEvaluationSettings() { + return getStubSettingsBuilder().deleteEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEvaluation. */ + public OperationCallSettings.Builder + deleteEvaluationOperationSettings() { + return getStubSettingsBuilder().deleteEvaluationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listExecutions. */ + public PagedCallSettings.Builder< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return getStubSettingsBuilder().listExecutionsSettings(); + } + + /** Returns the builder for the settings used for calls to getExecution. */ + public UnaryCallSettings.Builder getExecutionSettings() { + return getStubSettingsBuilder().getExecutionSettings(); + } + + /** Returns the builder for the settings used for calls to runEvaluation. */ + public UnaryCallSettings.Builder runEvaluationSettings() { + return getStubSettingsBuilder().runEvaluationSettings(); + } + + /** Returns the builder for the settings used for calls to runEvaluation. */ + public OperationCallSettings.Builder + runEvaluationOperationSettings() { + return getStubSettingsBuilder().runEvaluationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExecution. */ + public UnaryCallSettings.Builder deleteExecutionSettings() { + return getStubSettingsBuilder().deleteExecutionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExecution. */ + public OperationCallSettings.Builder + deleteExecutionOperationSettings() { + return getStubSettingsBuilder().deleteExecutionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listExecutionResults. */ + public PagedCallSettings.Builder< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ListExecutionResultsPagedResponse> + listExecutionResultsSettings() { + return getStubSettingsBuilder().listExecutionResultsSettings(); + } + + /** Returns the builder for the settings used for calls to listRules. */ + public UnaryCallSettings.Builder listRulesSettings() { + return getStubSettingsBuilder().listRulesSettings(); + } + + /** Returns the builder for the settings used for calls to listScannedResources. */ + public PagedCallSettings.Builder< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ListScannedResourcesPagedResponse> + listScannedResourcesSettings() { + return getStubSettingsBuilder().listScannedResourcesSettings(); + } + + /** 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 WorkloadManagerSettings build() throws IOException { + return new WorkloadManagerSettings(this); + } + } +} diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/gapic_metadata.json b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/gapic_metadata.json new file mode 100644 index 000000000000..b88544768109 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/gapic_metadata.json @@ -0,0 +1,60 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.workloadmanager.v1", + "libraryPackage": "com.google.cloud.workloadmanager.v1", + "services": { + "WorkloadManager": { + "clients": { + "grpc": { + "libraryClient": "WorkloadManagerClient", + "rpcs": { + "CreateEvaluation": { + "methods": ["createEvaluationAsync", "createEvaluationAsync", "createEvaluationAsync", "createEvaluationOperationCallable", "createEvaluationCallable"] + }, + "DeleteEvaluation": { + "methods": ["deleteEvaluationAsync", "deleteEvaluationAsync", "deleteEvaluationAsync", "deleteEvaluationOperationCallable", "deleteEvaluationCallable"] + }, + "DeleteExecution": { + "methods": ["deleteExecutionAsync", "deleteExecutionAsync", "deleteExecutionAsync", "deleteExecutionOperationCallable", "deleteExecutionCallable"] + }, + "GetEvaluation": { + "methods": ["getEvaluation", "getEvaluation", "getEvaluation", "getEvaluationCallable"] + }, + "GetExecution": { + "methods": ["getExecution", "getExecution", "getExecution", "getExecutionCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListEvaluations": { + "methods": ["listEvaluations", "listEvaluations", "listEvaluations", "listEvaluationsPagedCallable", "listEvaluationsCallable"] + }, + "ListExecutionResults": { + "methods": ["listExecutionResults", "listExecutionResults", "listExecutionResultsPagedCallable", "listExecutionResultsCallable"] + }, + "ListExecutions": { + "methods": ["listExecutions", "listExecutions", "listExecutions", "listExecutionsPagedCallable", "listExecutionsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListRules": { + "methods": ["listRules", "listRules", "listRules", "listRulesCallable"] + }, + "ListScannedResources": { + "methods": ["listScannedResources", "listScannedResources", "listScannedResourcesPagedCallable", "listScannedResourcesCallable"] + }, + "RunEvaluation": { + "methods": ["runEvaluationAsync", "runEvaluationAsync", "runEvaluationAsync", "runEvaluationOperationCallable", "runEvaluationCallable"] + }, + "UpdateEvaluation": { + "methods": ["updateEvaluationAsync", "updateEvaluationAsync", "updateEvaluationOperationCallable", "updateEvaluationCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/package-info.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/package-info.java new file mode 100644 index 000000000000..833d45b397a5 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/package-info.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. + */ + +/** + * A client to Workload Manager API + * + *

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

======================= WorkloadManagerClient ======================= + * + *

Service Description: The Workload Manager provides various tools to deploy, validate and + * observe your workloads running on Google Cloud. + * + *

Sample for WorkloadManagerClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) {
+ *   EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]");
+ *   Evaluation response = workloadManagerClient.getEvaluation(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.workloadmanager.v1; + +import javax.annotation.Generated; diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/GrpcWorkloadManagerCallableFactory.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/GrpcWorkloadManagerCallableFactory.java new file mode 100644 index 000000000000..c220673c3a07 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/GrpcWorkloadManagerCallableFactory.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.workloadmanager.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 WorkloadManager service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcWorkloadManagerCallableFactory 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-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/GrpcWorkloadManagerStub.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/GrpcWorkloadManagerStub.java new file mode 100644 index 000000000000..e4ee09e9c957 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/GrpcWorkloadManagerStub.java @@ -0,0 +1,729 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workloadmanager.v1.stub; + +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListEvaluationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionResultsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListScannedResourcesPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.CreateEvaluationRequest; +import com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest; +import com.google.cloud.workloadmanager.v1.DeleteExecutionRequest; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.GetEvaluationRequest; +import com.google.cloud.workloadmanager.v1.GetExecutionRequest; +import com.google.cloud.workloadmanager.v1.ListEvaluationsRequest; +import com.google.cloud.workloadmanager.v1.ListEvaluationsResponse; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse; +import com.google.cloud.workloadmanager.v1.ListExecutionsRequest; +import com.google.cloud.workloadmanager.v1.ListExecutionsResponse; +import com.google.cloud.workloadmanager.v1.ListRulesRequest; +import com.google.cloud.workloadmanager.v1.ListRulesResponse; +import com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest; +import com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse; +import com.google.cloud.workloadmanager.v1.OperationMetadata; +import com.google.cloud.workloadmanager.v1.RunEvaluationRequest; +import com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest; +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 WorkloadManager service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcWorkloadManagerStub extends WorkloadManagerStub { + private static final MethodDescriptor + listEvaluationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/ListEvaluations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListEvaluationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEvaluationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/GetEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(GetEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Evaluation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/CreateEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/UpdateEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/DeleteEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listExecutionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/ListExecutions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExecutionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExecutionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getExecutionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/GetExecution") + .setRequestMarshaller(ProtoUtils.marshaller(GetExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Execution.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + runEvaluationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/RunEvaluation") + .setRequestMarshaller( + ProtoUtils.marshaller(RunEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteExecutionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/DeleteExecution") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listExecutionResultsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.workloadmanager.v1.WorkloadManager/ListExecutionResults") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExecutionResultsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExecutionResultsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listRulesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/ListRules") + .setRequestMarshaller(ProtoUtils.marshaller(ListRulesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListRulesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listScannedResourcesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.workloadmanager.v1.WorkloadManager/ListScannedResources") + .setRequestMarshaller( + ProtoUtils.marshaller(ListScannedResourcesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListScannedResourcesResponse.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 + listEvaluationsCallable; + private final UnaryCallable + listEvaluationsPagedCallable; + private final UnaryCallable getEvaluationCallable; + private final UnaryCallable createEvaluationCallable; + private final OperationCallable + createEvaluationOperationCallable; + private final UnaryCallable updateEvaluationCallable; + private final OperationCallable + updateEvaluationOperationCallable; + private final UnaryCallable deleteEvaluationCallable; + private final OperationCallable + deleteEvaluationOperationCallable; + private final UnaryCallable listExecutionsCallable; + private final UnaryCallable + listExecutionsPagedCallable; + private final UnaryCallable getExecutionCallable; + private final UnaryCallable runEvaluationCallable; + private final OperationCallable + runEvaluationOperationCallable; + private final UnaryCallable deleteExecutionCallable; + private final OperationCallable + deleteExecutionOperationCallable; + private final UnaryCallable + listExecutionResultsCallable; + private final UnaryCallable + listExecutionResultsPagedCallable; + private final UnaryCallable listRulesCallable; + private final UnaryCallable + listScannedResourcesCallable; + private final UnaryCallable + listScannedResourcesPagedCallable; + 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 GrpcWorkloadManagerStub create(WorkloadManagerStubSettings settings) + throws IOException { + return new GrpcWorkloadManagerStub(settings, ClientContext.create(settings)); + } + + public static final GrpcWorkloadManagerStub create(ClientContext clientContext) + throws IOException { + return new GrpcWorkloadManagerStub( + WorkloadManagerStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcWorkloadManagerStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcWorkloadManagerStub( + WorkloadManagerStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcWorkloadManagerStub, 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 GrpcWorkloadManagerStub( + WorkloadManagerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcWorkloadManagerCallableFactory()); + } + + /** + * Constructs an instance of GrpcWorkloadManagerStub, 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 GrpcWorkloadManagerStub( + WorkloadManagerStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listEvaluationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listEvaluationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("evaluation.name", String.valueOf(request.getEvaluation().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listExecutionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listExecutionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getExecutionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExecutionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings runEvaluationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runEvaluationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteExecutionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExecutionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listExecutionResultsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listExecutionResultsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listRulesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listRulesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listScannedResourcesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listScannedResourcesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + 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.listEvaluationsCallable = + callableFactory.createUnaryCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.listEvaluationsPagedCallable = + callableFactory.createPagedCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.getEvaluationCallable = + callableFactory.createUnaryCallable( + getEvaluationTransportSettings, settings.getEvaluationSettings(), clientContext); + this.createEvaluationCallable = + callableFactory.createUnaryCallable( + createEvaluationTransportSettings, settings.createEvaluationSettings(), clientContext); + this.createEvaluationOperationCallable = + callableFactory.createOperationCallable( + createEvaluationTransportSettings, + settings.createEvaluationOperationSettings(), + clientContext, + operationsStub); + this.updateEvaluationCallable = + callableFactory.createUnaryCallable( + updateEvaluationTransportSettings, settings.updateEvaluationSettings(), clientContext); + this.updateEvaluationOperationCallable = + callableFactory.createOperationCallable( + updateEvaluationTransportSettings, + settings.updateEvaluationOperationSettings(), + clientContext, + operationsStub); + this.deleteEvaluationCallable = + callableFactory.createUnaryCallable( + deleteEvaluationTransportSettings, settings.deleteEvaluationSettings(), clientContext); + this.deleteEvaluationOperationCallable = + callableFactory.createOperationCallable( + deleteEvaluationTransportSettings, + settings.deleteEvaluationOperationSettings(), + clientContext, + operationsStub); + this.listExecutionsCallable = + callableFactory.createUnaryCallable( + listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); + this.listExecutionsPagedCallable = + callableFactory.createPagedCallable( + listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); + this.getExecutionCallable = + callableFactory.createUnaryCallable( + getExecutionTransportSettings, settings.getExecutionSettings(), clientContext); + this.runEvaluationCallable = + callableFactory.createUnaryCallable( + runEvaluationTransportSettings, settings.runEvaluationSettings(), clientContext); + this.runEvaluationOperationCallable = + callableFactory.createOperationCallable( + runEvaluationTransportSettings, + settings.runEvaluationOperationSettings(), + clientContext, + operationsStub); + this.deleteExecutionCallable = + callableFactory.createUnaryCallable( + deleteExecutionTransportSettings, settings.deleteExecutionSettings(), clientContext); + this.deleteExecutionOperationCallable = + callableFactory.createOperationCallable( + deleteExecutionTransportSettings, + settings.deleteExecutionOperationSettings(), + clientContext, + operationsStub); + this.listExecutionResultsCallable = + callableFactory.createUnaryCallable( + listExecutionResultsTransportSettings, + settings.listExecutionResultsSettings(), + clientContext); + this.listExecutionResultsPagedCallable = + callableFactory.createPagedCallable( + listExecutionResultsTransportSettings, + settings.listExecutionResultsSettings(), + clientContext); + this.listRulesCallable = + callableFactory.createUnaryCallable( + listRulesTransportSettings, settings.listRulesSettings(), clientContext); + this.listScannedResourcesCallable = + callableFactory.createUnaryCallable( + listScannedResourcesTransportSettings, + settings.listScannedResourcesSettings(), + clientContext); + this.listScannedResourcesPagedCallable = + callableFactory.createPagedCallable( + listScannedResourcesTransportSettings, + settings.listScannedResourcesSettings(), + 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 listEvaluationsCallable() { + return listEvaluationsCallable; + } + + @Override + public UnaryCallable + listEvaluationsPagedCallable() { + return listEvaluationsPagedCallable; + } + + @Override + public UnaryCallable getEvaluationCallable() { + return getEvaluationCallable; + } + + @Override + public UnaryCallable createEvaluationCallable() { + return createEvaluationCallable; + } + + @Override + public OperationCallable + createEvaluationOperationCallable() { + return createEvaluationOperationCallable; + } + + @Override + public UnaryCallable updateEvaluationCallable() { + return updateEvaluationCallable; + } + + @Override + public OperationCallable + updateEvaluationOperationCallable() { + return updateEvaluationOperationCallable; + } + + @Override + public UnaryCallable deleteEvaluationCallable() { + return deleteEvaluationCallable; + } + + @Override + public OperationCallable + deleteEvaluationOperationCallable() { + return deleteEvaluationOperationCallable; + } + + @Override + public UnaryCallable listExecutionsCallable() { + return listExecutionsCallable; + } + + @Override + public UnaryCallable + listExecutionsPagedCallable() { + return listExecutionsPagedCallable; + } + + @Override + public UnaryCallable getExecutionCallable() { + return getExecutionCallable; + } + + @Override + public UnaryCallable runEvaluationCallable() { + return runEvaluationCallable; + } + + @Override + public OperationCallable + runEvaluationOperationCallable() { + return runEvaluationOperationCallable; + } + + @Override + public UnaryCallable deleteExecutionCallable() { + return deleteExecutionCallable; + } + + @Override + public OperationCallable + deleteExecutionOperationCallable() { + return deleteExecutionOperationCallable; + } + + @Override + public UnaryCallable + listExecutionResultsCallable() { + return listExecutionResultsCallable; + } + + @Override + public UnaryCallable + listExecutionResultsPagedCallable() { + return listExecutionResultsPagedCallable; + } + + @Override + public UnaryCallable listRulesCallable() { + return listRulesCallable; + } + + @Override + public UnaryCallable + listScannedResourcesCallable() { + return listScannedResourcesCallable; + } + + @Override + public UnaryCallable + listScannedResourcesPagedCallable() { + return listScannedResourcesPagedCallable; + } + + @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-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/HttpJsonWorkloadManagerCallableFactory.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/HttpJsonWorkloadManagerCallableFactory.java new file mode 100644 index 000000000000..0fcb8cdf9332 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/HttpJsonWorkloadManagerCallableFactory.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.workloadmanager.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 WorkloadManager service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonWorkloadManagerCallableFactory + 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-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/HttpJsonWorkloadManagerStub.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/HttpJsonWorkloadManagerStub.java new file mode 100644 index 000000000000..aa18d5cbd4ab --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/HttpJsonWorkloadManagerStub.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. + */ + +package com.google.cloud.workloadmanager.v1.stub; + +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListEvaluationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionResultsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListScannedResourcesPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.CreateEvaluationRequest; +import com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest; +import com.google.cloud.workloadmanager.v1.DeleteExecutionRequest; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.GetEvaluationRequest; +import com.google.cloud.workloadmanager.v1.GetExecutionRequest; +import com.google.cloud.workloadmanager.v1.ListEvaluationsRequest; +import com.google.cloud.workloadmanager.v1.ListEvaluationsResponse; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse; +import com.google.cloud.workloadmanager.v1.ListExecutionsRequest; +import com.google.cloud.workloadmanager.v1.ListExecutionsResponse; +import com.google.cloud.workloadmanager.v1.ListRulesRequest; +import com.google.cloud.workloadmanager.v1.ListRulesResponse; +import com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest; +import com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse; +import com.google.cloud.workloadmanager.v1.OperationMetadata; +import com.google.cloud.workloadmanager.v1.RunEvaluationRequest; +import com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest; +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 WorkloadManager service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonWorkloadManagerStub extends WorkloadManagerStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Execution.getDescriptor()) + .add(Empty.getDescriptor()) + .add(Evaluation.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listEvaluationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/ListEvaluations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/evaluations", + 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(ListEvaluationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/GetEvaluation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/evaluations/*}", + 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(Evaluation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/CreateEvaluation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/evaluations", + 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, "evaluationId", request.getEvaluationId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("evaluation", request.getEvaluation(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateEvaluationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/UpdateEvaluation") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{evaluation.name=projects/*/locations/*/evaluations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "evaluation.name", request.getEvaluation().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("evaluation", request.getEvaluation(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateEvaluationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/DeleteEvaluation") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/evaluations/*}", + 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, "force", request.getForce()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteEvaluationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listExecutionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/ListExecutions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/evaluations/*}/executions", + 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(ListExecutionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getExecutionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/GetExecution") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/evaluations/*/executions/*}", + 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(Execution.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + runEvaluationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/RunEvaluation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/evaluations/*}/executions:run", + 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( + (RunEvaluationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteExecutionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/DeleteExecution") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/evaluations/*/executions/*}", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteExecutionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListExecutionResultsRequest, ListExecutionResultsResponse> + listExecutionResultsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.workloadmanager.v1.WorkloadManager/ListExecutionResults") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/evaluations/*/executions/*}/results", + 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(ListExecutionResultsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listRulesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workloadmanager.v1.WorkloadManager/ListRules") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/rules", + 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, "customRulesBucket", request.getCustomRulesBucket()); + serializer.putQueryParam( + fields, "evaluationType", request.getEvaluationTypeValue()); + 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(ListRulesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListScannedResourcesRequest, ListScannedResourcesResponse> + listScannedResourcesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.workloadmanager.v1.WorkloadManager/ListScannedResources") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/evaluations/*/executions/*}/scannedResources", + 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, "rule", request.getRule()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListScannedResourcesResponse.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 + listEvaluationsCallable; + private final UnaryCallable + listEvaluationsPagedCallable; + private final UnaryCallable getEvaluationCallable; + private final UnaryCallable createEvaluationCallable; + private final OperationCallable + createEvaluationOperationCallable; + private final UnaryCallable updateEvaluationCallable; + private final OperationCallable + updateEvaluationOperationCallable; + private final UnaryCallable deleteEvaluationCallable; + private final OperationCallable + deleteEvaluationOperationCallable; + private final UnaryCallable listExecutionsCallable; + private final UnaryCallable + listExecutionsPagedCallable; + private final UnaryCallable getExecutionCallable; + private final UnaryCallable runEvaluationCallable; + private final OperationCallable + runEvaluationOperationCallable; + private final UnaryCallable deleteExecutionCallable; + private final OperationCallable + deleteExecutionOperationCallable; + private final UnaryCallable + listExecutionResultsCallable; + private final UnaryCallable + listExecutionResultsPagedCallable; + private final UnaryCallable listRulesCallable; + private final UnaryCallable + listScannedResourcesCallable; + private final UnaryCallable + listScannedResourcesPagedCallable; + 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 HttpJsonWorkloadManagerStub create(WorkloadManagerStubSettings settings) + throws IOException { + return new HttpJsonWorkloadManagerStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonWorkloadManagerStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonWorkloadManagerStub( + WorkloadManagerStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonWorkloadManagerStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonWorkloadManagerStub( + WorkloadManagerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonWorkloadManagerStub, 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 HttpJsonWorkloadManagerStub( + WorkloadManagerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonWorkloadManagerCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonWorkloadManagerStub, 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 HttpJsonWorkloadManagerStub( + WorkloadManagerStubSettings 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 + listEvaluationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listEvaluationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("evaluation.name", String.valueOf(request.getEvaluation().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listExecutionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listExecutionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getExecutionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getExecutionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings runEvaluationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runEvaluationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteExecutionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteExecutionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listExecutionResultsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listExecutionResultsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listRulesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listRulesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listScannedResourcesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listScannedResourcesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + 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.listEvaluationsCallable = + callableFactory.createUnaryCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.listEvaluationsPagedCallable = + callableFactory.createPagedCallable( + listEvaluationsTransportSettings, settings.listEvaluationsSettings(), clientContext); + this.getEvaluationCallable = + callableFactory.createUnaryCallable( + getEvaluationTransportSettings, settings.getEvaluationSettings(), clientContext); + this.createEvaluationCallable = + callableFactory.createUnaryCallable( + createEvaluationTransportSettings, settings.createEvaluationSettings(), clientContext); + this.createEvaluationOperationCallable = + callableFactory.createOperationCallable( + createEvaluationTransportSettings, + settings.createEvaluationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateEvaluationCallable = + callableFactory.createUnaryCallable( + updateEvaluationTransportSettings, settings.updateEvaluationSettings(), clientContext); + this.updateEvaluationOperationCallable = + callableFactory.createOperationCallable( + updateEvaluationTransportSettings, + settings.updateEvaluationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteEvaluationCallable = + callableFactory.createUnaryCallable( + deleteEvaluationTransportSettings, settings.deleteEvaluationSettings(), clientContext); + this.deleteEvaluationOperationCallable = + callableFactory.createOperationCallable( + deleteEvaluationTransportSettings, + settings.deleteEvaluationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listExecutionsCallable = + callableFactory.createUnaryCallable( + listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); + this.listExecutionsPagedCallable = + callableFactory.createPagedCallable( + listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); + this.getExecutionCallable = + callableFactory.createUnaryCallable( + getExecutionTransportSettings, settings.getExecutionSettings(), clientContext); + this.runEvaluationCallable = + callableFactory.createUnaryCallable( + runEvaluationTransportSettings, settings.runEvaluationSettings(), clientContext); + this.runEvaluationOperationCallable = + callableFactory.createOperationCallable( + runEvaluationTransportSettings, + settings.runEvaluationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteExecutionCallable = + callableFactory.createUnaryCallable( + deleteExecutionTransportSettings, settings.deleteExecutionSettings(), clientContext); + this.deleteExecutionOperationCallable = + callableFactory.createOperationCallable( + deleteExecutionTransportSettings, + settings.deleteExecutionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listExecutionResultsCallable = + callableFactory.createUnaryCallable( + listExecutionResultsTransportSettings, + settings.listExecutionResultsSettings(), + clientContext); + this.listExecutionResultsPagedCallable = + callableFactory.createPagedCallable( + listExecutionResultsTransportSettings, + settings.listExecutionResultsSettings(), + clientContext); + this.listRulesCallable = + callableFactory.createUnaryCallable( + listRulesTransportSettings, settings.listRulesSettings(), clientContext); + this.listScannedResourcesCallable = + callableFactory.createUnaryCallable( + listScannedResourcesTransportSettings, + settings.listScannedResourcesSettings(), + clientContext); + this.listScannedResourcesPagedCallable = + callableFactory.createPagedCallable( + listScannedResourcesTransportSettings, + settings.listScannedResourcesSettings(), + 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(listEvaluationsMethodDescriptor); + methodDescriptors.add(getEvaluationMethodDescriptor); + methodDescriptors.add(createEvaluationMethodDescriptor); + methodDescriptors.add(updateEvaluationMethodDescriptor); + methodDescriptors.add(deleteEvaluationMethodDescriptor); + methodDescriptors.add(listExecutionsMethodDescriptor); + methodDescriptors.add(getExecutionMethodDescriptor); + methodDescriptors.add(runEvaluationMethodDescriptor); + methodDescriptors.add(deleteExecutionMethodDescriptor); + methodDescriptors.add(listExecutionResultsMethodDescriptor); + methodDescriptors.add(listRulesMethodDescriptor); + methodDescriptors.add(listScannedResourcesMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable listEvaluationsCallable() { + return listEvaluationsCallable; + } + + @Override + public UnaryCallable + listEvaluationsPagedCallable() { + return listEvaluationsPagedCallable; + } + + @Override + public UnaryCallable getEvaluationCallable() { + return getEvaluationCallable; + } + + @Override + public UnaryCallable createEvaluationCallable() { + return createEvaluationCallable; + } + + @Override + public OperationCallable + createEvaluationOperationCallable() { + return createEvaluationOperationCallable; + } + + @Override + public UnaryCallable updateEvaluationCallable() { + return updateEvaluationCallable; + } + + @Override + public OperationCallable + updateEvaluationOperationCallable() { + return updateEvaluationOperationCallable; + } + + @Override + public UnaryCallable deleteEvaluationCallable() { + return deleteEvaluationCallable; + } + + @Override + public OperationCallable + deleteEvaluationOperationCallable() { + return deleteEvaluationOperationCallable; + } + + @Override + public UnaryCallable listExecutionsCallable() { + return listExecutionsCallable; + } + + @Override + public UnaryCallable + listExecutionsPagedCallable() { + return listExecutionsPagedCallable; + } + + @Override + public UnaryCallable getExecutionCallable() { + return getExecutionCallable; + } + + @Override + public UnaryCallable runEvaluationCallable() { + return runEvaluationCallable; + } + + @Override + public OperationCallable + runEvaluationOperationCallable() { + return runEvaluationOperationCallable; + } + + @Override + public UnaryCallable deleteExecutionCallable() { + return deleteExecutionCallable; + } + + @Override + public OperationCallable + deleteExecutionOperationCallable() { + return deleteExecutionOperationCallable; + } + + @Override + public UnaryCallable + listExecutionResultsCallable() { + return listExecutionResultsCallable; + } + + @Override + public UnaryCallable + listExecutionResultsPagedCallable() { + return listExecutionResultsPagedCallable; + } + + @Override + public UnaryCallable listRulesCallable() { + return listRulesCallable; + } + + @Override + public UnaryCallable + listScannedResourcesCallable() { + return listScannedResourcesCallable; + } + + @Override + public UnaryCallable + listScannedResourcesPagedCallable() { + return listScannedResourcesPagedCallable; + } + + @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-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStub.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStub.java new file mode 100644 index 000000000000..fdc35e5a1011 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStub.java @@ -0,0 +1,184 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workloadmanager.v1.stub; + +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListEvaluationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionResultsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListScannedResourcesPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.CreateEvaluationRequest; +import com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest; +import com.google.cloud.workloadmanager.v1.DeleteExecutionRequest; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.GetEvaluationRequest; +import com.google.cloud.workloadmanager.v1.GetExecutionRequest; +import com.google.cloud.workloadmanager.v1.ListEvaluationsRequest; +import com.google.cloud.workloadmanager.v1.ListEvaluationsResponse; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse; +import com.google.cloud.workloadmanager.v1.ListExecutionsRequest; +import com.google.cloud.workloadmanager.v1.ListExecutionsResponse; +import com.google.cloud.workloadmanager.v1.ListRulesRequest; +import com.google.cloud.workloadmanager.v1.ListRulesResponse; +import com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest; +import com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse; +import com.google.cloud.workloadmanager.v1.OperationMetadata; +import com.google.cloud.workloadmanager.v1.RunEvaluationRequest; +import com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest; +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 WorkloadManager service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class WorkloadManagerStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + listEvaluationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listEvaluationsPagedCallable()"); + } + + public UnaryCallable listEvaluationsCallable() { + throw new UnsupportedOperationException("Not implemented: listEvaluationsCallable()"); + } + + public UnaryCallable getEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: getEvaluationCallable()"); + } + + public OperationCallable + createEvaluationOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createEvaluationOperationCallable()"); + } + + public UnaryCallable createEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: createEvaluationCallable()"); + } + + public OperationCallable + updateEvaluationOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateEvaluationOperationCallable()"); + } + + public UnaryCallable updateEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: updateEvaluationCallable()"); + } + + public OperationCallable + deleteEvaluationOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteEvaluationOperationCallable()"); + } + + public UnaryCallable deleteEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteEvaluationCallable()"); + } + + public UnaryCallable + listExecutionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listExecutionsPagedCallable()"); + } + + public UnaryCallable listExecutionsCallable() { + throw new UnsupportedOperationException("Not implemented: listExecutionsCallable()"); + } + + public UnaryCallable getExecutionCallable() { + throw new UnsupportedOperationException("Not implemented: getExecutionCallable()"); + } + + public OperationCallable + runEvaluationOperationCallable() { + throw new UnsupportedOperationException("Not implemented: runEvaluationOperationCallable()"); + } + + public UnaryCallable runEvaluationCallable() { + throw new UnsupportedOperationException("Not implemented: runEvaluationCallable()"); + } + + public OperationCallable + deleteExecutionOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExecutionOperationCallable()"); + } + + public UnaryCallable deleteExecutionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExecutionCallable()"); + } + + public UnaryCallable + listExecutionResultsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listExecutionResultsPagedCallable()"); + } + + public UnaryCallable + listExecutionResultsCallable() { + throw new UnsupportedOperationException("Not implemented: listExecutionResultsCallable()"); + } + + public UnaryCallable listRulesCallable() { + throw new UnsupportedOperationException("Not implemented: listRulesCallable()"); + } + + public UnaryCallable + listScannedResourcesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listScannedResourcesPagedCallable()"); + } + + public UnaryCallable + listScannedResourcesCallable() { + throw new UnsupportedOperationException("Not implemented: listScannedResourcesCallable()"); + } + + 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-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStubSettings.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStubSettings.java new file mode 100644 index 000000000000..22af436d8af7 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStubSettings.java @@ -0,0 +1,1277 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workloadmanager.v1.stub; + +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListEvaluationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionResultsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListScannedResourcesPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.CreateEvaluationRequest; +import com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest; +import com.google.cloud.workloadmanager.v1.DeleteExecutionRequest; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.ExecutionResult; +import com.google.cloud.workloadmanager.v1.GetEvaluationRequest; +import com.google.cloud.workloadmanager.v1.GetExecutionRequest; +import com.google.cloud.workloadmanager.v1.ListEvaluationsRequest; +import com.google.cloud.workloadmanager.v1.ListEvaluationsResponse; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse; +import com.google.cloud.workloadmanager.v1.ListExecutionsRequest; +import com.google.cloud.workloadmanager.v1.ListExecutionsResponse; +import com.google.cloud.workloadmanager.v1.ListRulesRequest; +import com.google.cloud.workloadmanager.v1.ListRulesResponse; +import com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest; +import com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse; +import com.google.cloud.workloadmanager.v1.OperationMetadata; +import com.google.cloud.workloadmanager.v1.RunEvaluationRequest; +import com.google.cloud.workloadmanager.v1.ScannedResource; +import com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest; +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 WorkloadManagerStub}. + * + *

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

    + *
  • The default service address (workloadmanager.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 getEvaluation: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WorkloadManagerStubSettings.Builder workloadManagerSettingsBuilder =
+ *     WorkloadManagerStubSettings.newBuilder();
+ * workloadManagerSettingsBuilder
+ *     .getEvaluationSettings()
+ *     .setRetrySettings(
+ *         workloadManagerSettingsBuilder
+ *             .getEvaluationSettings()
+ *             .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());
+ * WorkloadManagerStubSettings workloadManagerSettings = workloadManagerSettingsBuilder.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 createEvaluation: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WorkloadManagerStubSettings.Builder workloadManagerSettingsBuilder =
+ *     WorkloadManagerStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * workloadManagerSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class WorkloadManagerStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings; + private final UnaryCallSettings getEvaluationSettings; + private final UnaryCallSettings createEvaluationSettings; + private final OperationCallSettings + createEvaluationOperationSettings; + private final UnaryCallSettings updateEvaluationSettings; + private final OperationCallSettings + updateEvaluationOperationSettings; + private final UnaryCallSettings deleteEvaluationSettings; + private final OperationCallSettings + deleteEvaluationOperationSettings; + private final PagedCallSettings< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings; + private final UnaryCallSettings getExecutionSettings; + private final UnaryCallSettings runEvaluationSettings; + private final OperationCallSettings + runEvaluationOperationSettings; + private final UnaryCallSettings deleteExecutionSettings; + private final OperationCallSettings + deleteExecutionOperationSettings; + private final PagedCallSettings< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ListExecutionResultsPagedResponse> + listExecutionResultsSettings; + private final UnaryCallSettings listRulesSettings; + private final PagedCallSettings< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ListScannedResourcesPagedResponse> + listScannedResourcesSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor< + ListEvaluationsRequest, ListEvaluationsResponse, Evaluation> + LIST_EVALUATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListEvaluationsRequest injectToken( + ListEvaluationsRequest payload, String token) { + return ListEvaluationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListEvaluationsRequest injectPageSize( + ListEvaluationsRequest payload, int pageSize) { + return ListEvaluationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListEvaluationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListEvaluationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListEvaluationsResponse payload) { + return payload.getEvaluationsList(); + } + }; + + private static final PagedListDescriptor + LIST_EXECUTIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListExecutionsRequest injectToken(ListExecutionsRequest payload, String token) { + return ListExecutionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListExecutionsRequest injectPageSize( + ListExecutionsRequest payload, int pageSize) { + return ListExecutionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListExecutionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListExecutionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListExecutionsResponse payload) { + return payload.getExecutionsList(); + } + }; + + private static final PagedListDescriptor< + ListExecutionResultsRequest, ListExecutionResultsResponse, ExecutionResult> + LIST_EXECUTION_RESULTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListExecutionResultsRequest, ListExecutionResultsResponse, ExecutionResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListExecutionResultsRequest injectToken( + ListExecutionResultsRequest payload, String token) { + return ListExecutionResultsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListExecutionResultsRequest injectPageSize( + ListExecutionResultsRequest payload, int pageSize) { + return ListExecutionResultsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListExecutionResultsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListExecutionResultsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListExecutionResultsResponse payload) { + return payload.getExecutionResultsList(); + } + }; + + private static final PagedListDescriptor< + ListScannedResourcesRequest, ListScannedResourcesResponse, ScannedResource> + LIST_SCANNED_RESOURCES_PAGE_STR_DESC = + new PagedListDescriptor< + ListScannedResourcesRequest, ListScannedResourcesResponse, ScannedResource>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListScannedResourcesRequest injectToken( + ListScannedResourcesRequest payload, String token) { + return ListScannedResourcesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListScannedResourcesRequest injectPageSize( + ListScannedResourcesRequest payload, int pageSize) { + return ListScannedResourcesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListScannedResourcesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListScannedResourcesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListScannedResourcesResponse payload) { + return payload.getScannedResourcesList(); + } + }; + + 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< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + LIST_EVALUATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEvaluationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_EVALUATIONS_PAGE_STR_DESC, request, context); + return ListEvaluationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + LIST_EXECUTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListExecutionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_EXECUTIONS_PAGE_STR_DESC, request, context); + return ListExecutionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ListExecutionResultsPagedResponse> + LIST_EXECUTION_RESULTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ListExecutionResultsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListExecutionResultsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListExecutionResultsRequest, ListExecutionResultsResponse, ExecutionResult> + pageContext = + PageContext.create( + callable, LIST_EXECUTION_RESULTS_PAGE_STR_DESC, request, context); + return ListExecutionResultsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ListScannedResourcesPagedResponse> + LIST_SCANNED_RESOURCES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ListScannedResourcesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListScannedResourcesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListScannedResourcesRequest, ListScannedResourcesResponse, ScannedResource> + pageContext = + PageContext.create( + callable, LIST_SCANNED_RESOURCES_PAGE_STR_DESC, request, context); + return ListScannedResourcesPagedResponse.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 listEvaluations. */ + public PagedCallSettings< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return listEvaluationsSettings; + } + + /** Returns the object with the settings used for calls to getEvaluation. */ + public UnaryCallSettings getEvaluationSettings() { + return getEvaluationSettings; + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public UnaryCallSettings createEvaluationSettings() { + return createEvaluationSettings; + } + + /** Returns the object with the settings used for calls to createEvaluation. */ + public OperationCallSettings + createEvaluationOperationSettings() { + return createEvaluationOperationSettings; + } + + /** Returns the object with the settings used for calls to updateEvaluation. */ + public UnaryCallSettings updateEvaluationSettings() { + return updateEvaluationSettings; + } + + /** Returns the object with the settings used for calls to updateEvaluation. */ + public OperationCallSettings + updateEvaluationOperationSettings() { + return updateEvaluationOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteEvaluation. */ + public UnaryCallSettings deleteEvaluationSettings() { + return deleteEvaluationSettings; + } + + /** Returns the object with the settings used for calls to deleteEvaluation. */ + public OperationCallSettings + deleteEvaluationOperationSettings() { + return deleteEvaluationOperationSettings; + } + + /** Returns the object with the settings used for calls to listExecutions. */ + public PagedCallSettings< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return listExecutionsSettings; + } + + /** Returns the object with the settings used for calls to getExecution. */ + public UnaryCallSettings getExecutionSettings() { + return getExecutionSettings; + } + + /** Returns the object with the settings used for calls to runEvaluation. */ + public UnaryCallSettings runEvaluationSettings() { + return runEvaluationSettings; + } + + /** Returns the object with the settings used for calls to runEvaluation. */ + public OperationCallSettings + runEvaluationOperationSettings() { + return runEvaluationOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteExecution. */ + public UnaryCallSettings deleteExecutionSettings() { + return deleteExecutionSettings; + } + + /** Returns the object with the settings used for calls to deleteExecution. */ + public OperationCallSettings + deleteExecutionOperationSettings() { + return deleteExecutionOperationSettings; + } + + /** Returns the object with the settings used for calls to listExecutionResults. */ + public PagedCallSettings< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ListExecutionResultsPagedResponse> + listExecutionResultsSettings() { + return listExecutionResultsSettings; + } + + /** Returns the object with the settings used for calls to listRules. */ + public UnaryCallSettings listRulesSettings() { + return listRulesSettings; + } + + /** Returns the object with the settings used for calls to listScannedResources. */ + public PagedCallSettings< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ListScannedResourcesPagedResponse> + listScannedResourcesSettings() { + return listScannedResourcesSettings; + } + + /** 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 WorkloadManagerStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcWorkloadManagerStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonWorkloadManagerStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "workloadmanager"; + } + + /** 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 "workloadmanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "workloadmanager.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(WorkloadManagerStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(WorkloadManagerStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return WorkloadManagerStubSettings.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 WorkloadManagerStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listEvaluationsSettings = settingsBuilder.listEvaluationsSettings().build(); + getEvaluationSettings = settingsBuilder.getEvaluationSettings().build(); + createEvaluationSettings = settingsBuilder.createEvaluationSettings().build(); + createEvaluationOperationSettings = settingsBuilder.createEvaluationOperationSettings().build(); + updateEvaluationSettings = settingsBuilder.updateEvaluationSettings().build(); + updateEvaluationOperationSettings = settingsBuilder.updateEvaluationOperationSettings().build(); + deleteEvaluationSettings = settingsBuilder.deleteEvaluationSettings().build(); + deleteEvaluationOperationSettings = settingsBuilder.deleteEvaluationOperationSettings().build(); + listExecutionsSettings = settingsBuilder.listExecutionsSettings().build(); + getExecutionSettings = settingsBuilder.getExecutionSettings().build(); + runEvaluationSettings = settingsBuilder.runEvaluationSettings().build(); + runEvaluationOperationSettings = settingsBuilder.runEvaluationOperationSettings().build(); + deleteExecutionSettings = settingsBuilder.deleteExecutionSettings().build(); + deleteExecutionOperationSettings = settingsBuilder.deleteExecutionOperationSettings().build(); + listExecutionResultsSettings = settingsBuilder.listExecutionResultsSettings().build(); + listRulesSettings = settingsBuilder.listRulesSettings().build(); + listScannedResourcesSettings = settingsBuilder.listScannedResourcesSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for WorkloadManagerStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings; + private final UnaryCallSettings.Builder getEvaluationSettings; + private final UnaryCallSettings.Builder + createEvaluationSettings; + private final OperationCallSettings.Builder< + CreateEvaluationRequest, Evaluation, OperationMetadata> + createEvaluationOperationSettings; + private final UnaryCallSettings.Builder + updateEvaluationSettings; + private final OperationCallSettings.Builder< + UpdateEvaluationRequest, Evaluation, OperationMetadata> + updateEvaluationOperationSettings; + private final UnaryCallSettings.Builder + deleteEvaluationSettings; + private final OperationCallSettings.Builder + deleteEvaluationOperationSettings; + private final PagedCallSettings.Builder< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings; + private final UnaryCallSettings.Builder getExecutionSettings; + private final UnaryCallSettings.Builder runEvaluationSettings; + private final OperationCallSettings.Builder + runEvaluationOperationSettings; + private final UnaryCallSettings.Builder + deleteExecutionSettings; + private final OperationCallSettings.Builder + deleteExecutionOperationSettings; + private final PagedCallSettings.Builder< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ListExecutionResultsPagedResponse> + listExecutionResultsSettings; + private final UnaryCallSettings.Builder listRulesSettings; + private final PagedCallSettings.Builder< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ListScannedResourcesPagedResponse> + listScannedResourcesSettings; + 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.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + 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() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + 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); + + listEvaluationsSettings = PagedCallSettings.newBuilder(LIST_EVALUATIONS_PAGE_STR_FACT); + getEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createEvaluationOperationSettings = OperationCallSettings.newBuilder(); + updateEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateEvaluationOperationSettings = OperationCallSettings.newBuilder(); + deleteEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteEvaluationOperationSettings = OperationCallSettings.newBuilder(); + listExecutionsSettings = PagedCallSettings.newBuilder(LIST_EXECUTIONS_PAGE_STR_FACT); + getExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + runEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + runEvaluationOperationSettings = OperationCallSettings.newBuilder(); + deleteExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExecutionOperationSettings = OperationCallSettings.newBuilder(); + listExecutionResultsSettings = + PagedCallSettings.newBuilder(LIST_EXECUTION_RESULTS_PAGE_STR_FACT); + listRulesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listScannedResourcesSettings = + PagedCallSettings.newBuilder(LIST_SCANNED_RESOURCES_PAGE_STR_FACT); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listEvaluationsSettings, + getEvaluationSettings, + createEvaluationSettings, + updateEvaluationSettings, + deleteEvaluationSettings, + listExecutionsSettings, + getExecutionSettings, + runEvaluationSettings, + deleteExecutionSettings, + listExecutionResultsSettings, + listRulesSettings, + listScannedResourcesSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(WorkloadManagerStubSettings settings) { + super(settings); + + listEvaluationsSettings = settings.listEvaluationsSettings.toBuilder(); + getEvaluationSettings = settings.getEvaluationSettings.toBuilder(); + createEvaluationSettings = settings.createEvaluationSettings.toBuilder(); + createEvaluationOperationSettings = settings.createEvaluationOperationSettings.toBuilder(); + updateEvaluationSettings = settings.updateEvaluationSettings.toBuilder(); + updateEvaluationOperationSettings = settings.updateEvaluationOperationSettings.toBuilder(); + deleteEvaluationSettings = settings.deleteEvaluationSettings.toBuilder(); + deleteEvaluationOperationSettings = settings.deleteEvaluationOperationSettings.toBuilder(); + listExecutionsSettings = settings.listExecutionsSettings.toBuilder(); + getExecutionSettings = settings.getExecutionSettings.toBuilder(); + runEvaluationSettings = settings.runEvaluationSettings.toBuilder(); + runEvaluationOperationSettings = settings.runEvaluationOperationSettings.toBuilder(); + deleteExecutionSettings = settings.deleteExecutionSettings.toBuilder(); + deleteExecutionOperationSettings = settings.deleteExecutionOperationSettings.toBuilder(); + listExecutionResultsSettings = settings.listExecutionResultsSettings.toBuilder(); + listRulesSettings = settings.listRulesSettings.toBuilder(); + listScannedResourcesSettings = settings.listScannedResourcesSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listEvaluationsSettings, + getEvaluationSettings, + createEvaluationSettings, + updateEvaluationSettings, + deleteEvaluationSettings, + listExecutionsSettings, + getExecutionSettings, + runEvaluationSettings, + deleteExecutionSettings, + listExecutionResultsSettings, + listRulesSettings, + listScannedResourcesSettings, + 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 + .listEvaluationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listExecutionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getExecutionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .runEvaluationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteExecutionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listExecutionResultsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listRulesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listScannedResourcesSettings() + .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("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")); + + builder + .createEvaluationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Evaluation.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 + .updateEvaluationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Evaluation.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 + .deleteEvaluationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_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 + .runEvaluationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Execution.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 + .deleteExecutionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_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())); + + 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 listEvaluations. */ + public PagedCallSettings.Builder< + ListEvaluationsRequest, ListEvaluationsResponse, ListEvaluationsPagedResponse> + listEvaluationsSettings() { + return listEvaluationsSettings; + } + + /** Returns the builder for the settings used for calls to getEvaluation. */ + public UnaryCallSettings.Builder getEvaluationSettings() { + return getEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public UnaryCallSettings.Builder + createEvaluationSettings() { + return createEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to createEvaluation. */ + public OperationCallSettings.Builder + createEvaluationOperationSettings() { + return createEvaluationOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateEvaluation. */ + public UnaryCallSettings.Builder + updateEvaluationSettings() { + return updateEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to updateEvaluation. */ + public OperationCallSettings.Builder + updateEvaluationOperationSettings() { + return updateEvaluationOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteEvaluation. */ + public UnaryCallSettings.Builder + deleteEvaluationSettings() { + return deleteEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to deleteEvaluation. */ + public OperationCallSettings.Builder + deleteEvaluationOperationSettings() { + return deleteEvaluationOperationSettings; + } + + /** Returns the builder for the settings used for calls to listExecutions. */ + public PagedCallSettings.Builder< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return listExecutionsSettings; + } + + /** Returns the builder for the settings used for calls to getExecution. */ + public UnaryCallSettings.Builder getExecutionSettings() { + return getExecutionSettings; + } + + /** Returns the builder for the settings used for calls to runEvaluation. */ + public UnaryCallSettings.Builder runEvaluationSettings() { + return runEvaluationSettings; + } + + /** Returns the builder for the settings used for calls to runEvaluation. */ + public OperationCallSettings.Builder + runEvaluationOperationSettings() { + return runEvaluationOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteExecution. */ + public UnaryCallSettings.Builder deleteExecutionSettings() { + return deleteExecutionSettings; + } + + /** Returns the builder for the settings used for calls to deleteExecution. */ + public OperationCallSettings.Builder + deleteExecutionOperationSettings() { + return deleteExecutionOperationSettings; + } + + /** Returns the builder for the settings used for calls to listExecutionResults. */ + public PagedCallSettings.Builder< + ListExecutionResultsRequest, + ListExecutionResultsResponse, + ListExecutionResultsPagedResponse> + listExecutionResultsSettings() { + return listExecutionResultsSettings; + } + + /** Returns the builder for the settings used for calls to listRules. */ + public UnaryCallSettings.Builder listRulesSettings() { + return listRulesSettings; + } + + /** Returns the builder for the settings used for calls to listScannedResources. */ + public PagedCallSettings.Builder< + ListScannedResourcesRequest, + ListScannedResourcesResponse, + ListScannedResourcesPagedResponse> + listScannedResourcesSettings() { + return listScannedResourcesSettings; + } + + /** 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 WorkloadManagerStubSettings build() throws IOException { + return new WorkloadManagerStubSettings(this); + } + } +} diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/main/resources/META-INF/native-image/com.google.cloud.workloadmanager.v1/reflect-config.json b/java-workloadmanager/google-cloud-workloadmanager/src/main/resources/META-INF/native-image/com.google.cloud.workloadmanager.v1/reflect-config.json new file mode 100644 index 000000000000..191503214063 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/resources/META-INF/native-image/com.google.cloud.workloadmanager.v1/reflect-config.json @@ -0,0 +1,2279 @@ +[ + { + "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.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.cloud.workloadmanager.v1.AgentCommand", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.AgentCommand$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.BigQueryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.BigQueryDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Command", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Command$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.CreateEvaluationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.CreateEvaluationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.DeleteExecutionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.DeleteExecutionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Evaluation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Evaluation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Evaluation$EvaluationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$Engine", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$ExternalDataSources", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$ExternalDataSources$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$ExternalDataSources$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$Notice", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$Notice$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$Summary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$Summary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Execution$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ExecutionResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ExecutionResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ExecutionResult$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.GceInstanceFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.GceInstanceFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.GetEvaluationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.GetEvaluationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.GetExecutionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.GetExecutionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListEvaluationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListEvaluationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListEvaluationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListEvaluationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListExecutionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListExecutionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListExecutionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListExecutionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListRulesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListRulesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListRulesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListRulesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Resource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Resource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ResourceFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ResourceFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ResourceStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ResourceStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ResourceStatus$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Rule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Rule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.Rule$RuleType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.RuleExecutionResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.RuleExecutionResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.RuleExecutionResult$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.RuleOutput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.RuleOutput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.RunEvaluationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.RunEvaluationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ScannedResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ScannedResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ShellCommand", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ShellCommand$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ViolationDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.workloadmanager.v1.ViolationDetails$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.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/MockLocations.java b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/MockLocations.java new file mode 100644 index 000000000000..65bcc7e5fd07 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/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.workloadmanager.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-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/MockLocationsImpl.java b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/MockLocationsImpl.java new file mode 100644 index 000000000000..4fb696044add --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/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.workloadmanager.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-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/MockWorkloadManager.java b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/MockWorkloadManager.java new file mode 100644 index 000000000000..0b0b9c587ba6 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/MockWorkloadManager.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.workloadmanager.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 MockWorkloadManager implements MockGrpcService { + private final MockWorkloadManagerImpl serviceImpl; + + public MockWorkloadManager() { + serviceImpl = new MockWorkloadManagerImpl(); + } + + @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-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/MockWorkloadManagerImpl.java b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/MockWorkloadManagerImpl.java new file mode 100644 index 000000000000..9c845a69f186 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/MockWorkloadManagerImpl.java @@ -0,0 +1,317 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workloadmanager.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.workloadmanager.v1.WorkloadManagerGrpc.WorkloadManagerImplBase; +import com.google.longrunning.Operation; +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 MockWorkloadManagerImpl extends WorkloadManagerImplBase { + private List requests; + private Queue responses; + + public MockWorkloadManagerImpl() { + 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 listEvaluations( + ListEvaluationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListEvaluationsResponse) { + requests.add(request); + responseObserver.onNext(((ListEvaluationsResponse) 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 ListEvaluations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListEvaluationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getEvaluation( + GetEvaluationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Evaluation) { + requests.add(request); + responseObserver.onNext(((Evaluation) 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 GetEvaluation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Evaluation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createEvaluation( + CreateEvaluationRequest 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 CreateEvaluation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateEvaluation( + UpdateEvaluationRequest 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 UpdateEvaluation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteEvaluation( + DeleteEvaluationRequest 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 DeleteEvaluation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listExecutions( + ListExecutionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExecutionsResponse) { + requests.add(request); + responseObserver.onNext(((ListExecutionsResponse) 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 ListExecutions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListExecutionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getExecution( + GetExecutionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Execution) { + requests.add(request); + responseObserver.onNext(((Execution) 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 GetExecution, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Execution.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void runEvaluation( + RunEvaluationRequest 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 RunEvaluation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteExecution( + DeleteExecutionRequest 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 DeleteExecution, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listExecutionResults( + ListExecutionResultsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExecutionResultsResponse) { + requests.add(request); + responseObserver.onNext(((ListExecutionResultsResponse) 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 ListExecutionResults, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListExecutionResultsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRules( + ListRulesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRulesResponse) { + requests.add(request); + responseObserver.onNext(((ListRulesResponse) 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 ListRules, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRulesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listScannedResources( + ListScannedResourcesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListScannedResourcesResponse) { + requests.add(request); + responseObserver.onNext(((ListScannedResourcesResponse) 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 ListScannedResources, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListScannedResourcesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClientHttpJsonTest.java b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClientHttpJsonTest.java new file mode 100644 index 000000000000..dfa7d06107f7 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClientHttpJsonTest.java @@ -0,0 +1,1351 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workloadmanager.v1; + +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListEvaluationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionResultsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListScannedResourcesPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.stub.HttpJsonWorkloadManagerStub; +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.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 WorkloadManagerClientHttpJsonTest { + private static MockHttpService mockService; + private static WorkloadManagerClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonWorkloadManagerStub.getMethodDescriptors(), + WorkloadManagerSettings.getDefaultEndpoint()); + WorkloadManagerSettings settings = + WorkloadManagerSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + WorkloadManagerSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = WorkloadManagerClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listEvaluationsTest() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().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 listEvaluationsExceptionTest() 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.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationsTest2() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().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 listEvaluationsExceptionTest2() 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.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + mockService.addResponse(expectedResponse); + + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + Evaluation actualResponse = client.getEvaluation(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 getEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9235/locations/location-9235/evaluations/evaluation-9235"; + + Evaluation actualResponse = client.getEvaluation(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 getEvaluationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9235/locations/location-9235/evaluations/evaluation-9235"; + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + String evaluationId = "evaluationId407318903"; + + Evaluation actualResponse = + client.createEvaluationAsync(parent, evaluation, evaluationId).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 createEvaluationExceptionTest() 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]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + String evaluationId = "evaluationId407318903"; + client.createEvaluationAsync(parent, evaluation, evaluationId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Evaluation evaluation = Evaluation.newBuilder().build(); + String evaluationId = "evaluationId407318903"; + + Evaluation actualResponse = + client.createEvaluationAsync(parent, evaluation, evaluationId).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 createEvaluationExceptionTest2() 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"; + Evaluation evaluation = Evaluation.newBuilder().build(); + String evaluationId = "evaluationId407318903"; + client.createEvaluationAsync(parent, evaluation, evaluationId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Evaluation evaluation = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Evaluation actualResponse = client.updateEvaluationAsync(evaluation, 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 updateEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Evaluation evaluation = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateEvaluationAsync(evaluation, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteEvaluationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + client.deleteEvaluationAsync(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 deleteEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.deleteEvaluationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteEvaluationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-9235/locations/location-9235/evaluations/evaluation-9235"; + + client.deleteEvaluationAsync(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 deleteEvaluationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9235/locations/location-9235/evaluations/evaluation-9235"; + client.deleteEvaluationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listExecutionsTest() throws Exception { + Execution responsesElement = Execution.newBuilder().build(); + ListExecutionsResponse expectedResponse = + ListExecutionsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + EvaluationName parent = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + ListExecutionsPagedResponse pagedListResponse = client.listExecutions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionsList().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 listExecutionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EvaluationName parent = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.listExecutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExecutionsTest2() throws Exception { + Execution responsesElement = Execution.newBuilder().build(); + ListExecutionsResponse expectedResponse = + ListExecutionsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7212/locations/location-7212/evaluations/evaluation-7212"; + + ListExecutionsPagedResponse pagedListResponse = client.listExecutions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionsList().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 listExecutionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7212/locations/location-7212/evaluations/evaluation-7212"; + client.listExecutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExecutionTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setInventoryTime(Timestamp.newBuilder().build()) + .setEvaluationId("evaluationId407318903") + .putAllLabels(new HashMap()) + .addAllRuleResults(new ArrayList()) + .addAllExternalDataSources(new ArrayList()) + .addAllNotices(new ArrayList()) + .setResultSummary(Execution.Summary.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]"); + + Execution actualResponse = client.getExecution(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 getExecutionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExecutionName name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]"); + client.getExecution(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExecutionTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setInventoryTime(Timestamp.newBuilder().build()) + .setEvaluationId("evaluationId407318903") + .putAllLabels(new HashMap()) + .addAllRuleResults(new ArrayList()) + .addAllExternalDataSources(new ArrayList()) + .addAllNotices(new ArrayList()) + .setResultSummary(Execution.Summary.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1480/locations/location-1480/evaluations/evaluation-1480/executions/execution-1480"; + + Execution actualResponse = client.getExecution(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 getExecutionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1480/locations/location-1480/evaluations/evaluation-1480/executions/execution-1480"; + client.getExecution(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runEvaluationTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setInventoryTime(Timestamp.newBuilder().build()) + .setEvaluationId("evaluationId407318903") + .putAllLabels(new HashMap()) + .addAllRuleResults(new ArrayList()) + .addAllExternalDataSources(new ArrayList()) + .addAllNotices(new ArrayList()) + .setResultSummary(Execution.Summary.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + + Execution actualResponse = client.runEvaluationAsync(name, execution, executionId).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 runEvaluationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + client.runEvaluationAsync(name, execution, executionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void runEvaluationTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setInventoryTime(Timestamp.newBuilder().build()) + .setEvaluationId("evaluationId407318903") + .putAllLabels(new HashMap()) + .addAllRuleResults(new ArrayList()) + .addAllExternalDataSources(new ArrayList()) + .addAllNotices(new ArrayList()) + .setResultSummary(Execution.Summary.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-9235/locations/location-9235/evaluations/evaluation-9235"; + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + + Execution actualResponse = client.runEvaluationAsync(name, execution, executionId).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 runEvaluationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9235/locations/location-9235/evaluations/evaluation-9235"; + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + client.runEvaluationAsync(name, execution, executionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExecutionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExecutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]"); + + client.deleteExecutionAsync(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 deleteExecutionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExecutionName name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]"); + client.deleteExecutionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExecutionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExecutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-1480/locations/location-1480/evaluations/evaluation-1480/executions/execution-1480"; + + client.deleteExecutionAsync(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 deleteExecutionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1480/locations/location-1480/evaluations/evaluation-1480/executions/execution-1480"; + client.deleteExecutionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listExecutionResultsTest() throws Exception { + ExecutionResult responsesElement = ExecutionResult.newBuilder().build(); + ListExecutionResultsResponse expectedResponse = + ListExecutionResultsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutionResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-2009/locations/location-2009/evaluations/evaluation-2009/executions/execution-2009"; + + ListExecutionResultsPagedResponse pagedListResponse = client.listExecutionResults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionResultsList().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 listExecutionResultsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-2009/locations/location-2009/evaluations/evaluation-2009/executions/execution-2009"; + client.listExecutionResults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRulesTest() throws Exception { + ListRulesResponse expectedResponse = + ListRulesResponse.newBuilder().addAllRules(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRulesResponse actualResponse = client.listRules(parent); + 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 listRulesExceptionTest() 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.listRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRulesTest2() throws Exception { + ListRulesResponse expectedResponse = + ListRulesResponse.newBuilder().addAllRules(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListRulesResponse actualResponse = client.listRules(parent); + 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 listRulesExceptionTest2() 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.listRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScannedResourcesTest() throws Exception { + ScannedResource responsesElement = ScannedResource.newBuilder().build(); + ListScannedResourcesResponse expectedResponse = + ListScannedResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllScannedResources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-2009/locations/location-2009/evaluations/evaluation-2009/executions/execution-2009"; + + ListScannedResourcesPagedResponse pagedListResponse = client.listScannedResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScannedResourcesList().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 listScannedResourcesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-2009/locations/location-2009/evaluations/evaluation-2009/executions/execution-2009"; + client.listScannedResources(parent); + 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-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClientTest.java b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClientTest.java new file mode 100644 index 000000000000..5460496efbb8 --- /dev/null +++ b/java-workloadmanager/google-cloud-workloadmanager/src/test/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClientTest.java @@ -0,0 +1,1219 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.workloadmanager.v1; + +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListEvaluationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionResultsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListExecutionsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.workloadmanager.v1.WorkloadManagerClient.ListScannedResourcesPagedResponse; + +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.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 WorkloadManagerClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockWorkloadManager mockWorkloadManager; + private LocalChannelProvider channelProvider; + private WorkloadManagerClient client; + + @BeforeClass + public static void startStaticServer() { + mockWorkloadManager = new MockWorkloadManager(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockWorkloadManager, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + WorkloadManagerSettings settings = + WorkloadManagerSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = WorkloadManagerClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listEvaluationsTest() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockWorkloadManager.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEvaluationsRequest actualRequest = ((ListEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEvaluationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEvaluationsTest2() throws Exception { + Evaluation responsesElement = Evaluation.newBuilder().build(); + ListEvaluationsResponse expectedResponse = + ListEvaluationsResponse.newBuilder() + .setNextPageToken("") + .addAllEvaluations(Arrays.asList(responsesElement)) + .build(); + mockWorkloadManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListEvaluationsPagedResponse pagedListResponse = client.listEvaluations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEvaluationsList().get(0), resources.get(0)); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEvaluationsRequest actualRequest = ((ListEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEvaluationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listEvaluations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + mockWorkloadManager.addResponse(expectedResponse); + + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + Evaluation actualResponse = client.getEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEvaluationRequest actualRequest = ((GetEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + mockWorkloadManager.addResponse(expectedResponse); + + String name = "name3373707"; + + Evaluation actualResponse = client.getEvaluation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEvaluationRequest actualRequest = ((GetEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String name = "name3373707"; + client.getEvaluation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkloadManager.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + String evaluationId = "evaluationId407318903"; + + Evaluation actualResponse = + client.createEvaluationAsync(parent, evaluation, evaluationId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEvaluationRequest actualRequest = ((CreateEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(evaluation, actualRequest.getEvaluation()); + Assert.assertEquals(evaluationId, actualRequest.getEvaluationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + String evaluationId = "evaluationId407318903"; + client.createEvaluationAsync(parent, evaluation, evaluationId).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 createEvaluationTest2() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkloadManager.addResponse(resultOperation); + + String parent = "parent-995424086"; + Evaluation evaluation = Evaluation.newBuilder().build(); + String evaluationId = "evaluationId407318903"; + + Evaluation actualResponse = + client.createEvaluationAsync(parent, evaluation, evaluationId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEvaluationRequest actualRequest = ((CreateEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(evaluation, actualRequest.getEvaluation()); + Assert.assertEquals(evaluationId, actualRequest.getEvaluationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String parent = "parent-995424086"; + Evaluation evaluation = Evaluation.newBuilder().build(); + String evaluationId = "evaluationId407318903"; + client.createEvaluationAsync(parent, evaluation, evaluationId).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 updateEvaluationTest() throws Exception { + Evaluation expectedResponse = + Evaluation.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setDescription("description-1724546052") + .setResourceFilter(ResourceFilter.newBuilder().build()) + .addAllRuleNames(new ArrayList()) + .setResourceStatus(ResourceStatus.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSchedule("schedule-697920873") + .setCustomRulesBucket("customRulesBucket-888019568") + .setBigQueryDestination(BigQueryDestination.newBuilder().build()) + .setKmsKey("kmsKey-1127483058") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkloadManager.addResponse(resultOperation); + + Evaluation evaluation = Evaluation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Evaluation actualResponse = client.updateEvaluationAsync(evaluation, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateEvaluationRequest actualRequest = ((UpdateEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(evaluation, actualRequest.getEvaluation()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + Evaluation evaluation = Evaluation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateEvaluationAsync(evaluation, 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 deleteEvaluationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkloadManager.addResponse(resultOperation); + + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + client.deleteEvaluationAsync(name).get(); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteEvaluationRequest actualRequest = ((DeleteEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.deleteEvaluationAsync(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 deleteEvaluationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkloadManager.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteEvaluationAsync(name).get(); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteEvaluationRequest actualRequest = ((DeleteEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String name = "name3373707"; + client.deleteEvaluationAsync(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 listExecutionsTest() throws Exception { + Execution responsesElement = Execution.newBuilder().build(); + ListExecutionsResponse expectedResponse = + ListExecutionsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutions(Arrays.asList(responsesElement)) + .build(); + mockWorkloadManager.addResponse(expectedResponse); + + EvaluationName parent = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + + ListExecutionsPagedResponse pagedListResponse = client.listExecutions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionsList().get(0), resources.get(0)); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExecutionsRequest actualRequest = ((ListExecutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExecutionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + EvaluationName parent = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + client.listExecutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExecutionsTest2() throws Exception { + Execution responsesElement = Execution.newBuilder().build(); + ListExecutionsResponse expectedResponse = + ListExecutionsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutions(Arrays.asList(responsesElement)) + .build(); + mockWorkloadManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListExecutionsPagedResponse pagedListResponse = client.listExecutions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionsList().get(0), resources.get(0)); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExecutionsRequest actualRequest = ((ListExecutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExecutionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listExecutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExecutionTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setInventoryTime(Timestamp.newBuilder().build()) + .setEvaluationId("evaluationId407318903") + .putAllLabels(new HashMap()) + .addAllRuleResults(new ArrayList()) + .addAllExternalDataSources(new ArrayList()) + .addAllNotices(new ArrayList()) + .setResultSummary(Execution.Summary.newBuilder().build()) + .build(); + mockWorkloadManager.addResponse(expectedResponse); + + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]"); + + Execution actualResponse = client.getExecution(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExecutionRequest actualRequest = ((GetExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExecutionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + ExecutionName name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]"); + client.getExecution(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExecutionTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setInventoryTime(Timestamp.newBuilder().build()) + .setEvaluationId("evaluationId407318903") + .putAllLabels(new HashMap()) + .addAllRuleResults(new ArrayList()) + .addAllExternalDataSources(new ArrayList()) + .addAllNotices(new ArrayList()) + .setResultSummary(Execution.Summary.newBuilder().build()) + .build(); + mockWorkloadManager.addResponse(expectedResponse); + + String name = "name3373707"; + + Execution actualResponse = client.getExecution(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExecutionRequest actualRequest = ((GetExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExecutionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String name = "name3373707"; + client.getExecution(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runEvaluationTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setInventoryTime(Timestamp.newBuilder().build()) + .setEvaluationId("evaluationId407318903") + .putAllLabels(new HashMap()) + .addAllRuleResults(new ArrayList()) + .addAllExternalDataSources(new ArrayList()) + .addAllNotices(new ArrayList()) + .setResultSummary(Execution.Summary.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkloadManager.addResponse(resultOperation); + + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + + Execution actualResponse = client.runEvaluationAsync(name, execution, executionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunEvaluationRequest actualRequest = ((RunEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(execution, actualRequest.getExecution()); + Assert.assertEquals(executionId, actualRequest.getExecutionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runEvaluationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + client.runEvaluationAsync(name, execution, executionId).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 runEvaluationTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setInventoryTime(Timestamp.newBuilder().build()) + .setEvaluationId("evaluationId407318903") + .putAllLabels(new HashMap()) + .addAllRuleResults(new ArrayList()) + .addAllExternalDataSources(new ArrayList()) + .addAllNotices(new ArrayList()) + .setResultSummary(Execution.Summary.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runEvaluationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkloadManager.addResponse(resultOperation); + + String name = "name3373707"; + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + + Execution actualResponse = client.runEvaluationAsync(name, execution, executionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunEvaluationRequest actualRequest = ((RunEvaluationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(execution, actualRequest.getExecution()); + Assert.assertEquals(executionId, actualRequest.getExecutionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runEvaluationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String name = "name3373707"; + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + client.runEvaluationAsync(name, execution, executionId).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 deleteExecutionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExecutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkloadManager.addResponse(resultOperation); + + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]"); + + client.deleteExecutionAsync(name).get(); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExecutionRequest actualRequest = ((DeleteExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExecutionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + ExecutionName name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]"); + client.deleteExecutionAsync(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 deleteExecutionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExecutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkloadManager.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteExecutionAsync(name).get(); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExecutionRequest actualRequest = ((DeleteExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExecutionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String name = "name3373707"; + client.deleteExecutionAsync(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 listExecutionResultsTest() throws Exception { + ExecutionResult responsesElement = ExecutionResult.newBuilder().build(); + ListExecutionResultsResponse expectedResponse = + ListExecutionResultsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutionResults(Arrays.asList(responsesElement)) + .build(); + mockWorkloadManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListExecutionResultsPagedResponse pagedListResponse = client.listExecutionResults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionResultsList().get(0), resources.get(0)); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExecutionResultsRequest actualRequest = + ((ListExecutionResultsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExecutionResultsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listExecutionResults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRulesTest() throws Exception { + ListRulesResponse expectedResponse = + ListRulesResponse.newBuilder().addAllRules(new ArrayList()).build(); + mockWorkloadManager.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRulesResponse actualResponse = client.listRules(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRulesRequest actualRequest = ((ListRulesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRulesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRulesTest2() throws Exception { + ListRulesResponse expectedResponse = + ListRulesResponse.newBuilder().addAllRules(new ArrayList()).build(); + mockWorkloadManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRulesResponse actualResponse = client.listRules(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRulesRequest actualRequest = ((ListRulesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRulesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRules(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScannedResourcesTest() throws Exception { + ScannedResource responsesElement = ScannedResource.newBuilder().build(); + ListScannedResourcesResponse expectedResponse = + ListScannedResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllScannedResources(Arrays.asList(responsesElement)) + .build(); + mockWorkloadManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListScannedResourcesPagedResponse pagedListResponse = client.listScannedResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScannedResourcesList().get(0), resources.get(0)); + + List actualRequests = mockWorkloadManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScannedResourcesRequest actualRequest = + ((ListScannedResourcesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScannedResourcesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkloadManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listScannedResources(parent); + 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-workloadmanager/grpc-google-cloud-workloadmanager-v1/pom.xml b/java-workloadmanager/grpc-google-cloud-workloadmanager-v1/pom.xml new file mode 100644 index 000000000000..0a9385306ef0 --- /dev/null +++ b/java-workloadmanager/grpc-google-cloud-workloadmanager-v1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-workloadmanager-v1 + 0.1.0 + grpc-google-cloud-workloadmanager-v1 + GRPC library for google-cloud-workloadmanager + + com.google.cloud + google-cloud-workloadmanager-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-workloadmanager-v1 + + + com.google.guava + guava + + + diff --git a/java-workloadmanager/grpc-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerGrpc.java b/java-workloadmanager/grpc-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerGrpc.java new file mode 100644 index 000000000000..ce1a49fd9592 --- /dev/null +++ b/java-workloadmanager/grpc-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerGrpc.java @@ -0,0 +1,1896 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.workloadmanager.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The Workload Manager provides various tools to deploy, validate and observe
+ * your workloads running on Google Cloud.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class WorkloadManagerGrpc { + + private WorkloadManagerGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.workloadmanager.v1.WorkloadManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest, + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse> + getListEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEvaluations", + requestType = com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.class, + responseType = com.google.cloud.workloadmanager.v1.ListEvaluationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest, + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse> + getListEvaluationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest, + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse> + getListEvaluationsMethod; + if ((getListEvaluationsMethod = WorkloadManagerGrpc.getListEvaluationsMethod) == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getListEvaluationsMethod = WorkloadManagerGrpc.getListEvaluationsMethod) == null) { + WorkloadManagerGrpc.getListEvaluationsMethod = + getListEvaluationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("ListEvaluations")) + .build(); + } + } + } + return getListEvaluationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.GetEvaluationRequest, + com.google.cloud.workloadmanager.v1.Evaluation> + getGetEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEvaluation", + requestType = com.google.cloud.workloadmanager.v1.GetEvaluationRequest.class, + responseType = com.google.cloud.workloadmanager.v1.Evaluation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.GetEvaluationRequest, + com.google.cloud.workloadmanager.v1.Evaluation> + getGetEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.GetEvaluationRequest, + com.google.cloud.workloadmanager.v1.Evaluation> + getGetEvaluationMethod; + if ((getGetEvaluationMethod = WorkloadManagerGrpc.getGetEvaluationMethod) == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getGetEvaluationMethod = WorkloadManagerGrpc.getGetEvaluationMethod) == null) { + WorkloadManagerGrpc.getGetEvaluationMethod = + getGetEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.GetEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("GetEvaluation")) + .build(); + } + } + } + return getGetEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest, + com.google.longrunning.Operation> + getCreateEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEvaluation", + requestType = com.google.cloud.workloadmanager.v1.CreateEvaluationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest, + com.google.longrunning.Operation> + getCreateEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest, + com.google.longrunning.Operation> + getCreateEvaluationMethod; + if ((getCreateEvaluationMethod = WorkloadManagerGrpc.getCreateEvaluationMethod) == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getCreateEvaluationMethod = WorkloadManagerGrpc.getCreateEvaluationMethod) == null) { + WorkloadManagerGrpc.getCreateEvaluationMethod = + getCreateEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("CreateEvaluation")) + .build(); + } + } + } + return getCreateEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest, + com.google.longrunning.Operation> + getUpdateEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEvaluation", + requestType = com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest, + com.google.longrunning.Operation> + getUpdateEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest, + com.google.longrunning.Operation> + getUpdateEvaluationMethod; + if ((getUpdateEvaluationMethod = WorkloadManagerGrpc.getUpdateEvaluationMethod) == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getUpdateEvaluationMethod = WorkloadManagerGrpc.getUpdateEvaluationMethod) == null) { + WorkloadManagerGrpc.getUpdateEvaluationMethod = + getUpdateEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("UpdateEvaluation")) + .build(); + } + } + } + return getUpdateEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest, + com.google.longrunning.Operation> + getDeleteEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEvaluation", + requestType = com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest, + com.google.longrunning.Operation> + getDeleteEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest, + com.google.longrunning.Operation> + getDeleteEvaluationMethod; + if ((getDeleteEvaluationMethod = WorkloadManagerGrpc.getDeleteEvaluationMethod) == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getDeleteEvaluationMethod = WorkloadManagerGrpc.getDeleteEvaluationMethod) == null) { + WorkloadManagerGrpc.getDeleteEvaluationMethod = + getDeleteEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("DeleteEvaluation")) + .build(); + } + } + } + return getDeleteEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListExecutionsRequest, + com.google.cloud.workloadmanager.v1.ListExecutionsResponse> + getListExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExecutions", + requestType = com.google.cloud.workloadmanager.v1.ListExecutionsRequest.class, + responseType = com.google.cloud.workloadmanager.v1.ListExecutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListExecutionsRequest, + com.google.cloud.workloadmanager.v1.ListExecutionsResponse> + getListExecutionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListExecutionsRequest, + com.google.cloud.workloadmanager.v1.ListExecutionsResponse> + getListExecutionsMethod; + if ((getListExecutionsMethod = WorkloadManagerGrpc.getListExecutionsMethod) == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getListExecutionsMethod = WorkloadManagerGrpc.getListExecutionsMethod) == null) { + WorkloadManagerGrpc.getListExecutionsMethod = + getListExecutionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.ListExecutionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.ListExecutionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("ListExecutions")) + .build(); + } + } + } + return getListExecutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.GetExecutionRequest, + com.google.cloud.workloadmanager.v1.Execution> + getGetExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExecution", + requestType = com.google.cloud.workloadmanager.v1.GetExecutionRequest.class, + responseType = com.google.cloud.workloadmanager.v1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.GetExecutionRequest, + com.google.cloud.workloadmanager.v1.Execution> + getGetExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.GetExecutionRequest, + com.google.cloud.workloadmanager.v1.Execution> + getGetExecutionMethod; + if ((getGetExecutionMethod = WorkloadManagerGrpc.getGetExecutionMethod) == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getGetExecutionMethod = WorkloadManagerGrpc.getGetExecutionMethod) == null) { + WorkloadManagerGrpc.getGetExecutionMethod = + getGetExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.GetExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.Execution.getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("GetExecution")) + .build(); + } + } + } + return getGetExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.RunEvaluationRequest, + com.google.longrunning.Operation> + getRunEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunEvaluation", + requestType = com.google.cloud.workloadmanager.v1.RunEvaluationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.RunEvaluationRequest, + com.google.longrunning.Operation> + getRunEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.RunEvaluationRequest, + com.google.longrunning.Operation> + getRunEvaluationMethod; + if ((getRunEvaluationMethod = WorkloadManagerGrpc.getRunEvaluationMethod) == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getRunEvaluationMethod = WorkloadManagerGrpc.getRunEvaluationMethod) == null) { + WorkloadManagerGrpc.getRunEvaluationMethod = + getRunEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.RunEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("RunEvaluation")) + .build(); + } + } + } + return getRunEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest, + com.google.longrunning.Operation> + getDeleteExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteExecution", + requestType = com.google.cloud.workloadmanager.v1.DeleteExecutionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest, + com.google.longrunning.Operation> + getDeleteExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest, + com.google.longrunning.Operation> + getDeleteExecutionMethod; + if ((getDeleteExecutionMethod = WorkloadManagerGrpc.getDeleteExecutionMethod) == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getDeleteExecutionMethod = WorkloadManagerGrpc.getDeleteExecutionMethod) == null) { + WorkloadManagerGrpc.getDeleteExecutionMethod = + getDeleteExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("DeleteExecution")) + .build(); + } + } + } + return getDeleteExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest, + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse> + getListExecutionResultsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExecutionResults", + requestType = com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest.class, + responseType = com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest, + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse> + getListExecutionResultsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest, + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse> + getListExecutionResultsMethod; + if ((getListExecutionResultsMethod = WorkloadManagerGrpc.getListExecutionResultsMethod) + == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getListExecutionResultsMethod = WorkloadManagerGrpc.getListExecutionResultsMethod) + == null) { + WorkloadManagerGrpc.getListExecutionResultsMethod = + getListExecutionResultsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListExecutionResults")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("ListExecutionResults")) + .build(); + } + } + } + return getListExecutionResultsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListRulesRequest, + com.google.cloud.workloadmanager.v1.ListRulesResponse> + getListRulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRules", + requestType = com.google.cloud.workloadmanager.v1.ListRulesRequest.class, + responseType = com.google.cloud.workloadmanager.v1.ListRulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListRulesRequest, + com.google.cloud.workloadmanager.v1.ListRulesResponse> + getListRulesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListRulesRequest, + com.google.cloud.workloadmanager.v1.ListRulesResponse> + getListRulesMethod; + if ((getListRulesMethod = WorkloadManagerGrpc.getListRulesMethod) == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getListRulesMethod = WorkloadManagerGrpc.getListRulesMethod) == null) { + WorkloadManagerGrpc.getListRulesMethod = + getListRulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.ListRulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.ListRulesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new WorkloadManagerMethodDescriptorSupplier("ListRules")) + .build(); + } + } + } + return getListRulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest, + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse> + getListScannedResourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScannedResources", + requestType = com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest.class, + responseType = com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest, + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse> + getListScannedResourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest, + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse> + getListScannedResourcesMethod; + if ((getListScannedResourcesMethod = WorkloadManagerGrpc.getListScannedResourcesMethod) + == null) { + synchronized (WorkloadManagerGrpc.class) { + if ((getListScannedResourcesMethod = WorkloadManagerGrpc.getListScannedResourcesMethod) + == null) { + WorkloadManagerGrpc.getListScannedResourcesMethod = + getListScannedResourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListScannedResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkloadManagerMethodDescriptorSupplier("ListScannedResources")) + .build(); + } + } + } + return getListScannedResourcesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static WorkloadManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkloadManagerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkloadManagerStub(channel, callOptions); + } + }; + return WorkloadManagerStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static WorkloadManagerBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkloadManagerBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkloadManagerBlockingV2Stub(channel, callOptions); + } + }; + return WorkloadManagerBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WorkloadManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkloadManagerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkloadManagerBlockingStub(channel, callOptions); + } + }; + return WorkloadManagerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static WorkloadManagerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkloadManagerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkloadManagerFutureStub(channel, callOptions); + } + }; + return WorkloadManagerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The Workload Manager provides various tools to deploy, validate and observe
+   * your workloads running on Google Cloud.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists Evaluations in a given project and location.
+     * 
+ */ + default void listEvaluations( + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEvaluationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Evaluation.
+     * 
+ */ + default void getEvaluation( + com.google.cloud.workloadmanager.v1.GetEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEvaluationMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Evaluation in a given project and location.
+     * 
+ */ + default void createEvaluation( + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEvaluationMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Evaluation.
+     * 
+ */ + default void updateEvaluation( + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEvaluationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Evaluation.
+     * 
+ */ + default void deleteEvaluation( + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEvaluationMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Executions in a given project and location.
+     * 
+ */ + default void listExecutions( + com.google.cloud.workloadmanager.v1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExecutionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Execution.
+     * 
+ */ + default void getExecution( + com.google.cloud.workloadmanager.v1.GetExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Execution in a given project and location.
+     * 
+ */ + default void runEvaluation( + com.google.cloud.workloadmanager.v1.RunEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunEvaluationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Execution.
+     * 
+ */ + default void deleteExecution( + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the result of a single evaluation.
+     * 
+ */ + default void listExecutionResults( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExecutionResultsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists rules in a given project.
+     * 
+ */ + default void listRules( + com.google.cloud.workloadmanager.v1.ListRulesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRulesMethod(), responseObserver); + } + + /** + * + * + *
+     * List all scanned resources for a single Execution.
+     * 
+ */ + default void listScannedResources( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScannedResourcesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service WorkloadManager. + * + *
+   * The Workload Manager provides various tools to deploy, validate and observe
+   * your workloads running on Google Cloud.
+   * 
+ */ + public abstract static class WorkloadManagerImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return WorkloadManagerGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service WorkloadManager. + * + *
+   * The Workload Manager provides various tools to deploy, validate and observe
+   * your workloads running on Google Cloud.
+   * 
+ */ + public static final class WorkloadManagerStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkloadManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkloadManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkloadManagerStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Evaluations in a given project and location.
+     * 
+ */ + public void listEvaluations( + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEvaluationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Evaluation.
+     * 
+ */ + public void getEvaluation( + com.google.cloud.workloadmanager.v1.GetEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Evaluation in a given project and location.
+     * 
+ */ + public void createEvaluation( + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Evaluation.
+     * 
+ */ + public void updateEvaluation( + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Evaluation.
+     * 
+ */ + public void deleteEvaluation( + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Executions in a given project and location.
+     * 
+ */ + public void listExecutions( + com.google.cloud.workloadmanager.v1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Execution.
+     * 
+ */ + public void getExecution( + com.google.cloud.workloadmanager.v1.GetExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Execution in a given project and location.
+     * 
+ */ + public void runEvaluation( + com.google.cloud.workloadmanager.v1.RunEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Execution.
+     * 
+ */ + public void deleteExecution( + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the result of a single evaluation.
+     * 
+ */ + public void listExecutionResults( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExecutionResultsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists rules in a given project.
+     * 
+ */ + public void listRules( + com.google.cloud.workloadmanager.v1.ListRulesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRulesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List all scanned resources for a single Execution.
+     * 
+ */ + public void listScannedResources( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScannedResourcesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service WorkloadManager. + * + *
+   * The Workload Manager provides various tools to deploy, validate and observe
+   * your workloads running on Google Cloud.
+   * 
+ */ + public static final class WorkloadManagerBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private WorkloadManagerBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkloadManagerBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkloadManagerBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Evaluations in a given project and location.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.ListEvaluationsResponse listEvaluations( + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListEvaluationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Evaluation.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.Evaluation getEvaluation( + com.google.cloud.workloadmanager.v1.GetEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Evaluation in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createEvaluation( + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Evaluation.
+     * 
+ */ + public com.google.longrunning.Operation updateEvaluation( + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Evaluation.
+     * 
+ */ + public com.google.longrunning.Operation deleteEvaluation( + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Executions in a given project and location.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.ListExecutionsResponse listExecutions( + com.google.cloud.workloadmanager.v1.ListExecutionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Execution.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.Execution getExecution( + com.google.cloud.workloadmanager.v1.GetExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Execution in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation runEvaluation( + com.google.cloud.workloadmanager.v1.RunEvaluationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRunEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Execution.
+     * 
+ */ + public com.google.longrunning.Operation deleteExecution( + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the result of a single evaluation.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse listExecutionResults( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListExecutionResultsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists rules in a given project.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.ListRulesResponse listRules( + com.google.cloud.workloadmanager.v1.ListRulesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListRulesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all scanned resources for a single Execution.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse listScannedResources( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListScannedResourcesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service WorkloadManager. + * + *
+   * The Workload Manager provides various tools to deploy, validate and observe
+   * your workloads running on Google Cloud.
+   * 
+ */ + public static final class WorkloadManagerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WorkloadManagerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkloadManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkloadManagerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Evaluations in a given project and location.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.ListEvaluationsResponse listEvaluations( + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEvaluationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Evaluation.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.Evaluation getEvaluation( + com.google.cloud.workloadmanager.v1.GetEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Evaluation in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createEvaluation( + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Evaluation.
+     * 
+ */ + public com.google.longrunning.Operation updateEvaluation( + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Evaluation.
+     * 
+ */ + public com.google.longrunning.Operation deleteEvaluation( + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Executions in a given project and location.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.ListExecutionsResponse listExecutions( + com.google.cloud.workloadmanager.v1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Execution.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.Execution getExecution( + com.google.cloud.workloadmanager.v1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Execution in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation runEvaluation( + com.google.cloud.workloadmanager.v1.RunEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Execution.
+     * 
+ */ + public com.google.longrunning.Operation deleteExecution( + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the result of a single evaluation.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse listExecutionResults( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionResultsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists rules in a given project.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.ListRulesResponse listRules( + com.google.cloud.workloadmanager.v1.ListRulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRulesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all scanned resources for a single Execution.
+     * 
+ */ + public com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse listScannedResources( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScannedResourcesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service WorkloadManager. + * + *
+   * The Workload Manager provides various tools to deploy, validate and observe
+   * your workloads running on Google Cloud.
+   * 
+ */ + public static final class WorkloadManagerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WorkloadManagerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkloadManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkloadManagerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Evaluations in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse> + listEvaluations(com.google.cloud.workloadmanager.v1.ListEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEvaluationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Evaluation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workloadmanager.v1.Evaluation> + getEvaluation(com.google.cloud.workloadmanager.v1.GetEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Evaluation in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createEvaluation(com.google.cloud.workloadmanager.v1.CreateEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Evaluation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateEvaluation(com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Evaluation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteEvaluation(com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Executions in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workloadmanager.v1.ListExecutionsResponse> + listExecutions(com.google.cloud.workloadmanager.v1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Execution.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workloadmanager.v1.Execution> + getExecution(com.google.cloud.workloadmanager.v1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Execution in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + runEvaluation(com.google.cloud.workloadmanager.v1.RunEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Execution.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteExecution(com.google.cloud.workloadmanager.v1.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the result of a single evaluation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse> + listExecutionResults( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionResultsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists rules in a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workloadmanager.v1.ListRulesResponse> + listRules(com.google.cloud.workloadmanager.v1.ListRulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRulesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all scanned resources for a single Execution.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse> + listScannedResources( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScannedResourcesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_EVALUATIONS = 0; + private static final int METHODID_GET_EVALUATION = 1; + private static final int METHODID_CREATE_EVALUATION = 2; + private static final int METHODID_UPDATE_EVALUATION = 3; + private static final int METHODID_DELETE_EVALUATION = 4; + private static final int METHODID_LIST_EXECUTIONS = 5; + private static final int METHODID_GET_EXECUTION = 6; + private static final int METHODID_RUN_EVALUATION = 7; + private static final int METHODID_DELETE_EXECUTION = 8; + private static final int METHODID_LIST_EXECUTION_RESULTS = 9; + private static final int METHODID_LIST_RULES = 10; + private static final int METHODID_LIST_SCANNED_RESOURCES = 11; + + 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_EVALUATIONS: + serviceImpl.listEvaluations( + (com.google.cloud.workloadmanager.v1.ListEvaluationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse>) + responseObserver); + break; + case METHODID_GET_EVALUATION: + serviceImpl.getEvaluation( + (com.google.cloud.workloadmanager.v1.GetEvaluationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_EVALUATION: + serviceImpl.createEvaluation( + (com.google.cloud.workloadmanager.v1.CreateEvaluationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_EVALUATION: + serviceImpl.updateEvaluation( + (com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EVALUATION: + serviceImpl.deleteEvaluation( + (com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EXECUTIONS: + serviceImpl.listExecutions( + (com.google.cloud.workloadmanager.v1.ListExecutionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workloadmanager.v1.ListExecutionsResponse>) + responseObserver); + break; + case METHODID_GET_EXECUTION: + serviceImpl.getExecution( + (com.google.cloud.workloadmanager.v1.GetExecutionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RUN_EVALUATION: + serviceImpl.runEvaluation( + (com.google.cloud.workloadmanager.v1.RunEvaluationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EXECUTION: + serviceImpl.deleteExecution( + (com.google.cloud.workloadmanager.v1.DeleteExecutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EXECUTION_RESULTS: + serviceImpl.listExecutionResults( + (com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse>) + responseObserver); + break; + case METHODID_LIST_RULES: + serviceImpl.listRules( + (com.google.cloud.workloadmanager.v1.ListRulesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SCANNED_RESOURCES: + serviceImpl.listScannedResources( + (com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse>) + 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( + getListEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest, + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse>( + service, METHODID_LIST_EVALUATIONS))) + .addMethod( + getGetEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.GetEvaluationRequest, + com.google.cloud.workloadmanager.v1.Evaluation>( + service, METHODID_GET_EVALUATION))) + .addMethod( + getCreateEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_EVALUATION))) + .addMethod( + getUpdateEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_EVALUATION))) + .addMethod( + getDeleteEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_EVALUATION))) + .addMethod( + getListExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.ListExecutionsRequest, + com.google.cloud.workloadmanager.v1.ListExecutionsResponse>( + service, METHODID_LIST_EXECUTIONS))) + .addMethod( + getGetExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.GetExecutionRequest, + com.google.cloud.workloadmanager.v1.Execution>( + service, METHODID_GET_EXECUTION))) + .addMethod( + getRunEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.RunEvaluationRequest, + com.google.longrunning.Operation>(service, METHODID_RUN_EVALUATION))) + .addMethod( + getDeleteExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_EXECUTION))) + .addMethod( + getListExecutionResultsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest, + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse>( + service, METHODID_LIST_EXECUTION_RESULTS))) + .addMethod( + getListRulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.ListRulesRequest, + com.google.cloud.workloadmanager.v1.ListRulesResponse>( + service, METHODID_LIST_RULES))) + .addMethod( + getListScannedResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest, + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse>( + service, METHODID_LIST_SCANNED_RESOURCES))) + .build(); + } + + private abstract static class WorkloadManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WorkloadManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WorkloadManager"); + } + } + + private static final class WorkloadManagerFileDescriptorSupplier + extends WorkloadManagerBaseDescriptorSupplier { + WorkloadManagerFileDescriptorSupplier() {} + } + + private static final class WorkloadManagerMethodDescriptorSupplier + extends WorkloadManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + WorkloadManagerMethodDescriptorSupplier(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 (WorkloadManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkloadManagerFileDescriptorSupplier()) + .addMethod(getListEvaluationsMethod()) + .addMethod(getGetEvaluationMethod()) + .addMethod(getCreateEvaluationMethod()) + .addMethod(getUpdateEvaluationMethod()) + .addMethod(getDeleteEvaluationMethod()) + .addMethod(getListExecutionsMethod()) + .addMethod(getGetExecutionMethod()) + .addMethod(getRunEvaluationMethod()) + .addMethod(getDeleteExecutionMethod()) + .addMethod(getListExecutionResultsMethod()) + .addMethod(getListRulesMethod()) + .addMethod(getListScannedResourcesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-workloadmanager/owlbot.py b/java-workloadmanager/owlbot.py new file mode 100644 index 000000000000..2ba11e6bba67 --- /dev/null +++ b/java-workloadmanager/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-workloadmanager/pom.xml b/java-workloadmanager/pom.xml new file mode 100644 index 000000000000..20c1ab6d58bc --- /dev/null +++ b/java-workloadmanager/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + com.google.cloud + google-cloud-workloadmanager-parent + pom + 0.1.0 + Google Workload Manager 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-workloadmanager-parent + + + + + + com.google.cloud + google-cloud-workloadmanager + 0.1.0 + + + com.google.api.grpc + grpc-google-cloud-workloadmanager-v1 + 0.1.0 + + + com.google.api.grpc + proto-google-cloud-workloadmanager-v1 + 0.1.0 + + + + + + + google-cloud-workloadmanager + grpc-google-cloud-workloadmanager-v1 + proto-google-cloud-workloadmanager-v1 + google-cloud-workloadmanager-bom + + + diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/clirr-ignored-differences.xml b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..832d8969b98a --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/cloud/workloadmanager/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/workloadmanager/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/workloadmanager/v1/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/cloud/workloadmanager/v1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/cloud/workloadmanager/v1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/cloud/workloadmanager/v1/** + * clear() + ** + + + 7006 + com/google/cloud/workloadmanager/v1/** + * clearField(*) + ** + + + 7006 + com/google/cloud/workloadmanager/v1/** + * clearOneof(*) + ** + + + 7006 + com/google/cloud/workloadmanager/v1/** + * clone() + ** + + + 7006 + com/google/cloud/workloadmanager/v1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/cloud/workloadmanager/v1/** + * setField(*) + ** + + + 7006 + com/google/cloud/workloadmanager/v1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/cloud/workloadmanager/v1/** + * setUnknownFields(*) + ** + + diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/pom.xml b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/pom.xml new file mode 100644 index 000000000000..ed53dd761ccd --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-workloadmanager-v1 + 0.1.0 + proto-google-cloud-workloadmanager-v1 + Proto library for google-cloud-workloadmanager + + com.google.cloud + google-cloud-workloadmanager-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-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/AgentCommand.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/AgentCommand.java new file mode 100644 index 000000000000..91709e3e8ea9 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/AgentCommand.java @@ -0,0 +1,959 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * An AgentCommand specifies a one-time executable program for the agent to run.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.AgentCommand} + */ +@com.google.protobuf.Generated +public final class AgentCommand extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.AgentCommand) + AgentCommandOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentCommand"); + } + + // Use AgentCommand.newBuilder() to construct. + private AgentCommand(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentCommand() { + command_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_AgentCommand_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_AgentCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.AgentCommand.class, + com.google.cloud.workloadmanager.v1.AgentCommand.Builder.class); + } + + public static final int COMMAND_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object command_ = ""; + + /** + * + * + *
+   * The name of the agent one-time executable that will be invoked.
+   * 
+ * + * string command = 1; + * + * @return The command. + */ + @java.lang.Override + public java.lang.String getCommand() { + java.lang.Object ref = command_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + command_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the agent one-time executable that will be invoked.
+   * 
+ * + * string command = 1; + * + * @return The bytes for command. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommandBytes() { + java.lang.Object ref = command_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + command_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 2; + + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_AgentCommand_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField parameters_; + + private com.google.protobuf.MapField internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + + /** + * + * + *
+   * A map of key/value pairs that can be used to specify
+   * additional one-time executable settings.
+   * 
+ * + * map<string, string> parameters = 2; + */ + @java.lang.Override + public boolean containsParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetParameters().getMap().containsKey(key); + } + + /** Use {@link #getParametersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + + /** + * + * + *
+   * A map of key/value pairs that can be used to specify
+   * additional one-time executable settings.
+   * 
+ * + * map<string, string> parameters = 2; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + + /** + * + * + *
+   * A map of key/value pairs that can be used to specify
+   * additional one-time executable settings.
+   * 
+ * + * map<string, string> parameters = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getParametersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * A map of key/value pairs that can be used to specify
+   * additional one-time executable settings.
+   * 
+ * + * map<string, string> parameters = 2; + */ + @java.lang.Override + public java.lang.String getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().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(command_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, command_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 2); + 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(command_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, command_); + } + for (java.util.Map.Entry entry : + internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry parameters__ = + ParametersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.AgentCommand)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.AgentCommand other = + (com.google.cloud.workloadmanager.v1.AgentCommand) obj; + + if (!getCommand().equals(other.getCommand())) return false; + if (!internalGetParameters().equals(other.internalGetParameters())) return false; + if (!getUnknownFields().equals(other.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) + COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getCommand().hashCode(); + if (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.AgentCommand prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 AgentCommand specifies a one-time executable program for the agent to run.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.AgentCommand} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.AgentCommand) + com.google.cloud.workloadmanager.v1.AgentCommandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_AgentCommand_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_AgentCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.AgentCommand.class, + com.google.cloud.workloadmanager.v1.AgentCommand.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.AgentCommand.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + command_ = ""; + internalGetMutableParameters().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_AgentCommand_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.AgentCommand getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.AgentCommand.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.AgentCommand build() { + com.google.cloud.workloadmanager.v1.AgentCommand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.AgentCommand buildPartial() { + com.google.cloud.workloadmanager.v1.AgentCommand result = + new com.google.cloud.workloadmanager.v1.AgentCommand(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.AgentCommand result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.command_ = command_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.AgentCommand) { + return mergeFrom((com.google.cloud.workloadmanager.v1.AgentCommand) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.AgentCommand other) { + if (other == com.google.cloud.workloadmanager.v1.AgentCommand.getDefaultInstance()) + return this; + if (!other.getCommand().isEmpty()) { + command_ = other.command_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + bitField0_ |= 0x00000002; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + command_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry parameters__ = + input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableParameters() + .getMutableMap() + .put(parameters__.getKey(), parameters__.getValue()); + 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 command_ = ""; + + /** + * + * + *
+     * The name of the agent one-time executable that will be invoked.
+     * 
+ * + * string command = 1; + * + * @return The command. + */ + public java.lang.String getCommand() { + java.lang.Object ref = command_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + command_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the agent one-time executable that will be invoked.
+     * 
+ * + * string command = 1; + * + * @return The bytes for command. + */ + public com.google.protobuf.ByteString getCommandBytes() { + java.lang.Object ref = command_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + command_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the agent one-time executable that will be invoked.
+     * 
+ * + * string command = 1; + * + * @param value The command to set. + * @return This builder for chaining. + */ + public Builder setCommand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + command_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the agent one-time executable that will be invoked.
+     * 
+ * + * string command = 1; + * + * @return This builder for chaining. + */ + public Builder clearCommand() { + command_ = getDefaultInstance().getCommand(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the agent one-time executable that will be invoked.
+     * 
+ * + * string command = 1; + * + * @param value The bytes for command to set. + * @return This builder for chaining. + */ + public Builder setCommandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + command_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.MapField parameters_; + + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + private com.google.protobuf.MapField + internalGetMutableParameters() { + if (parameters_ == null) { + parameters_ = + com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); + } + if (!parameters_.isMutable()) { + parameters_ = parameters_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + + /** + * + * + *
+     * A map of key/value pairs that can be used to specify
+     * additional one-time executable settings.
+     * 
+ * + * map<string, string> parameters = 2; + */ + @java.lang.Override + public boolean containsParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetParameters().getMap().containsKey(key); + } + + /** Use {@link #getParametersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + + /** + * + * + *
+     * A map of key/value pairs that can be used to specify
+     * additional one-time executable settings.
+     * 
+ * + * map<string, string> parameters = 2; + */ + @java.lang.Override + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + + /** + * + * + *
+     * A map of key/value pairs that can be used to specify
+     * additional one-time executable settings.
+     * 
+ * + * map<string, string> parameters = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getParametersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * A map of key/value pairs that can be used to specify
+     * additional one-time executable settings.
+     * 
+ * + * map<string, string> parameters = 2; + */ + @java.lang.Override + public java.lang.String getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableParameters().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * A map of key/value pairs that can be used to specify
+     * additional one-time executable settings.
+     * 
+ * + * map<string, string> parameters = 2; + */ + public Builder removeParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableParameters().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableParameters() { + bitField0_ |= 0x00000002; + return internalGetMutableParameters().getMutableMap(); + } + + /** + * + * + *
+     * A map of key/value pairs that can be used to specify
+     * additional one-time executable settings.
+     * 
+ * + * map<string, string> parameters = 2; + */ + public Builder putParameters(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableParameters().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * A map of key/value pairs that can be used to specify
+     * additional one-time executable settings.
+     * 
+ * + * map<string, string> parameters = 2; + */ + public Builder putAllParameters(java.util.Map values) { + internalGetMutableParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.AgentCommand) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.AgentCommand) + private static final com.google.cloud.workloadmanager.v1.AgentCommand DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.AgentCommand(); + } + + public static com.google.cloud.workloadmanager.v1.AgentCommand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentCommand parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.AgentCommand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/AgentCommandOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/AgentCommandOrBuilder.java new file mode 100644 index 000000000000..4b86206bbd26 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/AgentCommandOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface AgentCommandOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.AgentCommand) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the agent one-time executable that will be invoked.
+   * 
+ * + * string command = 1; + * + * @return The command. + */ + java.lang.String getCommand(); + + /** + * + * + *
+   * The name of the agent one-time executable that will be invoked.
+   * 
+ * + * string command = 1; + * + * @return The bytes for command. + */ + com.google.protobuf.ByteString getCommandBytes(); + + /** + * + * + *
+   * A map of key/value pairs that can be used to specify
+   * additional one-time executable settings.
+   * 
+ * + * map<string, string> parameters = 2; + */ + int getParametersCount(); + + /** + * + * + *
+   * A map of key/value pairs that can be used to specify
+   * additional one-time executable settings.
+   * 
+ * + * map<string, string> parameters = 2; + */ + boolean containsParameters(java.lang.String key); + + /** Use {@link #getParametersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getParameters(); + + /** + * + * + *
+   * A map of key/value pairs that can be used to specify
+   * additional one-time executable settings.
+   * 
+ * + * map<string, string> parameters = 2; + */ + java.util.Map getParametersMap(); + + /** + * + * + *
+   * A map of key/value pairs that can be used to specify
+   * additional one-time executable settings.
+   * 
+ * + * map<string, string> parameters = 2; + */ + /* nullable */ + java.lang.String getParametersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * A map of key/value pairs that can be used to specify
+   * additional one-time executable settings.
+   * 
+ * + * map<string, string> parameters = 2; + */ + java.lang.String getParametersOrThrow(java.lang.String key); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/BigQueryDestination.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/BigQueryDestination.java new file mode 100644 index 000000000000..a4b7a4a50e44 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/BigQueryDestination.java @@ -0,0 +1,698 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * BigQuery destination for evaluation results.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.BigQueryDestination} + */ +@com.google.protobuf.Generated +public final class BigQueryDestination extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.BigQueryDestination) + BigQueryDestinationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BigQueryDestination"); + } + + // Use BigQueryDestination.newBuilder() to construct. + private BigQueryDestination(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BigQueryDestination() { + destinationDataset_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.BigQueryDestination.class, + com.google.cloud.workloadmanager.v1.BigQueryDestination.Builder.class); + } + + public static final int DESTINATION_DATASET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationDataset_ = ""; + + /** + * + * + *
+   * Optional. Destination dataset to save evaluation results.
+   * 
+ * + * string destination_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The destinationDataset. + */ + @java.lang.Override + public java.lang.String getDestinationDataset() { + java.lang.Object ref = destinationDataset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationDataset_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Destination dataset to save evaluation results.
+   * 
+ * + * string destination_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for destinationDataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationDatasetBytes() { + java.lang.Object ref = destinationDataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationDataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_NEW_RESULTS_TABLE_FIELD_NUMBER = 2; + private boolean createNewResultsTable_ = false; + + /** + * + * + *
+   * Optional. Determines if a new results table will be created when an
+   * Execution is created.
+   * 
+ * + * bool create_new_results_table = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The createNewResultsTable. + */ + @java.lang.Override + public boolean getCreateNewResultsTable() { + return createNewResultsTable_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(destinationDataset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, destinationDataset_); + } + if (createNewResultsTable_ != false) { + output.writeBool(2, createNewResultsTable_); + } + 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(destinationDataset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, destinationDataset_); + } + if (createNewResultsTable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, createNewResultsTable_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.BigQueryDestination)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.BigQueryDestination other = + (com.google.cloud.workloadmanager.v1.BigQueryDestination) obj; + + if (!getDestinationDataset().equals(other.getDestinationDataset())) return false; + if (getCreateNewResultsTable() != other.getCreateNewResultsTable()) return false; + if (!getUnknownFields().equals(other.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) + DESTINATION_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDestinationDataset().hashCode(); + hash = (37 * hash) + CREATE_NEW_RESULTS_TABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateNewResultsTable()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.BigQueryDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * BigQuery destination for evaluation results.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.BigQueryDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.BigQueryDestination) + com.google.cloud.workloadmanager.v1.BigQueryDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.BigQueryDestination.class, + com.google.cloud.workloadmanager.v1.BigQueryDestination.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.BigQueryDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + destinationDataset_ = ""; + createNewResultsTable_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_BigQueryDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.BigQueryDestination getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.BigQueryDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.BigQueryDestination build() { + com.google.cloud.workloadmanager.v1.BigQueryDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.BigQueryDestination buildPartial() { + com.google.cloud.workloadmanager.v1.BigQueryDestination result = + new com.google.cloud.workloadmanager.v1.BigQueryDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.BigQueryDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.destinationDataset_ = destinationDataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createNewResultsTable_ = createNewResultsTable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.BigQueryDestination) { + return mergeFrom((com.google.cloud.workloadmanager.v1.BigQueryDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.BigQueryDestination other) { + if (other == com.google.cloud.workloadmanager.v1.BigQueryDestination.getDefaultInstance()) + return this; + if (!other.getDestinationDataset().isEmpty()) { + destinationDataset_ = other.destinationDataset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getCreateNewResultsTable() != false) { + setCreateNewResultsTable(other.getCreateNewResultsTable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + destinationDataset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + createNewResultsTable_ = 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 destinationDataset_ = ""; + + /** + * + * + *
+     * Optional. Destination dataset to save evaluation results.
+     * 
+ * + * string destination_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The destinationDataset. + */ + public java.lang.String getDestinationDataset() { + java.lang.Object ref = destinationDataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationDataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Destination dataset to save evaluation results.
+     * 
+ * + * string destination_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for destinationDataset. + */ + public com.google.protobuf.ByteString getDestinationDatasetBytes() { + java.lang.Object ref = destinationDataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationDataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Destination dataset to save evaluation results.
+     * 
+ * + * string destination_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The destinationDataset to set. + * @return This builder for chaining. + */ + public Builder setDestinationDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationDataset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Destination dataset to save evaluation results.
+     * 
+ * + * string destination_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDestinationDataset() { + destinationDataset_ = getDefaultInstance().getDestinationDataset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Destination dataset to save evaluation results.
+     * 
+ * + * string destination_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for destinationDataset to set. + * @return This builder for chaining. + */ + public Builder setDestinationDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationDataset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean createNewResultsTable_; + + /** + * + * + *
+     * Optional. Determines if a new results table will be created when an
+     * Execution is created.
+     * 
+ * + * bool create_new_results_table = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The createNewResultsTable. + */ + @java.lang.Override + public boolean getCreateNewResultsTable() { + return createNewResultsTable_; + } + + /** + * + * + *
+     * Optional. Determines if a new results table will be created when an
+     * Execution is created.
+     * 
+ * + * bool create_new_results_table = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The createNewResultsTable to set. + * @return This builder for chaining. + */ + public Builder setCreateNewResultsTable(boolean value) { + + createNewResultsTable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Determines if a new results table will be created when an
+     * Execution is created.
+     * 
+ * + * bool create_new_results_table = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCreateNewResultsTable() { + bitField0_ = (bitField0_ & ~0x00000002); + createNewResultsTable_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.BigQueryDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.BigQueryDestination) + private static final com.google.cloud.workloadmanager.v1.BigQueryDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.BigQueryDestination(); + } + + public static com.google.cloud.workloadmanager.v1.BigQueryDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.BigQueryDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/BigQueryDestinationOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/BigQueryDestinationOrBuilder.java new file mode 100644 index 000000000000..265c505a5201 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/BigQueryDestinationOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface BigQueryDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.BigQueryDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Destination dataset to save evaluation results.
+   * 
+ * + * string destination_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The destinationDataset. + */ + java.lang.String getDestinationDataset(); + + /** + * + * + *
+   * Optional. Destination dataset to save evaluation results.
+   * 
+ * + * string destination_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for destinationDataset. + */ + com.google.protobuf.ByteString getDestinationDatasetBytes(); + + /** + * + * + *
+   * Optional. Determines if a new results table will be created when an
+   * Execution is created.
+   * 
+ * + * bool create_new_results_table = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The createNewResultsTable. + */ + boolean getCreateNewResultsTable(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Command.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Command.java new file mode 100644 index 000000000000..50045192593c --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Command.java @@ -0,0 +1,1116 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Command specifies the type of command to execute.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Command} + */ +@com.google.protobuf.Generated +public final class Command extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.Command) + CommandOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Command"); + } + + // Use Command.newBuilder() to construct. + private Command(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Command() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Command_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Command_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Command.class, + com.google.cloud.workloadmanager.v1.Command.Builder.class); + } + + private int commandTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object commandType_; + + public enum CommandTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AGENT_COMMAND(1), + SHELL_COMMAND(2), + COMMANDTYPE_NOT_SET(0); + private final int value; + + private CommandTypeCase(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 CommandTypeCase valueOf(int value) { + return forNumber(value); + } + + public static CommandTypeCase forNumber(int value) { + switch (value) { + case 1: + return AGENT_COMMAND; + case 2: + return SHELL_COMMAND; + case 0: + return COMMANDTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CommandTypeCase getCommandTypeCase() { + return CommandTypeCase.forNumber(commandTypeCase_); + } + + public static final int AGENT_COMMAND_FIELD_NUMBER = 1; + + /** + * + * + *
+   * AgentCommand specifies a one-time executable program for the agent to
+   * run.
+   * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + * + * @return Whether the agentCommand field is set. + */ + @java.lang.Override + public boolean hasAgentCommand() { + return commandTypeCase_ == 1; + } + + /** + * + * + *
+   * AgentCommand specifies a one-time executable program for the agent to
+   * run.
+   * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + * + * @return The agentCommand. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.AgentCommand getAgentCommand() { + if (commandTypeCase_ == 1) { + return (com.google.cloud.workloadmanager.v1.AgentCommand) commandType_; + } + return com.google.cloud.workloadmanager.v1.AgentCommand.getDefaultInstance(); + } + + /** + * + * + *
+   * AgentCommand specifies a one-time executable program for the agent to
+   * run.
+   * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.AgentCommandOrBuilder getAgentCommandOrBuilder() { + if (commandTypeCase_ == 1) { + return (com.google.cloud.workloadmanager.v1.AgentCommand) commandType_; + } + return com.google.cloud.workloadmanager.v1.AgentCommand.getDefaultInstance(); + } + + public static final int SHELL_COMMAND_FIELD_NUMBER = 2; + + /** + * + * + *
+   * ShellCommand is invoked via the agent's command line executor.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + * + * @return Whether the shellCommand field is set. + */ + @java.lang.Override + public boolean hasShellCommand() { + return commandTypeCase_ == 2; + } + + /** + * + * + *
+   * ShellCommand is invoked via the agent's command line executor.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + * + * @return The shellCommand. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ShellCommand getShellCommand() { + if (commandTypeCase_ == 2) { + return (com.google.cloud.workloadmanager.v1.ShellCommand) commandType_; + } + return com.google.cloud.workloadmanager.v1.ShellCommand.getDefaultInstance(); + } + + /** + * + * + *
+   * ShellCommand is invoked via the agent's command line executor.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ShellCommandOrBuilder getShellCommandOrBuilder() { + if (commandTypeCase_ == 2) { + return (com.google.cloud.workloadmanager.v1.ShellCommand) commandType_; + } + return com.google.cloud.workloadmanager.v1.ShellCommand.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 (commandTypeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.workloadmanager.v1.AgentCommand) commandType_); + } + if (commandTypeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.workloadmanager.v1.ShellCommand) commandType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (commandTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.workloadmanager.v1.AgentCommand) commandType_); + } + if (commandTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.workloadmanager.v1.ShellCommand) commandType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.Command)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.Command other = + (com.google.cloud.workloadmanager.v1.Command) obj; + + if (!getCommandTypeCase().equals(other.getCommandTypeCase())) return false; + switch (commandTypeCase_) { + case 1: + if (!getAgentCommand().equals(other.getAgentCommand())) return false; + break; + case 2: + if (!getShellCommand().equals(other.getShellCommand())) 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 (commandTypeCase_) { + case 1: + hash = (37 * hash) + AGENT_COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getAgentCommand().hashCode(); + break; + case 2: + hash = (37 * hash) + SHELL_COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getShellCommand().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.Command parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Command parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Command parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Command parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Command parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Command parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Command parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Command parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Command parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Command parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Command parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Command parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.Command prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Command specifies the type of command to execute.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Command} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.Command) + com.google.cloud.workloadmanager.v1.CommandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Command_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Command_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Command.class, + com.google.cloud.workloadmanager.v1.Command.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.Command.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (agentCommandBuilder_ != null) { + agentCommandBuilder_.clear(); + } + if (shellCommandBuilder_ != null) { + shellCommandBuilder_.clear(); + } + commandTypeCase_ = 0; + commandType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Command_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Command getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.Command.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Command build() { + com.google.cloud.workloadmanager.v1.Command result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Command buildPartial() { + com.google.cloud.workloadmanager.v1.Command result = + new com.google.cloud.workloadmanager.v1.Command(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.Command result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.workloadmanager.v1.Command result) { + result.commandTypeCase_ = commandTypeCase_; + result.commandType_ = this.commandType_; + if (commandTypeCase_ == 1 && agentCommandBuilder_ != null) { + result.commandType_ = agentCommandBuilder_.build(); + } + if (commandTypeCase_ == 2 && shellCommandBuilder_ != null) { + result.commandType_ = shellCommandBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.Command) { + return mergeFrom((com.google.cloud.workloadmanager.v1.Command) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.Command other) { + if (other == com.google.cloud.workloadmanager.v1.Command.getDefaultInstance()) return this; + switch (other.getCommandTypeCase()) { + case AGENT_COMMAND: + { + mergeAgentCommand(other.getAgentCommand()); + break; + } + case SHELL_COMMAND: + { + mergeShellCommand(other.getShellCommand()); + break; + } + case COMMANDTYPE_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( + internalGetAgentCommandFieldBuilder().getBuilder(), extensionRegistry); + commandTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetShellCommandFieldBuilder().getBuilder(), extensionRegistry); + commandTypeCase_ = 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 commandTypeCase_ = 0; + private java.lang.Object commandType_; + + public CommandTypeCase getCommandTypeCase() { + return CommandTypeCase.forNumber(commandTypeCase_); + } + + public Builder clearCommandType() { + commandTypeCase_ = 0; + commandType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.AgentCommand, + com.google.cloud.workloadmanager.v1.AgentCommand.Builder, + com.google.cloud.workloadmanager.v1.AgentCommandOrBuilder> + agentCommandBuilder_; + + /** + * + * + *
+     * AgentCommand specifies a one-time executable program for the agent to
+     * run.
+     * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + * + * @return Whether the agentCommand field is set. + */ + @java.lang.Override + public boolean hasAgentCommand() { + return commandTypeCase_ == 1; + } + + /** + * + * + *
+     * AgentCommand specifies a one-time executable program for the agent to
+     * run.
+     * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + * + * @return The agentCommand. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.AgentCommand getAgentCommand() { + if (agentCommandBuilder_ == null) { + if (commandTypeCase_ == 1) { + return (com.google.cloud.workloadmanager.v1.AgentCommand) commandType_; + } + return com.google.cloud.workloadmanager.v1.AgentCommand.getDefaultInstance(); + } else { + if (commandTypeCase_ == 1) { + return agentCommandBuilder_.getMessage(); + } + return com.google.cloud.workloadmanager.v1.AgentCommand.getDefaultInstance(); + } + } + + /** + * + * + *
+     * AgentCommand specifies a one-time executable program for the agent to
+     * run.
+     * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + */ + public Builder setAgentCommand(com.google.cloud.workloadmanager.v1.AgentCommand value) { + if (agentCommandBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commandType_ = value; + onChanged(); + } else { + agentCommandBuilder_.setMessage(value); + } + commandTypeCase_ = 1; + return this; + } + + /** + * + * + *
+     * AgentCommand specifies a one-time executable program for the agent to
+     * run.
+     * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + */ + public Builder setAgentCommand( + com.google.cloud.workloadmanager.v1.AgentCommand.Builder builderForValue) { + if (agentCommandBuilder_ == null) { + commandType_ = builderForValue.build(); + onChanged(); + } else { + agentCommandBuilder_.setMessage(builderForValue.build()); + } + commandTypeCase_ = 1; + return this; + } + + /** + * + * + *
+     * AgentCommand specifies a one-time executable program for the agent to
+     * run.
+     * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + */ + public Builder mergeAgentCommand(com.google.cloud.workloadmanager.v1.AgentCommand value) { + if (agentCommandBuilder_ == null) { + if (commandTypeCase_ == 1 + && commandType_ + != com.google.cloud.workloadmanager.v1.AgentCommand.getDefaultInstance()) { + commandType_ = + com.google.cloud.workloadmanager.v1.AgentCommand.newBuilder( + (com.google.cloud.workloadmanager.v1.AgentCommand) commandType_) + .mergeFrom(value) + .buildPartial(); + } else { + commandType_ = value; + } + onChanged(); + } else { + if (commandTypeCase_ == 1) { + agentCommandBuilder_.mergeFrom(value); + } else { + agentCommandBuilder_.setMessage(value); + } + } + commandTypeCase_ = 1; + return this; + } + + /** + * + * + *
+     * AgentCommand specifies a one-time executable program for the agent to
+     * run.
+     * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + */ + public Builder clearAgentCommand() { + if (agentCommandBuilder_ == null) { + if (commandTypeCase_ == 1) { + commandTypeCase_ = 0; + commandType_ = null; + onChanged(); + } + } else { + if (commandTypeCase_ == 1) { + commandTypeCase_ = 0; + commandType_ = null; + } + agentCommandBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * AgentCommand specifies a one-time executable program for the agent to
+     * run.
+     * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + */ + public com.google.cloud.workloadmanager.v1.AgentCommand.Builder getAgentCommandBuilder() { + return internalGetAgentCommandFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * AgentCommand specifies a one-time executable program for the agent to
+     * run.
+     * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.AgentCommandOrBuilder getAgentCommandOrBuilder() { + if ((commandTypeCase_ == 1) && (agentCommandBuilder_ != null)) { + return agentCommandBuilder_.getMessageOrBuilder(); + } else { + if (commandTypeCase_ == 1) { + return (com.google.cloud.workloadmanager.v1.AgentCommand) commandType_; + } + return com.google.cloud.workloadmanager.v1.AgentCommand.getDefaultInstance(); + } + } + + /** + * + * + *
+     * AgentCommand specifies a one-time executable program for the agent to
+     * run.
+     * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.AgentCommand, + com.google.cloud.workloadmanager.v1.AgentCommand.Builder, + com.google.cloud.workloadmanager.v1.AgentCommandOrBuilder> + internalGetAgentCommandFieldBuilder() { + if (agentCommandBuilder_ == null) { + if (!(commandTypeCase_ == 1)) { + commandType_ = com.google.cloud.workloadmanager.v1.AgentCommand.getDefaultInstance(); + } + agentCommandBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.AgentCommand, + com.google.cloud.workloadmanager.v1.AgentCommand.Builder, + com.google.cloud.workloadmanager.v1.AgentCommandOrBuilder>( + (com.google.cloud.workloadmanager.v1.AgentCommand) commandType_, + getParentForChildren(), + isClean()); + commandType_ = null; + } + commandTypeCase_ = 1; + onChanged(); + return agentCommandBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ShellCommand, + com.google.cloud.workloadmanager.v1.ShellCommand.Builder, + com.google.cloud.workloadmanager.v1.ShellCommandOrBuilder> + shellCommandBuilder_; + + /** + * + * + *
+     * ShellCommand is invoked via the agent's command line executor.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + * + * @return Whether the shellCommand field is set. + */ + @java.lang.Override + public boolean hasShellCommand() { + return commandTypeCase_ == 2; + } + + /** + * + * + *
+     * ShellCommand is invoked via the agent's command line executor.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + * + * @return The shellCommand. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ShellCommand getShellCommand() { + if (shellCommandBuilder_ == null) { + if (commandTypeCase_ == 2) { + return (com.google.cloud.workloadmanager.v1.ShellCommand) commandType_; + } + return com.google.cloud.workloadmanager.v1.ShellCommand.getDefaultInstance(); + } else { + if (commandTypeCase_ == 2) { + return shellCommandBuilder_.getMessage(); + } + return com.google.cloud.workloadmanager.v1.ShellCommand.getDefaultInstance(); + } + } + + /** + * + * + *
+     * ShellCommand is invoked via the agent's command line executor.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + */ + public Builder setShellCommand(com.google.cloud.workloadmanager.v1.ShellCommand value) { + if (shellCommandBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commandType_ = value; + onChanged(); + } else { + shellCommandBuilder_.setMessage(value); + } + commandTypeCase_ = 2; + return this; + } + + /** + * + * + *
+     * ShellCommand is invoked via the agent's command line executor.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + */ + public Builder setShellCommand( + com.google.cloud.workloadmanager.v1.ShellCommand.Builder builderForValue) { + if (shellCommandBuilder_ == null) { + commandType_ = builderForValue.build(); + onChanged(); + } else { + shellCommandBuilder_.setMessage(builderForValue.build()); + } + commandTypeCase_ = 2; + return this; + } + + /** + * + * + *
+     * ShellCommand is invoked via the agent's command line executor.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + */ + public Builder mergeShellCommand(com.google.cloud.workloadmanager.v1.ShellCommand value) { + if (shellCommandBuilder_ == null) { + if (commandTypeCase_ == 2 + && commandType_ + != com.google.cloud.workloadmanager.v1.ShellCommand.getDefaultInstance()) { + commandType_ = + com.google.cloud.workloadmanager.v1.ShellCommand.newBuilder( + (com.google.cloud.workloadmanager.v1.ShellCommand) commandType_) + .mergeFrom(value) + .buildPartial(); + } else { + commandType_ = value; + } + onChanged(); + } else { + if (commandTypeCase_ == 2) { + shellCommandBuilder_.mergeFrom(value); + } else { + shellCommandBuilder_.setMessage(value); + } + } + commandTypeCase_ = 2; + return this; + } + + /** + * + * + *
+     * ShellCommand is invoked via the agent's command line executor.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + */ + public Builder clearShellCommand() { + if (shellCommandBuilder_ == null) { + if (commandTypeCase_ == 2) { + commandTypeCase_ = 0; + commandType_ = null; + onChanged(); + } + } else { + if (commandTypeCase_ == 2) { + commandTypeCase_ = 0; + commandType_ = null; + } + shellCommandBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * ShellCommand is invoked via the agent's command line executor.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + */ + public com.google.cloud.workloadmanager.v1.ShellCommand.Builder getShellCommandBuilder() { + return internalGetShellCommandFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * ShellCommand is invoked via the agent's command line executor.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ShellCommandOrBuilder getShellCommandOrBuilder() { + if ((commandTypeCase_ == 2) && (shellCommandBuilder_ != null)) { + return shellCommandBuilder_.getMessageOrBuilder(); + } else { + if (commandTypeCase_ == 2) { + return (com.google.cloud.workloadmanager.v1.ShellCommand) commandType_; + } + return com.google.cloud.workloadmanager.v1.ShellCommand.getDefaultInstance(); + } + } + + /** + * + * + *
+     * ShellCommand is invoked via the agent's command line executor.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ShellCommand, + com.google.cloud.workloadmanager.v1.ShellCommand.Builder, + com.google.cloud.workloadmanager.v1.ShellCommandOrBuilder> + internalGetShellCommandFieldBuilder() { + if (shellCommandBuilder_ == null) { + if (!(commandTypeCase_ == 2)) { + commandType_ = com.google.cloud.workloadmanager.v1.ShellCommand.getDefaultInstance(); + } + shellCommandBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ShellCommand, + com.google.cloud.workloadmanager.v1.ShellCommand.Builder, + com.google.cloud.workloadmanager.v1.ShellCommandOrBuilder>( + (com.google.cloud.workloadmanager.v1.ShellCommand) commandType_, + getParentForChildren(), + isClean()); + commandType_ = null; + } + commandTypeCase_ = 2; + onChanged(); + return shellCommandBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.Command) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.Command) + private static final com.google.cloud.workloadmanager.v1.Command DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.Command(); + } + + public static com.google.cloud.workloadmanager.v1.Command getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Command parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Command getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/CommandOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/CommandOrBuilder.java new file mode 100644 index 000000000000..48e4a1919525 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/CommandOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface CommandOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.Command) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * AgentCommand specifies a one-time executable program for the agent to
+   * run.
+   * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + * + * @return Whether the agentCommand field is set. + */ + boolean hasAgentCommand(); + + /** + * + * + *
+   * AgentCommand specifies a one-time executable program for the agent to
+   * run.
+   * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + * + * @return The agentCommand. + */ + com.google.cloud.workloadmanager.v1.AgentCommand getAgentCommand(); + + /** + * + * + *
+   * AgentCommand specifies a one-time executable program for the agent to
+   * run.
+   * 
+ * + * .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1; + */ + com.google.cloud.workloadmanager.v1.AgentCommandOrBuilder getAgentCommandOrBuilder(); + + /** + * + * + *
+   * ShellCommand is invoked via the agent's command line executor.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + * + * @return Whether the shellCommand field is set. + */ + boolean hasShellCommand(); + + /** + * + * + *
+   * ShellCommand is invoked via the agent's command line executor.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + * + * @return The shellCommand. + */ + com.google.cloud.workloadmanager.v1.ShellCommand getShellCommand(); + + /** + * + * + *
+   * ShellCommand is invoked via the agent's command line executor.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2; + */ + com.google.cloud.workloadmanager.v1.ShellCommandOrBuilder getShellCommandOrBuilder(); + + com.google.cloud.workloadmanager.v1.Command.CommandTypeCase getCommandTypeCase(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/CreateEvaluationRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/CreateEvaluationRequest.java new file mode 100644 index 000000000000..7e31e5c7624e --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/CreateEvaluationRequest.java @@ -0,0 +1,1397 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the CreateEvaluation RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.CreateEvaluationRequest} + */ +@com.google.protobuf.Generated +public final class CreateEvaluationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.CreateEvaluationRequest) + CreateEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateEvaluationRequest"); + } + + // Use CreateEvaluationRequest.newBuilder() to construct. + private CreateEvaluationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateEvaluationRequest() { + parent_ = ""; + evaluationId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_CreateEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_CreateEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest.class, + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource prefix of the evaluation location using the form:
+   * `projects/{project_id}/locations/{location_id}`.
+   * 
+ * + * + * 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 prefix of the evaluation location using the form:
+   * `projects/{project_id}/locations/{location_id}`.
+   * 
+ * + * + * 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 EVALUATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object evaluationId_ = ""; + + /** + * + * + *
+   * Required. Id of the requesting object.
+   * 
+ * + * string evaluation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The evaluationId. + */ + @java.lang.Override + public java.lang.String getEvaluationId() { + java.lang.Object ref = evaluationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluationId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Id of the requesting object.
+   * 
+ * + * string evaluation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for evaluationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationIdBytes() { + java.lang.Object ref = evaluationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVALUATION_FIELD_NUMBER = 3; + private com.google.cloud.workloadmanager.v1.Evaluation evaluation_; + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + @java.lang.Override + public boolean hasEvaluation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation getEvaluation() { + return evaluation_ == null + ? com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance() + : evaluation_; + } + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.EvaluationOrBuilder getEvaluationOrBuilder() { + return evaluation_ == null + ? com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance() + : evaluation_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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(evaluationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, evaluationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getEvaluation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + 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(evaluationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, evaluationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEvaluation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.CreateEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest other = + (com.google.cloud.workloadmanager.v1.CreateEvaluationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getEvaluationId().equals(other.getEvaluationId())) return false; + if (hasEvaluation() != other.hasEvaluation()) return false; + if (hasEvaluation()) { + if (!getEvaluation().equals(other.getEvaluation())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.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) + EVALUATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationId().hashCode(); + if (hasEvaluation()) { + hash = (37 * hash) + EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getEvaluation().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CreateEvaluation RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.CreateEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.CreateEvaluationRequest) + com.google.cloud.workloadmanager.v1.CreateEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_CreateEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_CreateEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest.class, + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.CreateEvaluationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEvaluationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + evaluationId_ = ""; + evaluation_ = null; + if (evaluationBuilder_ != null) { + evaluationBuilder_.dispose(); + evaluationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_CreateEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.CreateEvaluationRequest getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.CreateEvaluationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.CreateEvaluationRequest build() { + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.CreateEvaluationRequest buildPartial() { + com.google.cloud.workloadmanager.v1.CreateEvaluationRequest result = + new com.google.cloud.workloadmanager.v1.CreateEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.CreateEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.evaluationId_ = evaluationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.evaluation_ = evaluationBuilder_ == null ? evaluation_ : evaluationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.CreateEvaluationRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.CreateEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.CreateEvaluationRequest other) { + if (other == com.google.cloud.workloadmanager.v1.CreateEvaluationRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEvaluationId().isEmpty()) { + evaluationId_ = other.evaluationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasEvaluation()) { + mergeEvaluation(other.getEvaluation()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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 18: + { + evaluationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEvaluationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = 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 resource prefix of the evaluation location using the form:
+     * `projects/{project_id}/locations/{location_id}`.
+     * 
+ * + * + * 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 prefix of the evaluation location using the form:
+     * `projects/{project_id}/locations/{location_id}`.
+     * 
+ * + * + * 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 prefix of the evaluation location using the form:
+     * `projects/{project_id}/locations/{location_id}`.
+     * 
+ * + * + * 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 prefix of the evaluation location using the form:
+     * `projects/{project_id}/locations/{location_id}`.
+     * 
+ * + * + * 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 prefix of the evaluation location using the form:
+     * `projects/{project_id}/locations/{location_id}`.
+     * 
+ * + * + * 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 evaluationId_ = ""; + + /** + * + * + *
+     * Required. Id of the requesting object.
+     * 
+ * + * string evaluation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The evaluationId. + */ + public java.lang.String getEvaluationId() { + java.lang.Object ref = evaluationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Id of the requesting object.
+     * 
+ * + * string evaluation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for evaluationId. + */ + public com.google.protobuf.ByteString getEvaluationIdBytes() { + java.lang.Object ref = evaluationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Id of the requesting object.
+     * 
+ * + * string evaluation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The evaluationId to set. + * @return This builder for chaining. + */ + public Builder setEvaluationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Id of the requesting object.
+     * 
+ * + * string evaluation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationId() { + evaluationId_ = getDefaultInstance().getEvaluationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Id of the requesting object.
+     * 
+ * + * string evaluation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for evaluationId to set. + * @return This builder for chaining. + */ + public Builder setEvaluationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.workloadmanager.v1.Evaluation evaluation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Evaluation, + com.google.cloud.workloadmanager.v1.Evaluation.Builder, + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder> + evaluationBuilder_; + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + public boolean hasEvaluation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + public com.google.cloud.workloadmanager.v1.Evaluation getEvaluation() { + if (evaluationBuilder_ == null) { + return evaluation_ == null + ? com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance() + : evaluation_; + } else { + return evaluationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluation(com.google.cloud.workloadmanager.v1.Evaluation value) { + if (evaluationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluation_ = value; + } else { + evaluationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluation( + com.google.cloud.workloadmanager.v1.Evaluation.Builder builderForValue) { + if (evaluationBuilder_ == null) { + evaluation_ = builderForValue.build(); + } else { + evaluationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEvaluation(com.google.cloud.workloadmanager.v1.Evaluation value) { + if (evaluationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && evaluation_ != null + && evaluation_ != com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance()) { + getEvaluationBuilder().mergeFrom(value); + } else { + evaluation_ = value; + } + } else { + evaluationBuilder_.mergeFrom(value); + } + if (evaluation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEvaluation() { + bitField0_ = (bitField0_ & ~0x00000004); + evaluation_ = null; + if (evaluationBuilder_ != null) { + evaluationBuilder_.dispose(); + evaluationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.workloadmanager.v1.Evaluation.Builder getEvaluationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEvaluationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.workloadmanager.v1.EvaluationOrBuilder getEvaluationOrBuilder() { + if (evaluationBuilder_ != null) { + return evaluationBuilder_.getMessageOrBuilder(); + } else { + return evaluation_ == null + ? com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance() + : evaluation_; + } + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Evaluation, + com.google.cloud.workloadmanager.v1.Evaluation.Builder, + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder> + internalGetEvaluationFieldBuilder() { + if (evaluationBuilder_ == null) { + evaluationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Evaluation, + com.google.cloud.workloadmanager.v1.Evaluation.Builder, + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder>( + getEvaluation(), getParentForChildren(), isClean()); + evaluation_ = null; + } + return evaluationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.CreateEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.CreateEvaluationRequest) + private static final com.google.cloud.workloadmanager.v1.CreateEvaluationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.CreateEvaluationRequest(); + } + + public static com.google.cloud.workloadmanager.v1.CreateEvaluationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.CreateEvaluationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/CreateEvaluationRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/CreateEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..aca5d82bbd40 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/CreateEvaluationRequestOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface CreateEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.CreateEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource prefix of the evaluation location using the form:
+   * `projects/{project_id}/locations/{location_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource prefix of the evaluation location using the form:
+   * `projects/{project_id}/locations/{location_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Id of the requesting object.
+   * 
+ * + * string evaluation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The evaluationId. + */ + java.lang.String getEvaluationId(); + + /** + * + * + *
+   * Required. Id of the requesting object.
+   * 
+ * + * string evaluation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for evaluationId. + */ + com.google.protobuf.ByteString getEvaluationIdBytes(); + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + boolean hasEvaluation(); + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + com.google.cloud.workloadmanager.v1.Evaluation getEvaluation(); + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder getEvaluationOrBuilder(); + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteEvaluationRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteEvaluationRequest.java new file mode 100644 index 000000000000..4c04474a553f --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteEvaluationRequest.java @@ -0,0 +1,985 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the DeleteEvaluation RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.DeleteEvaluationRequest} + */ +@com.google.protobuf.Generated +public final class DeleteEvaluationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.DeleteEvaluationRequest) + DeleteEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteEvaluationRequest"); + } + + // Use DeleteEvaluationRequest.newBuilder() to construct. + private DeleteEvaluationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteEvaluationRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_DeleteEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_DeleteEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest.class, + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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. Name of the resource.
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional 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.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional 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.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + + /** + * + * + *
+   * Optional. Followed the best practice from
+   * https://aip.dev/135#cascading-delete.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + 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(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest other = + (com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 DeleteEvaluation RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.DeleteEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.DeleteEvaluationRequest) + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_DeleteEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_DeleteEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest.class, + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_DeleteEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest build() { + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest buildPartial() { + com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest result = + new com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest other) { + if (other == com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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 requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional 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.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional 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.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional 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.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional 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.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional 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.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
+     * Optional. Followed the best practice from
+     * https://aip.dev/135#cascading-delete.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
+     * Optional. Followed the best practice from
+     * https://aip.dev/135#cascading-delete.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Followed the best practice from
+     * https://aip.dev/135#cascading-delete.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.DeleteEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.DeleteEvaluationRequest) + private static final com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest(); + } + + public static com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteEvaluationRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..557332ecf387 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteEvaluationRequestOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface DeleteEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.DeleteEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional 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.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional 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.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. Followed the best practice from
+   * https://aip.dev/135#cascading-delete.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteExecutionRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteExecutionRequest.java new file mode 100644 index 000000000000..ae53569518be --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteExecutionRequest.java @@ -0,0 +1,884 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the DeleteExecution RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.DeleteExecutionRequest} + */ +@com.google.protobuf.Generated +public final class DeleteExecutionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.DeleteExecutionRequest) + DeleteExecutionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteExecutionRequest"); + } + + // Use DeleteExecutionRequest.newBuilder() to construct. + private DeleteExecutionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteExecutionRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_DeleteExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_DeleteExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest.class, + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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. Name of the resource.
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional 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.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional 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.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + 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(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.DeleteExecutionRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest other = + (com.google.cloud.workloadmanager.v1.DeleteExecutionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the DeleteExecution RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.DeleteExecutionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.DeleteExecutionRequest) + com.google.cloud.workloadmanager.v1.DeleteExecutionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_DeleteExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_DeleteExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest.class, + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.DeleteExecutionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_DeleteExecutionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.DeleteExecutionRequest getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.DeleteExecutionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.DeleteExecutionRequest build() { + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.DeleteExecutionRequest buildPartial() { + com.google.cloud.workloadmanager.v1.DeleteExecutionRequest result = + new com.google.cloud.workloadmanager.v1.DeleteExecutionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.DeleteExecutionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.DeleteExecutionRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.DeleteExecutionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.DeleteExecutionRequest other) { + if (other == com.google.cloud.workloadmanager.v1.DeleteExecutionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + requestId_ = 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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 requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional 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.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional 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.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional 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.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional 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.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional 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.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.DeleteExecutionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.DeleteExecutionRequest) + private static final com.google.cloud.workloadmanager.v1.DeleteExecutionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.DeleteExecutionRequest(); + } + + public static com.google.cloud.workloadmanager.v1.DeleteExecutionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.DeleteExecutionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteExecutionRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..fcfe5983f49f --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/DeleteExecutionRequestOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface DeleteExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.DeleteExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional 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.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional 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.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Evaluation.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Evaluation.java new file mode 100644 index 000000000000..5d1756793726 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Evaluation.java @@ -0,0 +1,4059 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Represents a Workload Manager Evaluation configuration.
+ * An Evaluation defines a set of rules to be validated against a scope
+ * of Cloud resources.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Evaluation} + */ +@com.google.protobuf.Generated +public final class Evaluation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.Evaluation) + EvaluationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Evaluation"); + } + + // Use Evaluation.newBuilder() to construct. + private Evaluation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Evaluation() { + name_ = ""; + description_ = ""; + ruleNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + schedule_ = ""; + customRulesBucket_ = ""; + evaluationType_ = 0; + kmsKey_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Evaluation_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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Evaluation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Evaluation.class, + com.google.cloud.workloadmanager.v1.Evaluation.Builder.class); + } + + /** + * + * + *
+   * Possible types of workload evaluations like SAP, SQL Server, etc.
+   * 
+ * + * Protobuf enum {@code google.cloud.workloadmanager.v1.Evaluation.EvaluationType} + */ + public enum EvaluationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * EVALUATION_TYPE_UNSPECIFIED = 0; + */ + EVALUATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * SAP best practices.
+     * 
+ * + * SAP = 1; + */ + SAP(1), + /** + * + * + *
+     * SQL best practices.
+     * 
+ * + * SQL_SERVER = 2; + */ + SQL_SERVER(2), + /** + * + * + *
+     * Customized best practices.
+     * 
+ * + * OTHER = 3; + */ + OTHER(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationType"); + } + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * EVALUATION_TYPE_UNSPECIFIED = 0; + */ + public static final int EVALUATION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * SAP best practices.
+     * 
+ * + * SAP = 1; + */ + public static final int SAP_VALUE = 1; + + /** + * + * + *
+     * SQL best practices.
+     * 
+ * + * SQL_SERVER = 2; + */ + public static final int SQL_SERVER_VALUE = 2; + + /** + * + * + *
+     * Customized best practices.
+     * 
+ * + * OTHER = 3; + */ + public static final int OTHER_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 EvaluationType 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 EvaluationType forNumber(int value) { + switch (value) { + case 0: + return EVALUATION_TYPE_UNSPECIFIED; + case 1: + return SAP; + case 2: + return SQL_SERVER; + case 3: + return OTHER; + 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 EvaluationType findValueByNumber(int number) { + return EvaluationType.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.workloadmanager.v1.Evaluation.getDescriptor().getEnumTypes().get(0); + } + + private static final EvaluationType[] VALUES = values(); + + public static EvaluationType 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 EvaluationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.workloadmanager.v1.Evaluation.EvaluationType) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Name of resource that has the form
+   * `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_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; + } + } + + /** + * + * + *
+   * Name of resource that has the form
+   * `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_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; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Description of the Evaluation.
+   * 
+ * + * string description = 2; + * + * @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; + } + } + + /** + * + * + *
+   * Description of the Evaluation.
+   * 
+ * + * string description = 2; + * + * @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_FILTER_FIELD_NUMBER = 3; + private com.google.cloud.workloadmanager.v1.ResourceFilter resourceFilter_; + + /** + * + * + *
+   * Resource filter for an evaluation defining the scope of resources to be
+   * evaluated.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + * + * @return Whether the resourceFilter field is set. + */ + @java.lang.Override + public boolean hasResourceFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Resource filter for an evaluation defining the scope of resources to be
+   * evaluated.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + * + * @return The resourceFilter. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceFilter getResourceFilter() { + return resourceFilter_ == null + ? com.google.cloud.workloadmanager.v1.ResourceFilter.getDefaultInstance() + : resourceFilter_; + } + + /** + * + * + *
+   * Resource filter for an evaluation defining the scope of resources to be
+   * evaluated.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceFilterOrBuilder getResourceFilterOrBuilder() { + return resourceFilter_ == null + ? com.google.cloud.workloadmanager.v1.ResourceFilter.getDefaultInstance() + : resourceFilter_; + } + + public static final int RULE_NAMES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList ruleNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The names of the rules used for this evaluation.
+   * 
+ * + * repeated string rule_names = 4; + * + * @return A list containing the ruleNames. + */ + public com.google.protobuf.ProtocolStringList getRuleNamesList() { + return ruleNames_; + } + + /** + * + * + *
+   * The names of the rules used for this evaluation.
+   * 
+ * + * repeated string rule_names = 4; + * + * @return The count of ruleNames. + */ + public int getRuleNamesCount() { + return ruleNames_.size(); + } + + /** + * + * + *
+   * The names of the rules used for this evaluation.
+   * 
+ * + * repeated string rule_names = 4; + * + * @param index The index of the element to return. + * @return The ruleNames at the given index. + */ + public java.lang.String getRuleNames(int index) { + return ruleNames_.get(index); + } + + /** + * + * + *
+   * The names of the rules used for this evaluation.
+   * 
+ * + * repeated string rule_names = 4; + * + * @param index The index of the value to return. + * @return The bytes of the ruleNames at the given index. + */ + public com.google.protobuf.ByteString getRuleNamesBytes(int index) { + return ruleNames_.getByteString(index); + } + + public static final int RESOURCE_STATUS_FIELD_NUMBER = 6; + private com.google.cloud.workloadmanager.v1.ResourceStatus resourceStatus_; + + /** + * + * + *
+   * Output only. [Output only] The current lifecycle state of the evaluation
+   * resource.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resourceStatus field is set. + */ + @java.lang.Override + public boolean hasResourceStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] The current lifecycle state of the evaluation
+   * resource.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceStatus. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceStatus getResourceStatus() { + return resourceStatus_ == null + ? com.google.cloud.workloadmanager.v1.ResourceStatus.getDefaultInstance() + : resourceStatus_; + } + + /** + * + * + *
+   * Output only. [Output only] The current lifecycle state of the evaluation
+   * resource.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceStatusOrBuilder getResourceStatusOrBuilder() { + return resourceStatus_ == null + ? com.google.cloud.workloadmanager.v1.ResourceStatus.getDefaultInstance() + : resourceStatus_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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 = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.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. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.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 LABELS_FIELD_NUMBER = 9; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Evaluation_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(); + } + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 9; + */ + @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 as key value pairs.
+   * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 9; + */ + @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; + } + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 9; + */ + @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 static final int SCHEDULE_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object schedule_ = ""; + + /** + * + * + *
+   * Crontab format schedule for scheduled evaluation, currently only supports
+   * the following fixed schedules:
+   * * `0 */1 * * *` # Hourly
+   * * `0 */6 * * *` # Every 6 hours
+   * * `0 */12 * * *` # Every 12 hours
+   * * `0 0 */1 * *` # Daily
+   * * `0 0 */7 * *` # Weekly
+   * * `0 0 */14 * *` # Every 14 days
+   * * `0 0 1 */1 *` # Monthly
+   * 
+ * + * optional string schedule = 10; + * + * @return Whether the schedule field is set. + */ + @java.lang.Override + public boolean hasSchedule() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Crontab format schedule for scheduled evaluation, currently only supports
+   * the following fixed schedules:
+   * * `0 */1 * * *` # Hourly
+   * * `0 */6 * * *` # Every 6 hours
+   * * `0 */12 * * *` # Every 12 hours
+   * * `0 0 */1 * *` # Daily
+   * * `0 0 */7 * *` # Weekly
+   * * `0 0 */14 * *` # Every 14 days
+   * * `0 0 1 */1 *` # Monthly
+   * 
+ * + * optional string schedule = 10; + * + * @return The schedule. + */ + @java.lang.Override + public java.lang.String getSchedule() { + java.lang.Object ref = schedule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schedule_ = s; + return s; + } + } + + /** + * + * + *
+   * Crontab format schedule for scheduled evaluation, currently only supports
+   * the following fixed schedules:
+   * * `0 */1 * * *` # Hourly
+   * * `0 */6 * * *` # Every 6 hours
+   * * `0 */12 * * *` # Every 12 hours
+   * * `0 0 */1 * *` # Daily
+   * * `0 0 */7 * *` # Weekly
+   * * `0 0 */14 * *` # Every 14 days
+   * * `0 0 1 */1 *` # Monthly
+   * 
+ * + * optional string schedule = 10; + * + * @return The bytes for schedule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScheduleBytes() { + java.lang.Object ref = schedule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schedule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_RULES_BUCKET_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object customRulesBucket_ = ""; + + /** + * + * + *
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * string custom_rules_bucket = 11; + * + * @return The customRulesBucket. + */ + @java.lang.Override + public java.lang.String getCustomRulesBucket() { + java.lang.Object ref = customRulesBucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customRulesBucket_ = s; + return s; + } + } + + /** + * + * + *
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * string custom_rules_bucket = 11; + * + * @return The bytes for customRulesBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomRulesBucketBytes() { + java.lang.Object ref = customRulesBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customRulesBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVALUATION_TYPE_FIELD_NUMBER = 12; + private int evaluationType_ = 0; + + /** + * + * + *
+   * Evaluation type.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12; + * + * @return The enum numeric value on the wire for evaluationType. + */ + @java.lang.Override + public int getEvaluationTypeValue() { + return evaluationType_; + } + + /** + * + * + *
+   * Evaluation type.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12; + * + * @return The evaluationType. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType getEvaluationType() { + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType result = + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.forNumber(evaluationType_); + return result == null + ? com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.UNRECOGNIZED + : result; + } + + public static final int BIG_QUERY_DESTINATION_FIELD_NUMBER = 13; + private com.google.cloud.workloadmanager.v1.BigQueryDestination bigQueryDestination_; + + /** + * + * + *
+   * Optional. The BigQuery destination for detailed evaluation results.
+   * If this field is specified, the results of each evaluation execution are
+   * exported to BigQuery.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigQueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigQueryDestination() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. The BigQuery destination for detailed evaluation results.
+   * If this field is specified, the results of each evaluation execution are
+   * exported to BigQuery.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigQueryDestination. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.BigQueryDestination getBigQueryDestination() { + return bigQueryDestination_ == null + ? com.google.cloud.workloadmanager.v1.BigQueryDestination.getDefaultInstance() + : bigQueryDestination_; + } + + /** + * + * + *
+   * Optional. The BigQuery destination for detailed evaluation results.
+   * If this field is specified, the results of each evaluation execution are
+   * exported to BigQuery.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.BigQueryDestinationOrBuilder + getBigQueryDestinationOrBuilder() { + return bigQueryDestination_ == null + ? com.google.cloud.workloadmanager.v1.BigQueryDestination.getDefaultInstance() + : bigQueryDestination_; + } + + public static final int KMS_KEY_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKey_ = ""; + + /** + * + * + *
+   * Optional. Immutable. Customer-managed encryption key name, in the format
+   * projects/*/locations/*/keyRings/*/cryptoKeys/*.
+   * The key will be used for CMEK encryption of the evaluation resource.
+   * 
+ * + * + * string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + @java.lang.Override + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. Customer-managed encryption key name, in the format
+   * projects/*/locations/*/keyRings/*/cryptoKeys/*.
+   * The key will be used for CMEK encryption of the evaluation resource.
+   * 
+ * + * + * string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = 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_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getResourceFilter()); + } + for (int i = 0; i < ruleNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, ruleNames_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getResourceStatus()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, schedule_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customRulesBucket_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, customRulesBucket_); + } + if (evaluationType_ + != com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.EVALUATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, evaluationType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(13, getBigQueryDestination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, kmsKey_); + } + 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, getResourceFilter()); + } + { + int dataSize = 0; + for (int i = 0; i < ruleNames_.size(); i++) { + dataSize += computeStringSizeNoTag(ruleNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getRuleNamesList().size(); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getResourceStatus()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + 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__); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, schedule_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customRulesBucket_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, customRulesBucket_); + } + if (evaluationType_ + != com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.EVALUATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, evaluationType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, getBigQueryDestination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, kmsKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.Evaluation)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.Evaluation other = + (com.google.cloud.workloadmanager.v1.Evaluation) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasResourceFilter() != other.hasResourceFilter()) return false; + if (hasResourceFilter()) { + if (!getResourceFilter().equals(other.getResourceFilter())) return false; + } + if (!getRuleNamesList().equals(other.getRuleNamesList())) return false; + if (hasResourceStatus() != other.hasResourceStatus()) return false; + if (hasResourceStatus()) { + if (!getResourceStatus().equals(other.getResourceStatus())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasSchedule() != other.hasSchedule()) return false; + if (hasSchedule()) { + if (!getSchedule().equals(other.getSchedule())) return false; + } + if (!getCustomRulesBucket().equals(other.getCustomRulesBucket())) return false; + if (evaluationType_ != other.evaluationType_) return false; + if (hasBigQueryDestination() != other.hasBigQueryDestination()) return false; + if (hasBigQueryDestination()) { + if (!getBigQueryDestination().equals(other.getBigQueryDestination())) return false; + } + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getUnknownFields().equals(other.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 (hasResourceFilter()) { + hash = (37 * hash) + RESOURCE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getResourceFilter().hashCode(); + } + if (getRuleNamesCount() > 0) { + hash = (37 * hash) + RULE_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getRuleNamesList().hashCode(); + } + if (hasResourceStatus()) { + hash = (37 * hash) + RESOURCE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getResourceStatus().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 (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasSchedule()) { + hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getSchedule().hashCode(); + } + hash = (37 * hash) + CUSTOM_RULES_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getCustomRulesBucket().hashCode(); + hash = (37 * hash) + EVALUATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + evaluationType_; + if (hasBigQueryDestination()) { + hash = (37 * hash) + BIG_QUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigQueryDestination().hashCode(); + } + hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.Evaluation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Workload Manager Evaluation configuration.
+   * An Evaluation defines a set of rules to be validated against a scope
+   * of Cloud resources.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Evaluation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.Evaluation) + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Evaluation_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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Evaluation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Evaluation.class, + com.google.cloud.workloadmanager.v1.Evaluation.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.Evaluation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResourceFilterFieldBuilder(); + internalGetResourceStatusFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetBigQueryDestinationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + resourceFilter_ = null; + if (resourceFilterBuilder_ != null) { + resourceFilterBuilder_.dispose(); + resourceFilterBuilder_ = null; + } + ruleNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceStatus_ = null; + if (resourceStatusBuilder_ != null) { + resourceStatusBuilder_.dispose(); + resourceStatusBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + schedule_ = ""; + customRulesBucket_ = ""; + evaluationType_ = 0; + bigQueryDestination_ = null; + if (bigQueryDestinationBuilder_ != null) { + bigQueryDestinationBuilder_.dispose(); + bigQueryDestinationBuilder_ = null; + } + kmsKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Evaluation_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation build() { + com.google.cloud.workloadmanager.v1.Evaluation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation buildPartial() { + com.google.cloud.workloadmanager.v1.Evaluation result = + new com.google.cloud.workloadmanager.v1.Evaluation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.Evaluation 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.resourceFilter_ = + resourceFilterBuilder_ == null ? resourceFilter_ : resourceFilterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + ruleNames_.makeImmutable(); + result.ruleNames_ = ruleNames_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resourceStatus_ = + resourceStatusBuilder_ == null ? resourceStatus_ : resourceStatusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.schedule_ = schedule_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.customRulesBucket_ = customRulesBucket_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.evaluationType_ = evaluationType_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.bigQueryDestination_ = + bigQueryDestinationBuilder_ == null + ? bigQueryDestination_ + : bigQueryDestinationBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.kmsKey_ = kmsKey_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.Evaluation) { + return mergeFrom((com.google.cloud.workloadmanager.v1.Evaluation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.Evaluation other) { + if (other == com.google.cloud.workloadmanager.v1.Evaluation.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.hasResourceFilter()) { + mergeResourceFilter(other.getResourceFilter()); + } + if (!other.ruleNames_.isEmpty()) { + if (ruleNames_.isEmpty()) { + ruleNames_ = other.ruleNames_; + bitField0_ |= 0x00000008; + } else { + ensureRuleNamesIsMutable(); + ruleNames_.addAll(other.ruleNames_); + } + onChanged(); + } + if (other.hasResourceStatus()) { + mergeResourceStatus(other.getResourceStatus()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; + if (other.hasSchedule()) { + schedule_ = other.schedule_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getCustomRulesBucket().isEmpty()) { + customRulesBucket_ = other.customRulesBucket_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.evaluationType_ != 0) { + setEvaluationTypeValue(other.getEvaluationTypeValue()); + } + if (other.hasBigQueryDestination()) { + mergeBigQueryDestination(other.getBigQueryDestination()); + } + if (!other.getKmsKey().isEmpty()) { + kmsKey_ = other.kmsKey_; + bitField0_ |= 0x00001000; + 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 + case 26: + { + input.readMessage( + internalGetResourceFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRuleNamesIsMutable(); + ruleNames_.add(s); + break; + } // case 34 + case 50: + { + input.readMessage( + internalGetResourceStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().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 + case 82: + { + schedule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + customRulesBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 96: + { + evaluationType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 106: + { + input.readMessage( + internalGetBigQueryDestinationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 122: + { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + 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_ = ""; + + /** + * + * + *
+     * Name of resource that has the form
+     * `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_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; + } + } + + /** + * + * + *
+     * Name of resource that has the form
+     * `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_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; + } + } + + /** + * + * + *
+     * Name of resource that has the form
+     * `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_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; + } + + /** + * + * + *
+     * Name of resource that has the form
+     * `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}`.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of resource that has the form
+     * `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_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; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Description of the Evaluation.
+     * 
+ * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Description of the Evaluation.
+     * 
+ * + * string description = 2; + * + * @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; + } + } + + /** + * + * + *
+     * Description of the Evaluation.
+     * 
+ * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Description of the Evaluation.
+     * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Description of the Evaluation.
+     * 
+ * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.workloadmanager.v1.ResourceFilter resourceFilter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ResourceFilter, + com.google.cloud.workloadmanager.v1.ResourceFilter.Builder, + com.google.cloud.workloadmanager.v1.ResourceFilterOrBuilder> + resourceFilterBuilder_; + + /** + * + * + *
+     * Resource filter for an evaluation defining the scope of resources to be
+     * evaluated.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + * + * @return Whether the resourceFilter field is set. + */ + public boolean hasResourceFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Resource filter for an evaluation defining the scope of resources to be
+     * evaluated.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + * + * @return The resourceFilter. + */ + public com.google.cloud.workloadmanager.v1.ResourceFilter getResourceFilter() { + if (resourceFilterBuilder_ == null) { + return resourceFilter_ == null + ? com.google.cloud.workloadmanager.v1.ResourceFilter.getDefaultInstance() + : resourceFilter_; + } else { + return resourceFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Resource filter for an evaluation defining the scope of resources to be
+     * evaluated.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + */ + public Builder setResourceFilter(com.google.cloud.workloadmanager.v1.ResourceFilter value) { + if (resourceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceFilter_ = value; + } else { + resourceFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Resource filter for an evaluation defining the scope of resources to be
+     * evaluated.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + */ + public Builder setResourceFilter( + com.google.cloud.workloadmanager.v1.ResourceFilter.Builder builderForValue) { + if (resourceFilterBuilder_ == null) { + resourceFilter_ = builderForValue.build(); + } else { + resourceFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Resource filter for an evaluation defining the scope of resources to be
+     * evaluated.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + */ + public Builder mergeResourceFilter(com.google.cloud.workloadmanager.v1.ResourceFilter value) { + if (resourceFilterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && resourceFilter_ != null + && resourceFilter_ + != com.google.cloud.workloadmanager.v1.ResourceFilter.getDefaultInstance()) { + getResourceFilterBuilder().mergeFrom(value); + } else { + resourceFilter_ = value; + } + } else { + resourceFilterBuilder_.mergeFrom(value); + } + if (resourceFilter_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Resource filter for an evaluation defining the scope of resources to be
+     * evaluated.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + */ + public Builder clearResourceFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + resourceFilter_ = null; + if (resourceFilterBuilder_ != null) { + resourceFilterBuilder_.dispose(); + resourceFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Resource filter for an evaluation defining the scope of resources to be
+     * evaluated.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + */ + public com.google.cloud.workloadmanager.v1.ResourceFilter.Builder getResourceFilterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetResourceFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Resource filter for an evaluation defining the scope of resources to be
+     * evaluated.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + */ + public com.google.cloud.workloadmanager.v1.ResourceFilterOrBuilder + getResourceFilterOrBuilder() { + if (resourceFilterBuilder_ != null) { + return resourceFilterBuilder_.getMessageOrBuilder(); + } else { + return resourceFilter_ == null + ? com.google.cloud.workloadmanager.v1.ResourceFilter.getDefaultInstance() + : resourceFilter_; + } + } + + /** + * + * + *
+     * Resource filter for an evaluation defining the scope of resources to be
+     * evaluated.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ResourceFilter, + com.google.cloud.workloadmanager.v1.ResourceFilter.Builder, + com.google.cloud.workloadmanager.v1.ResourceFilterOrBuilder> + internalGetResourceFilterFieldBuilder() { + if (resourceFilterBuilder_ == null) { + resourceFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ResourceFilter, + com.google.cloud.workloadmanager.v1.ResourceFilter.Builder, + com.google.cloud.workloadmanager.v1.ResourceFilterOrBuilder>( + getResourceFilter(), getParentForChildren(), isClean()); + resourceFilter_ = null; + } + return resourceFilterBuilder_; + } + + private com.google.protobuf.LazyStringArrayList ruleNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRuleNamesIsMutable() { + if (!ruleNames_.isModifiable()) { + ruleNames_ = new com.google.protobuf.LazyStringArrayList(ruleNames_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * The names of the rules used for this evaluation.
+     * 
+ * + * repeated string rule_names = 4; + * + * @return A list containing the ruleNames. + */ + public com.google.protobuf.ProtocolStringList getRuleNamesList() { + ruleNames_.makeImmutable(); + return ruleNames_; + } + + /** + * + * + *
+     * The names of the rules used for this evaluation.
+     * 
+ * + * repeated string rule_names = 4; + * + * @return The count of ruleNames. + */ + public int getRuleNamesCount() { + return ruleNames_.size(); + } + + /** + * + * + *
+     * The names of the rules used for this evaluation.
+     * 
+ * + * repeated string rule_names = 4; + * + * @param index The index of the element to return. + * @return The ruleNames at the given index. + */ + public java.lang.String getRuleNames(int index) { + return ruleNames_.get(index); + } + + /** + * + * + *
+     * The names of the rules used for this evaluation.
+     * 
+ * + * repeated string rule_names = 4; + * + * @param index The index of the value to return. + * @return The bytes of the ruleNames at the given index. + */ + public com.google.protobuf.ByteString getRuleNamesBytes(int index) { + return ruleNames_.getByteString(index); + } + + /** + * + * + *
+     * The names of the rules used for this evaluation.
+     * 
+ * + * repeated string rule_names = 4; + * + * @param index The index to set the value at. + * @param value The ruleNames to set. + * @return This builder for chaining. + */ + public Builder setRuleNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleNamesIsMutable(); + ruleNames_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The names of the rules used for this evaluation.
+     * 
+ * + * repeated string rule_names = 4; + * + * @param value The ruleNames to add. + * @return This builder for chaining. + */ + public Builder addRuleNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleNamesIsMutable(); + ruleNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The names of the rules used for this evaluation.
+     * 
+ * + * repeated string rule_names = 4; + * + * @param values The ruleNames to add. + * @return This builder for chaining. + */ + public Builder addAllRuleNames(java.lang.Iterable values) { + ensureRuleNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleNames_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The names of the rules used for this evaluation.
+     * 
+ * + * repeated string rule_names = 4; + * + * @return This builder for chaining. + */ + public Builder clearRuleNames() { + ruleNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The names of the rules used for this evaluation.
+     * 
+ * + * repeated string rule_names = 4; + * + * @param value The bytes of the ruleNames to add. + * @return This builder for chaining. + */ + public Builder addRuleNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRuleNamesIsMutable(); + ruleNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.workloadmanager.v1.ResourceStatus resourceStatus_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ResourceStatus, + com.google.cloud.workloadmanager.v1.ResourceStatus.Builder, + com.google.cloud.workloadmanager.v1.ResourceStatusOrBuilder> + resourceStatusBuilder_; + + /** + * + * + *
+     * Output only. [Output only] The current lifecycle state of the evaluation
+     * resource.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resourceStatus field is set. + */ + public boolean hasResourceStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] The current lifecycle state of the evaluation
+     * resource.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceStatus. + */ + public com.google.cloud.workloadmanager.v1.ResourceStatus getResourceStatus() { + if (resourceStatusBuilder_ == null) { + return resourceStatus_ == null + ? com.google.cloud.workloadmanager.v1.ResourceStatus.getDefaultInstance() + : resourceStatus_; + } else { + return resourceStatusBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] The current lifecycle state of the evaluation
+     * resource.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceStatus(com.google.cloud.workloadmanager.v1.ResourceStatus value) { + if (resourceStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceStatus_ = value; + } else { + resourceStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] The current lifecycle state of the evaluation
+     * resource.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceStatus( + com.google.cloud.workloadmanager.v1.ResourceStatus.Builder builderForValue) { + if (resourceStatusBuilder_ == null) { + resourceStatus_ = builderForValue.build(); + } else { + resourceStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] The current lifecycle state of the evaluation
+     * resource.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeResourceStatus(com.google.cloud.workloadmanager.v1.ResourceStatus value) { + if (resourceStatusBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && resourceStatus_ != null + && resourceStatus_ + != com.google.cloud.workloadmanager.v1.ResourceStatus.getDefaultInstance()) { + getResourceStatusBuilder().mergeFrom(value); + } else { + resourceStatus_ = value; + } + } else { + resourceStatusBuilder_.mergeFrom(value); + } + if (resourceStatus_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] The current lifecycle state of the evaluation
+     * resource.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResourceStatus() { + bitField0_ = (bitField0_ & ~0x00000010); + resourceStatus_ = null; + if (resourceStatusBuilder_ != null) { + resourceStatusBuilder_.dispose(); + resourceStatusBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] The current lifecycle state of the evaluation
+     * resource.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.ResourceStatus.Builder getResourceStatusBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetResourceStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] The current lifecycle state of the evaluation
+     * resource.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.ResourceStatusOrBuilder + getResourceStatusOrBuilder() { + if (resourceStatusBuilder_ != null) { + return resourceStatusBuilder_.getMessageOrBuilder(); + } else { + return resourceStatus_ == null + ? com.google.cloud.workloadmanager.v1.ResourceStatus.getDefaultInstance() + : resourceStatus_; + } + } + + /** + * + * + *
+     * Output only. [Output only] The current lifecycle state of the evaluation
+     * resource.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ResourceStatus, + com.google.cloud.workloadmanager.v1.ResourceStatus.Builder, + com.google.cloud.workloadmanager.v1.ResourceStatusOrBuilder> + internalGetResourceStatusFieldBuilder() { + if (resourceStatusBuilder_ == null) { + resourceStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ResourceStatus, + com.google.cloud.workloadmanager.v1.ResourceStatus.Builder, + com.google.cloud.workloadmanager.v1.ResourceStatusOrBuilder>( + getResourceStatus(), getParentForChildren(), isClean()); + resourceStatus_ = null; + } + return resourceStatusBuilder_; + } + + 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. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_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> + 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. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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.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(); + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 9; + */ + @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 as key value pairs.
+     * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 9; + */ + @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; + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 9; + */ + @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; + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 9; + */ + 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(); + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 9; + */ + 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; + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 9; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + private java.lang.Object schedule_ = ""; + + /** + * + * + *
+     * Crontab format schedule for scheduled evaluation, currently only supports
+     * the following fixed schedules:
+     * * `0 */1 * * *` # Hourly
+     * * `0 */6 * * *` # Every 6 hours
+     * * `0 */12 * * *` # Every 12 hours
+     * * `0 0 */1 * *` # Daily
+     * * `0 0 */7 * *` # Weekly
+     * * `0 0 */14 * *` # Every 14 days
+     * * `0 0 1 */1 *` # Monthly
+     * 
+ * + * optional string schedule = 10; + * + * @return Whether the schedule field is set. + */ + public boolean hasSchedule() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Crontab format schedule for scheduled evaluation, currently only supports
+     * the following fixed schedules:
+     * * `0 */1 * * *` # Hourly
+     * * `0 */6 * * *` # Every 6 hours
+     * * `0 */12 * * *` # Every 12 hours
+     * * `0 0 */1 * *` # Daily
+     * * `0 0 */7 * *` # Weekly
+     * * `0 0 */14 * *` # Every 14 days
+     * * `0 0 1 */1 *` # Monthly
+     * 
+ * + * optional string schedule = 10; + * + * @return The schedule. + */ + public java.lang.String getSchedule() { + java.lang.Object ref = schedule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schedule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Crontab format schedule for scheduled evaluation, currently only supports
+     * the following fixed schedules:
+     * * `0 */1 * * *` # Hourly
+     * * `0 */6 * * *` # Every 6 hours
+     * * `0 */12 * * *` # Every 12 hours
+     * * `0 0 */1 * *` # Daily
+     * * `0 0 */7 * *` # Weekly
+     * * `0 0 */14 * *` # Every 14 days
+     * * `0 0 1 */1 *` # Monthly
+     * 
+ * + * optional string schedule = 10; + * + * @return The bytes for schedule. + */ + public com.google.protobuf.ByteString getScheduleBytes() { + java.lang.Object ref = schedule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schedule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Crontab format schedule for scheduled evaluation, currently only supports
+     * the following fixed schedules:
+     * * `0 */1 * * *` # Hourly
+     * * `0 */6 * * *` # Every 6 hours
+     * * `0 */12 * * *` # Every 12 hours
+     * * `0 0 */1 * *` # Daily
+     * * `0 0 */7 * *` # Weekly
+     * * `0 0 */14 * *` # Every 14 days
+     * * `0 0 1 */1 *` # Monthly
+     * 
+ * + * optional string schedule = 10; + * + * @param value The schedule to set. + * @return This builder for chaining. + */ + public Builder setSchedule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schedule_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Crontab format schedule for scheduled evaluation, currently only supports
+     * the following fixed schedules:
+     * * `0 */1 * * *` # Hourly
+     * * `0 */6 * * *` # Every 6 hours
+     * * `0 */12 * * *` # Every 12 hours
+     * * `0 0 */1 * *` # Daily
+     * * `0 0 */7 * *` # Weekly
+     * * `0 0 */14 * *` # Every 14 days
+     * * `0 0 1 */1 *` # Monthly
+     * 
+ * + * optional string schedule = 10; + * + * @return This builder for chaining. + */ + public Builder clearSchedule() { + schedule_ = getDefaultInstance().getSchedule(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Crontab format schedule for scheduled evaluation, currently only supports
+     * the following fixed schedules:
+     * * `0 */1 * * *` # Hourly
+     * * `0 */6 * * *` # Every 6 hours
+     * * `0 */12 * * *` # Every 12 hours
+     * * `0 0 */1 * *` # Daily
+     * * `0 0 */7 * *` # Weekly
+     * * `0 0 */14 * *` # Every 14 days
+     * * `0 0 1 */1 *` # Monthly
+     * 
+ * + * optional string schedule = 10; + * + * @param value The bytes for schedule to set. + * @return This builder for chaining. + */ + public Builder setScheduleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schedule_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object customRulesBucket_ = ""; + + /** + * + * + *
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * string custom_rules_bucket = 11; + * + * @return The customRulesBucket. + */ + public java.lang.String getCustomRulesBucket() { + java.lang.Object ref = customRulesBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customRulesBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * string custom_rules_bucket = 11; + * + * @return The bytes for customRulesBucket. + */ + public com.google.protobuf.ByteString getCustomRulesBucketBytes() { + java.lang.Object ref = customRulesBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customRulesBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * string custom_rules_bucket = 11; + * + * @param value The customRulesBucket to set. + * @return This builder for chaining. + */ + public Builder setCustomRulesBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customRulesBucket_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * string custom_rules_bucket = 11; + * + * @return This builder for chaining. + */ + public Builder clearCustomRulesBucket() { + customRulesBucket_ = getDefaultInstance().getCustomRulesBucket(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * string custom_rules_bucket = 11; + * + * @param value The bytes for customRulesBucket to set. + * @return This builder for chaining. + */ + public Builder setCustomRulesBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customRulesBucket_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private int evaluationType_ = 0; + + /** + * + * + *
+     * Evaluation type.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12; + * + * @return The enum numeric value on the wire for evaluationType. + */ + @java.lang.Override + public int getEvaluationTypeValue() { + return evaluationType_; + } + + /** + * + * + *
+     * Evaluation type.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12; + * + * @param value The enum numeric value on the wire for evaluationType to set. + * @return This builder for chaining. + */ + public Builder setEvaluationTypeValue(int value) { + evaluationType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Evaluation type.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12; + * + * @return The evaluationType. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType getEvaluationType() { + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType result = + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.forNumber(evaluationType_); + return result == null + ? com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Evaluation type.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12; + * + * @param value The evaluationType to set. + * @return This builder for chaining. + */ + public Builder setEvaluationType( + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + evaluationType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Evaluation type.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationType() { + bitField0_ = (bitField0_ & ~0x00000400); + evaluationType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.workloadmanager.v1.BigQueryDestination bigQueryDestination_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.BigQueryDestination, + com.google.cloud.workloadmanager.v1.BigQueryDestination.Builder, + com.google.cloud.workloadmanager.v1.BigQueryDestinationOrBuilder> + bigQueryDestinationBuilder_; + + /** + * + * + *
+     * Optional. The BigQuery destination for detailed evaluation results.
+     * If this field is specified, the results of each evaluation execution are
+     * exported to BigQuery.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigQueryDestination field is set. + */ + public boolean hasBigQueryDestination() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Optional. The BigQuery destination for detailed evaluation results.
+     * If this field is specified, the results of each evaluation execution are
+     * exported to BigQuery.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigQueryDestination. + */ + public com.google.cloud.workloadmanager.v1.BigQueryDestination getBigQueryDestination() { + if (bigQueryDestinationBuilder_ == null) { + return bigQueryDestination_ == null + ? com.google.cloud.workloadmanager.v1.BigQueryDestination.getDefaultInstance() + : bigQueryDestination_; + } else { + return bigQueryDestinationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The BigQuery destination for detailed evaluation results.
+     * If this field is specified, the results of each evaluation execution are
+     * exported to BigQuery.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigQueryDestination( + com.google.cloud.workloadmanager.v1.BigQueryDestination value) { + if (bigQueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigQueryDestination_ = value; + } else { + bigQueryDestinationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery destination for detailed evaluation results.
+     * If this field is specified, the results of each evaluation execution are
+     * exported to BigQuery.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigQueryDestination( + com.google.cloud.workloadmanager.v1.BigQueryDestination.Builder builderForValue) { + if (bigQueryDestinationBuilder_ == null) { + bigQueryDestination_ = builderForValue.build(); + } else { + bigQueryDestinationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery destination for detailed evaluation results.
+     * If this field is specified, the results of each evaluation execution are
+     * exported to BigQuery.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBigQueryDestination( + com.google.cloud.workloadmanager.v1.BigQueryDestination value) { + if (bigQueryDestinationBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && bigQueryDestination_ != null + && bigQueryDestination_ + != com.google.cloud.workloadmanager.v1.BigQueryDestination.getDefaultInstance()) { + getBigQueryDestinationBuilder().mergeFrom(value); + } else { + bigQueryDestination_ = value; + } + } else { + bigQueryDestinationBuilder_.mergeFrom(value); + } + if (bigQueryDestination_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery destination for detailed evaluation results.
+     * If this field is specified, the results of each evaluation execution are
+     * exported to BigQuery.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBigQueryDestination() { + bitField0_ = (bitField0_ & ~0x00000800); + bigQueryDestination_ = null; + if (bigQueryDestinationBuilder_ != null) { + bigQueryDestinationBuilder_.dispose(); + bigQueryDestinationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The BigQuery destination for detailed evaluation results.
+     * If this field is specified, the results of each evaluation execution are
+     * exported to BigQuery.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.workloadmanager.v1.BigQueryDestination.Builder + getBigQueryDestinationBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetBigQueryDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The BigQuery destination for detailed evaluation results.
+     * If this field is specified, the results of each evaluation execution are
+     * exported to BigQuery.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.workloadmanager.v1.BigQueryDestinationOrBuilder + getBigQueryDestinationOrBuilder() { + if (bigQueryDestinationBuilder_ != null) { + return bigQueryDestinationBuilder_.getMessageOrBuilder(); + } else { + return bigQueryDestination_ == null + ? com.google.cloud.workloadmanager.v1.BigQueryDestination.getDefaultInstance() + : bigQueryDestination_; + } + } + + /** + * + * + *
+     * Optional. The BigQuery destination for detailed evaluation results.
+     * If this field is specified, the results of each evaluation execution are
+     * exported to BigQuery.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.BigQueryDestination, + com.google.cloud.workloadmanager.v1.BigQueryDestination.Builder, + com.google.cloud.workloadmanager.v1.BigQueryDestinationOrBuilder> + internalGetBigQueryDestinationFieldBuilder() { + if (bigQueryDestinationBuilder_ == null) { + bigQueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.BigQueryDestination, + com.google.cloud.workloadmanager.v1.BigQueryDestination.Builder, + com.google.cloud.workloadmanager.v1.BigQueryDestinationOrBuilder>( + getBigQueryDestination(), getParentForChildren(), isClean()); + bigQueryDestination_ = null; + } + return bigQueryDestinationBuilder_; + } + + private java.lang.Object kmsKey_ = ""; + + /** + * + * + *
+     * Optional. Immutable. Customer-managed encryption key name, in the format
+     * projects/*/locations/*/keyRings/*/cryptoKeys/*.
+     * The key will be used for CMEK encryption of the evaluation resource.
+     * 
+ * + * + * string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. Customer-managed encryption key name, in the format
+     * projects/*/locations/*/keyRings/*/cryptoKeys/*.
+     * The key will be used for CMEK encryption of the evaluation resource.
+     * 
+ * + * + * string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. Customer-managed encryption key name, in the format
+     * projects/*/locations/*/keyRings/*/cryptoKeys/*.
+     * The key will be used for CMEK encryption of the evaluation resource.
+     * 
+ * + * + * string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKey_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Customer-managed encryption key name, in the format
+     * projects/*/locations/*/keyRings/*/cryptoKeys/*.
+     * The key will be used for CMEK encryption of the evaluation resource.
+     * 
+ * + * + * string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Customer-managed encryption key name, in the format
+     * projects/*/locations/*/keyRings/*/cryptoKeys/*.
+     * The key will be used for CMEK encryption of the evaluation resource.
+     * 
+ * + * + * string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.Evaluation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.Evaluation) + private static final com.google.cloud.workloadmanager.v1.Evaluation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.Evaluation(); + } + + public static com.google.cloud.workloadmanager.v1.Evaluation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Evaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/EvaluationName.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/EvaluationName.java new file mode 100644 index 000000000000..a53f30b0ab25 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/EvaluationName.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.workloadmanager.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 EvaluationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_EVALUATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/evaluations/{evaluation}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String evaluation; + + @Deprecated + protected EvaluationName() { + project = null; + location = null; + evaluation = null; + } + + private EvaluationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + evaluation = Preconditions.checkNotNull(builder.getEvaluation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEvaluation() { + return evaluation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static EvaluationName of(String project, String location, String evaluation) { + return newBuilder().setProject(project).setLocation(location).setEvaluation(evaluation).build(); + } + + public static String format(String project, String location, String evaluation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEvaluation(evaluation) + .build() + .toString(); + } + + public static EvaluationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_EVALUATION.validatedMatch( + formattedString, "EvaluationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("evaluation")); + } + + 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 (EvaluationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_EVALUATION.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 (evaluation != null) { + fieldMapBuilder.put("evaluation", evaluation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_EVALUATION.instantiate( + "project", project, "location", location, "evaluation", evaluation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + EvaluationName that = ((EvaluationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.evaluation, that.evaluation); + } + 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(evaluation); + return h; + } + + /** Builder for projects/{project}/locations/{location}/evaluations/{evaluation}. */ + public static class Builder { + private String project; + private String location; + private String evaluation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEvaluation() { + return evaluation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setEvaluation(String evaluation) { + this.evaluation = evaluation; + return this; + } + + private Builder(EvaluationName evaluationName) { + this.project = evaluationName.project; + this.location = evaluationName.location; + this.evaluation = evaluationName.evaluation; + } + + public EvaluationName build() { + return new EvaluationName(this); + } + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/EvaluationOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/EvaluationOrBuilder.java new file mode 100644 index 000000000000..a88956d605cf --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/EvaluationOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface EvaluationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.Evaluation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of resource that has the form
+   * `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Name of resource that has the form
+   * `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Description of the Evaluation.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Description of the Evaluation.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Resource filter for an evaluation defining the scope of resources to be
+   * evaluated.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + * + * @return Whether the resourceFilter field is set. + */ + boolean hasResourceFilter(); + + /** + * + * + *
+   * Resource filter for an evaluation defining the scope of resources to be
+   * evaluated.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + * + * @return The resourceFilter. + */ + com.google.cloud.workloadmanager.v1.ResourceFilter getResourceFilter(); + + /** + * + * + *
+   * Resource filter for an evaluation defining the scope of resources to be
+   * evaluated.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ResourceFilter resource_filter = 3; + */ + com.google.cloud.workloadmanager.v1.ResourceFilterOrBuilder getResourceFilterOrBuilder(); + + /** + * + * + *
+   * The names of the rules used for this evaluation.
+   * 
+ * + * repeated string rule_names = 4; + * + * @return A list containing the ruleNames. + */ + java.util.List getRuleNamesList(); + + /** + * + * + *
+   * The names of the rules used for this evaluation.
+   * 
+ * + * repeated string rule_names = 4; + * + * @return The count of ruleNames. + */ + int getRuleNamesCount(); + + /** + * + * + *
+   * The names of the rules used for this evaluation.
+   * 
+ * + * repeated string rule_names = 4; + * + * @param index The index of the element to return. + * @return The ruleNames at the given index. + */ + java.lang.String getRuleNames(int index); + + /** + * + * + *
+   * The names of the rules used for this evaluation.
+   * 
+ * + * repeated string rule_names = 4; + * + * @param index The index of the value to return. + * @return The bytes of the ruleNames at the given index. + */ + com.google.protobuf.ByteString getRuleNamesBytes(int index); + + /** + * + * + *
+   * Output only. [Output only] The current lifecycle state of the evaluation
+   * resource.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resourceStatus field is set. + */ + boolean hasResourceStatus(); + + /** + * + * + *
+   * Output only. [Output only] The current lifecycle state of the evaluation
+   * resource.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceStatus. + */ + com.google.cloud.workloadmanager.v1.ResourceStatus getResourceStatus(); + + /** + * + * + *
+   * Output only. [Output only] The current lifecycle state of the evaluation
+   * resource.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.ResourceStatus resource_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.workloadmanager.v1.ResourceStatusOrBuilder getResourceStatusOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 9; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 9; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 9; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 9; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 9; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Crontab format schedule for scheduled evaluation, currently only supports
+   * the following fixed schedules:
+   * * `0 */1 * * *` # Hourly
+   * * `0 */6 * * *` # Every 6 hours
+   * * `0 */12 * * *` # Every 12 hours
+   * * `0 0 */1 * *` # Daily
+   * * `0 0 */7 * *` # Weekly
+   * * `0 0 */14 * *` # Every 14 days
+   * * `0 0 1 */1 *` # Monthly
+   * 
+ * + * optional string schedule = 10; + * + * @return Whether the schedule field is set. + */ + boolean hasSchedule(); + + /** + * + * + *
+   * Crontab format schedule for scheduled evaluation, currently only supports
+   * the following fixed schedules:
+   * * `0 */1 * * *` # Hourly
+   * * `0 */6 * * *` # Every 6 hours
+   * * `0 */12 * * *` # Every 12 hours
+   * * `0 0 */1 * *` # Daily
+   * * `0 0 */7 * *` # Weekly
+   * * `0 0 */14 * *` # Every 14 days
+   * * `0 0 1 */1 *` # Monthly
+   * 
+ * + * optional string schedule = 10; + * + * @return The schedule. + */ + java.lang.String getSchedule(); + + /** + * + * + *
+   * Crontab format schedule for scheduled evaluation, currently only supports
+   * the following fixed schedules:
+   * * `0 */1 * * *` # Hourly
+   * * `0 */6 * * *` # Every 6 hours
+   * * `0 */12 * * *` # Every 12 hours
+   * * `0 0 */1 * *` # Daily
+   * * `0 0 */7 * *` # Weekly
+   * * `0 0 */14 * *` # Every 14 days
+   * * `0 0 1 */1 *` # Monthly
+   * 
+ * + * optional string schedule = 10; + * + * @return The bytes for schedule. + */ + com.google.protobuf.ByteString getScheduleBytes(); + + /** + * + * + *
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * string custom_rules_bucket = 11; + * + * @return The customRulesBucket. + */ + java.lang.String getCustomRulesBucket(); + + /** + * + * + *
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * string custom_rules_bucket = 11; + * + * @return The bytes for customRulesBucket. + */ + com.google.protobuf.ByteString getCustomRulesBucketBytes(); + + /** + * + * + *
+   * Evaluation type.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12; + * + * @return The enum numeric value on the wire for evaluationType. + */ + int getEvaluationTypeValue(); + + /** + * + * + *
+   * Evaluation type.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 12; + * + * @return The evaluationType. + */ + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType getEvaluationType(); + + /** + * + * + *
+   * Optional. The BigQuery destination for detailed evaluation results.
+   * If this field is specified, the results of each evaluation execution are
+   * exported to BigQuery.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigQueryDestination field is set. + */ + boolean hasBigQueryDestination(); + + /** + * + * + *
+   * Optional. The BigQuery destination for detailed evaluation results.
+   * If this field is specified, the results of each evaluation execution are
+   * exported to BigQuery.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigQueryDestination. + */ + com.google.cloud.workloadmanager.v1.BigQueryDestination getBigQueryDestination(); + + /** + * + * + *
+   * Optional. The BigQuery destination for detailed evaluation results.
+   * If this field is specified, the results of each evaluation execution are
+   * exported to BigQuery.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.BigQueryDestination big_query_destination = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.workloadmanager.v1.BigQueryDestinationOrBuilder + getBigQueryDestinationOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. Customer-managed encryption key name, in the format
+   * projects/*/locations/*/keyRings/*/cryptoKeys/*.
+   * The key will be used for CMEK encryption of the evaluation resource.
+   * 
+ * + * + * string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + + /** + * + * + *
+   * Optional. Immutable. Customer-managed encryption key name, in the format
+   * projects/*/locations/*/keyRings/*/cryptoKeys/*.
+   * The key will be used for CMEK encryption of the evaluation resource.
+   * 
+ * + * + * string kms_key = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString getKmsKeyBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Execution.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Execution.java new file mode 100644 index 000000000000..22f16f8f7ccf --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Execution.java @@ -0,0 +1,7908 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Execution that represents a single run of an Evaluation.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Execution} + */ +@com.google.protobuf.Generated +public final class Execution extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.Execution) + ExecutionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Execution"); + } + + // Use Execution.newBuilder() to construct. + private Execution(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Execution() { + name_ = ""; + state_ = 0; + evaluationId_ = ""; + runType_ = 0; + ruleResults_ = java.util.Collections.emptyList(); + externalDataSources_ = java.util.Collections.emptyList(); + notices_ = java.util.Collections.emptyList(); + engine_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + 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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Execution.class, + com.google.cloud.workloadmanager.v1.Execution.Builder.class); + } + + /** + * + * + *
+   * The possible states of an execution like RUNNING, SUCCEEDED, FAILED, etc.
+   * 
+ * + * Protobuf enum {@code google.cloud.workloadmanager.v1.Execution.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * State of execution is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The execution is running in backend service.
+     * 
+ * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
+     * The execution run succeeded.
+     * 
+ * + * SUCCEEDED = 2; + */ + SUCCEEDED(2), + /** + * + * + *
+     * The execution run failed.
+     * 
+ * + * FAILED = 3; + */ + FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * State of execution is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The execution is running in backend service.
+     * 
+ * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + + /** + * + * + *
+     * The execution run succeeded.
+     * 
+ * + * SUCCEEDED = 2; + */ + public static final int SUCCEEDED_VALUE = 2; + + /** + * + * + *
+     * The execution run failed.
+     * 
+ * + * FAILED = 3; + */ + public static final int FAILED_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 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 RUNNING; + case 2: + return SUCCEEDED; + case 3: + 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.workloadmanager.v1.Execution.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.workloadmanager.v1.Execution.State) + } + + /** + * + * + *
+   * The type of execution, could be on demand execute or scheduled execute.
+   * 
+ * + * Protobuf enum {@code google.cloud.workloadmanager.v1.Execution.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Type of execution is unspecified.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Type of execution is one time.
+     * 
+ * + * ONE_TIME = 1; + */ + ONE_TIME(1), + /** + * + * + *
+     * Type of execution is scheduled.
+     * 
+ * + * SCHEDULED = 2; + */ + SCHEDULED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
+     * Type of execution is unspecified.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Type of execution is one time.
+     * 
+ * + * ONE_TIME = 1; + */ + public static final int ONE_TIME_VALUE = 1; + + /** + * + * + *
+     * Type of execution is scheduled.
+     * 
+ * + * SCHEDULED = 2; + */ + public static final int SCHEDULED_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 ONE_TIME; + case 2: + return SCHEDULED; + 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.workloadmanager.v1.Execution.getDescriptor().getEnumTypes().get(1); + } + + 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.workloadmanager.v1.Execution.Type) + } + + /** + * + * + *
+   * The engine used for the execution.
+   * 
+ * + * Protobuf enum {@code google.cloud.workloadmanager.v1.Execution.Engine} + */ + public enum Engine implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The original CG.
+     * 
+ * + * ENGINE_UNSPECIFIED = 0; + */ + ENGINE_UNSPECIFIED(0), + /** + * + * + *
+     * SlimCG / Scanner.
+     * 
+ * + * ENGINE_SCANNER = 1; + */ + ENGINE_SCANNER(1), + /** + * + * + *
+     * Evaluation Engine V2.
+     * 
+ * + * V2 = 2; + */ + V2(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Engine"); + } + + /** + * + * + *
+     * The original CG.
+     * 
+ * + * ENGINE_UNSPECIFIED = 0; + */ + public static final int ENGINE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * SlimCG / Scanner.
+     * 
+ * + * ENGINE_SCANNER = 1; + */ + public static final int ENGINE_SCANNER_VALUE = 1; + + /** + * + * + *
+     * Evaluation Engine V2.
+     * 
+ * + * V2 = 2; + */ + public static final int V2_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 Engine 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 Engine forNumber(int value) { + switch (value) { + case 0: + return ENGINE_UNSPECIFIED; + case 1: + return ENGINE_SCANNER; + case 2: + return V2; + 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 Engine findValueByNumber(int number) { + return Engine.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.workloadmanager.v1.Execution.getDescriptor().getEnumTypes().get(2); + } + + private static final Engine[] VALUES = values(); + + public static Engine 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 Engine(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.workloadmanager.v1.Execution.Engine) + } + + public interface ExternalDataSourcesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.Execution.ExternalDataSources) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Name of external data source. The name will be used inside the
+     * rego/sql to refer the external data.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * Optional. Name of external data source. The name will be used inside the
+     * rego/sql to refer the external data.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Required. URI of external data source. example of bq table
+     * {project_ID}.{dataset_ID}.{table_ID}.
+     * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+     * Required. URI of external data source. example of bq table
+     * {project_ID}.{dataset_ID}.{table_ID}.
+     * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+     * Required. Type of external data source.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+     * Required. Type of external data source.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type getType(); + + /** + * + * + *
+     * Required. The asset type of the external data source.
+     * This can be a supported Cloud Asset Inventory asset type
+     * (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+     * to override the default asset type, or it can be a custom type defined by
+     * the user.
+     * 
+ * + * string asset_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assetType. + */ + java.lang.String getAssetType(); + + /** + * + * + *
+     * Required. The asset type of the external data source.
+     * This can be a supported Cloud Asset Inventory asset type
+     * (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+     * to override the default asset type, or it can be a custom type defined by
+     * the user.
+     * 
+ * + * string asset_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assetType. + */ + com.google.protobuf.ByteString getAssetTypeBytes(); + } + + /** + * + * + *
+   * External data sources for an execution.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Execution.ExternalDataSources} + */ + public static final class ExternalDataSources extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.Execution.ExternalDataSources) + ExternalDataSourcesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExternalDataSources"); + } + + // Use ExternalDataSources.newBuilder() to construct. + private ExternalDataSources(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExternalDataSources() { + name_ = ""; + uri_ = ""; + type_ = 0; + assetType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_ExternalDataSources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_ExternalDataSources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.class, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder.class); + } + + /** + * + * + *
+     * Possible types of external data sources like BigQuery table, etc.
+     * 
+ * + * Protobuf enum {@code google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unknown type.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * BigQuery table.
+       * 
+ * + * BIG_QUERY_TABLE = 1; + */ + BIG_QUERY_TABLE(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
+       * Unknown type.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * BigQuery table.
+       * 
+ * + * BIG_QUERY_TABLE = 1; + */ + public static final int BIG_QUERY_TABLE_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 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 BIG_QUERY_TABLE; + 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.workloadmanager.v1.Execution.ExternalDataSources.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.workloadmanager.v1.Execution.ExternalDataSources.Type) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * Optional. Name of external data source. The name will be used inside the
+     * rego/sql to refer the external data.
+     * 
+ * + * 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. Name of external data source. The name will be used inside the
+     * rego/sql to refer the external data.
+     * 
+ * + * 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 URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+     * Required. URI of external data source. example of bq table
+     * {project_ID}.{dataset_ID}.{table_ID}.
+     * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. URI of external data source. example of bq table
+     * {project_ID}.{dataset_ID}.{table_ID}.
+     * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 TYPE_FIELD_NUMBER = 3; + private int type_ = 0; + + /** + * + * + *
+     * Required. Type of external data source.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Required. Type of external data source.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type getType() { + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type result = + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type.forNumber(type_); + return result == null + ? com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type.UNRECOGNIZED + : result; + } + + public static final int ASSET_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object assetType_ = ""; + + /** + * + * + *
+     * Required. The asset type of the external data source.
+     * This can be a supported Cloud Asset Inventory asset type
+     * (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+     * to override the default asset type, or it can be a custom type defined by
+     * the user.
+     * 
+ * + * string asset_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assetType. + */ + @java.lang.Override + public java.lang.String getAssetType() { + java.lang.Object ref = assetType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetType_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The asset type of the external data source.
+     * This can be a supported Cloud Asset Inventory asset type
+     * (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+     * to override the default asset type, or it can be a custom type defined by
+     * the user.
+     * 
+ * + * string asset_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assetType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetTypeBytes() { + java.lang.Object ref = assetType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetType_ = 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(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (type_ + != com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, assetType_); + } + 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(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (type_ + != com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, assetType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources other = + (com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (type_ != other.type_) return false; + if (!getAssetType().equals(other.getAssetType())) return false; + if (!getUnknownFields().equals(other.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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + ASSET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAssetType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * External data sources for an execution.
+     * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Execution.ExternalDataSources} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.Execution.ExternalDataSources) + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_ExternalDataSources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_ExternalDataSources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.class, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder.class); + } + + // Construct using + // com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uri_ = ""; + type_ = 0; + assetType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_ExternalDataSources_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources + getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources build() { + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources buildPartial() { + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources result = + new com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.assetType_ = assetType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources) { + return mergeFrom( + (com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources other) { + if (other + == com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getAssetType().isEmpty()) { + assetType_ = other.assetType_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + assetType_ = 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 name_ = ""; + + /** + * + * + *
+       * Optional. Name of external data source. The name will be used inside the
+       * rego/sql to refer the external data.
+       * 
+ * + * 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. Name of external data source. The name will be used inside the
+       * rego/sql to refer the external data.
+       * 
+ * + * 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. Name of external data source. The name will be used inside the
+       * rego/sql to refer the external data.
+       * 
+ * + * 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. Name of external data source. The name will be used inside the
+       * rego/sql to refer the external data.
+       * 
+ * + * 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. Name of external data source. The name will be used inside the
+       * rego/sql to refer the external data.
+       * 
+ * + * 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 uri_ = ""; + + /** + * + * + *
+       * Required. URI of external data source. example of bq table
+       * {project_ID}.{dataset_ID}.{table_ID}.
+       * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+       * Required. URI of external data source. example of bq table
+       * {project_ID}.{dataset_ID}.{table_ID}.
+       * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+       * Required. URI of external data source. example of bq table
+       * {project_ID}.{dataset_ID}.{table_ID}.
+       * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
+       * Required. URI of external data source. example of bq table
+       * {project_ID}.{dataset_ID}.{table_ID}.
+       * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. URI of external data source. example of bq table
+       * {project_ID}.{dataset_ID}.{table_ID}.
+       * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + private int type_ = 0; + + /** + * + * + *
+       * Required. Type of external data source.
+       * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+       * Required. Type of external data source.
+       * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Type of external data source.
+       * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type getType() { + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type result = + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type.forNumber(type_); + return result == null + ? com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Required. Type of external data source.
+       * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Type of external data source.
+       * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000004); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object assetType_ = ""; + + /** + * + * + *
+       * Required. The asset type of the external data source.
+       * This can be a supported Cloud Asset Inventory asset type
+       * (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+       * to override the default asset type, or it can be a custom type defined by
+       * the user.
+       * 
+ * + * string asset_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assetType. + */ + public java.lang.String getAssetType() { + java.lang.Object ref = assetType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The asset type of the external data source.
+       * This can be a supported Cloud Asset Inventory asset type
+       * (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+       * to override the default asset type, or it can be a custom type defined by
+       * the user.
+       * 
+ * + * string asset_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assetType. + */ + public com.google.protobuf.ByteString getAssetTypeBytes() { + java.lang.Object ref = assetType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The asset type of the external data source.
+       * This can be a supported Cloud Asset Inventory asset type
+       * (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+       * to override the default asset type, or it can be a custom type defined by
+       * the user.
+       * 
+ * + * string asset_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The assetType to set. + * @return This builder for chaining. + */ + public Builder setAssetType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assetType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The asset type of the external data source.
+       * This can be a supported Cloud Asset Inventory asset type
+       * (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+       * to override the default asset type, or it can be a custom type defined by
+       * the user.
+       * 
+ * + * string asset_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAssetType() { + assetType_ = getDefaultInstance().getAssetType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The asset type of the external data source.
+       * This can be a supported Cloud Asset Inventory asset type
+       * (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
+       * to override the default asset type, or it can be a custom type defined by
+       * the user.
+       * 
+ * + * string asset_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for assetType to set. + * @return This builder for chaining. + */ + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.Execution.ExternalDataSources) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.Execution.ExternalDataSources) + private static final com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources(); + } + + public static com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExternalDataSources parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NoticeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.Execution.Notice) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Message of the notice.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+     * Output only. Message of the notice.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + } + + /** + * + * + *
+   * Additional information generated by an execution.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Execution.Notice} + */ + public static final class Notice extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.Execution.Notice) + NoticeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Notice"); + } + + // Use Notice.newBuilder() to construct. + private Notice(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Notice() { + message_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_Notice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_Notice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Execution.Notice.class, + com.google.cloud.workloadmanager.v1.Execution.Notice.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+     * Output only. Message of the notice.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. Message of the notice.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = 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(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, message_); + } + 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(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.Execution.Notice)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.Execution.Notice other = + (com.google.cloud.workloadmanager.v1.Execution.Notice) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.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) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.Execution.Notice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Additional information generated by an execution.
+     * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Execution.Notice} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.Execution.Notice) + com.google.cloud.workloadmanager.v1.Execution.NoticeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_Notice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_Notice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Execution.Notice.class, + com.google.cloud.workloadmanager.v1.Execution.Notice.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.Execution.Notice.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_Notice_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Notice getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.Execution.Notice.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Notice build() { + com.google.cloud.workloadmanager.v1.Execution.Notice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Notice buildPartial() { + com.google.cloud.workloadmanager.v1.Execution.Notice result = + new com.google.cloud.workloadmanager.v1.Execution.Notice(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.Execution.Notice result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.Execution.Notice) { + return mergeFrom((com.google.cloud.workloadmanager.v1.Execution.Notice) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.Execution.Notice other) { + if (other == com.google.cloud.workloadmanager.v1.Execution.Notice.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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: + { + message_ = 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 message_ = ""; + + /** + * + * + *
+       * Output only. Message of the notice.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. Message of the notice.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. Message of the notice.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Message of the notice.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Message of the notice.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.Execution.Notice) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.Execution.Notice) + private static final com.google.cloud.workloadmanager.v1.Execution.Notice DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.Execution.Notice(); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Notice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Notice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Notice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.Execution.Summary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Number of failures.
+     * 
+ * + * int64 failures = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failures. + */ + long getFailures(); + + /** + * + * + *
+     * Output only. Number of new failures compared to the previous execution.
+     * 
+ * + * int64 new_failures = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The newFailures. + */ + long getNewFailures(); + + /** + * + * + *
+     * Output only. Number of new fixes compared to the previous execution.
+     * 
+ * + * int64 new_fixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The newFixes. + */ + long getNewFixes(); + } + + /** + * + * + *
+   * Execution summary.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Execution.Summary} + */ + public static final class Summary extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.Execution.Summary) + SummaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Summary"); + } + + // Use Summary.newBuilder() to construct. + private Summary(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Summary() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_Summary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_Summary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Execution.Summary.class, + com.google.cloud.workloadmanager.v1.Execution.Summary.Builder.class); + } + + public static final int FAILURES_FIELD_NUMBER = 1; + private long failures_ = 0L; + + /** + * + * + *
+     * Output only. Number of failures.
+     * 
+ * + * int64 failures = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failures. + */ + @java.lang.Override + public long getFailures() { + return failures_; + } + + public static final int NEW_FAILURES_FIELD_NUMBER = 2; + private long newFailures_ = 0L; + + /** + * + * + *
+     * Output only. Number of new failures compared to the previous execution.
+     * 
+ * + * int64 new_failures = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The newFailures. + */ + @java.lang.Override + public long getNewFailures() { + return newFailures_; + } + + public static final int NEW_FIXES_FIELD_NUMBER = 3; + private long newFixes_ = 0L; + + /** + * + * + *
+     * Output only. Number of new fixes compared to the previous execution.
+     * 
+ * + * int64 new_fixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The newFixes. + */ + @java.lang.Override + public long getNewFixes() { + return newFixes_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (failures_ != 0L) { + output.writeInt64(1, failures_); + } + if (newFailures_ != 0L) { + output.writeInt64(2, newFailures_); + } + if (newFixes_ != 0L) { + output.writeInt64(3, newFixes_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (failures_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, failures_); + } + if (newFailures_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, newFailures_); + } + if (newFixes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, newFixes_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.Execution.Summary)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.Execution.Summary other = + (com.google.cloud.workloadmanager.v1.Execution.Summary) obj; + + if (getFailures() != other.getFailures()) return false; + if (getNewFailures() != other.getNewFailures()) return false; + if (getNewFixes() != other.getNewFixes()) return false; + if (!getUnknownFields().equals(other.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) + FAILURES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailures()); + hash = (37 * hash) + NEW_FAILURES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNewFailures()); + hash = (37 * hash) + NEW_FIXES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNewFixes()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.Execution.Summary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 summary.
+     * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Execution.Summary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.Execution.Summary) + com.google.cloud.workloadmanager.v1.Execution.SummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_Summary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_Summary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Execution.Summary.class, + com.google.cloud.workloadmanager.v1.Execution.Summary.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.Execution.Summary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + failures_ = 0L; + newFailures_ = 0L; + newFixes_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_Summary_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Summary getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.Execution.Summary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Summary build() { + com.google.cloud.workloadmanager.v1.Execution.Summary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Summary buildPartial() { + com.google.cloud.workloadmanager.v1.Execution.Summary result = + new com.google.cloud.workloadmanager.v1.Execution.Summary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.Execution.Summary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.failures_ = failures_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.newFailures_ = newFailures_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.newFixes_ = newFixes_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.Execution.Summary) { + return mergeFrom((com.google.cloud.workloadmanager.v1.Execution.Summary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.Execution.Summary other) { + if (other == com.google.cloud.workloadmanager.v1.Execution.Summary.getDefaultInstance()) + return this; + if (other.getFailures() != 0L) { + setFailures(other.getFailures()); + } + if (other.getNewFailures() != 0L) { + setNewFailures(other.getNewFailures()); + } + if (other.getNewFixes() != 0L) { + setNewFixes(other.getNewFixes()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + failures_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + newFailures_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + newFixes_ = 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 long failures_; + + /** + * + * + *
+       * Output only. Number of failures.
+       * 
+ * + * int64 failures = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failures. + */ + @java.lang.Override + public long getFailures() { + return failures_; + } + + /** + * + * + *
+       * Output only. Number of failures.
+       * 
+ * + * int64 failures = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The failures to set. + * @return This builder for chaining. + */ + public Builder setFailures(long value) { + + failures_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Number of failures.
+       * 
+ * + * int64 failures = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFailures() { + bitField0_ = (bitField0_ & ~0x00000001); + failures_ = 0L; + onChanged(); + return this; + } + + private long newFailures_; + + /** + * + * + *
+       * Output only. Number of new failures compared to the previous execution.
+       * 
+ * + * int64 new_failures = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The newFailures. + */ + @java.lang.Override + public long getNewFailures() { + return newFailures_; + } + + /** + * + * + *
+       * Output only. Number of new failures compared to the previous execution.
+       * 
+ * + * int64 new_failures = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The newFailures to set. + * @return This builder for chaining. + */ + public Builder setNewFailures(long value) { + + newFailures_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Number of new failures compared to the previous execution.
+       * 
+ * + * int64 new_failures = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNewFailures() { + bitField0_ = (bitField0_ & ~0x00000002); + newFailures_ = 0L; + onChanged(); + return this; + } + + private long newFixes_; + + /** + * + * + *
+       * Output only. Number of new fixes compared to the previous execution.
+       * 
+ * + * int64 new_fixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The newFixes. + */ + @java.lang.Override + public long getNewFixes() { + return newFixes_; + } + + /** + * + * + *
+       * Output only. Number of new fixes compared to the previous execution.
+       * 
+ * + * int64 new_fixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The newFixes to set. + * @return This builder for chaining. + */ + public Builder setNewFixes(long value) { + + newFixes_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Number of new fixes compared to the previous execution.
+       * 
+ * + * int64 new_fixes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNewFixes() { + bitField0_ = (bitField0_ & ~0x00000004); + newFixes_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.Execution.Summary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.Execution.Summary) + private static final com.google.cloud.workloadmanager.v1.Execution.Summary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.Execution.Summary(); + } + + public static com.google.cloud.workloadmanager.v1.Execution.Summary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Summary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Summary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * The name of execution resource. The format is
+   * projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
+   * 
+ * + * 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 name of execution resource. The format is
+   * projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
+   * 
+ * + * 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 START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Output only. [Output only] Start time stamp.
+   * 
+ * + * .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. [Output only] Start time stamp.
+   * 
+ * + * .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. [Output only] Start time stamp.
+   * 
+ * + * .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. [Output only] End time stamp.
+   * 
+ * + * .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. [Output only] End time stamp.
+   * 
+ * + * .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. [Output only] End time stamp.
+   * 
+ * + * .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 INVENTORY_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp inventoryTime_; + + /** + * + * + *
+   * Output only. [Output only] Inventory time stamp.
+   * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inventoryTime field is set. + */ + @java.lang.Override + public boolean hasInventoryTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Inventory time stamp.
+   * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inventoryTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getInventoryTime() { + return inventoryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : inventoryTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Inventory time stamp.
+   * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getInventoryTimeOrBuilder() { + return inventoryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : inventoryTime_; + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_ = 0; + + /** + * + * + *
+   * Output only. [Output only] State.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. [Output only] State.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.State getState() { + com.google.cloud.workloadmanager.v1.Execution.State result = + com.google.cloud.workloadmanager.v1.Execution.State.forNumber(state_); + return result == null + ? com.google.cloud.workloadmanager.v1.Execution.State.UNRECOGNIZED + : result; + } + + public static final int EVALUATION_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object evaluationId_ = ""; + + /** + * + * + *
+   * Output only. [Output only] Evaluation ID.
+   * 
+ * + * string evaluation_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The evaluationId. + */ + @java.lang.Override + public java.lang.String getEvaluationId() { + java.lang.Object ref = evaluationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluationId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output only] Evaluation ID.
+   * 
+ * + * string evaluation_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for evaluationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationIdBytes() { + java.lang.Object ref = evaluationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_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(); + } + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + @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 as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + @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; + } + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + @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 static final int RUN_TYPE_FIELD_NUMBER = 8; + private int runType_ = 0; + + /** + * + * + *
+   * Type which represents whether the execution executed directly by user or
+   * scheduled according to the `Evaluation.schedule` field.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Execution.Type run_type = 8; + * + * @return The enum numeric value on the wire for runType. + */ + @java.lang.Override + public int getRunTypeValue() { + return runType_; + } + + /** + * + * + *
+   * Type which represents whether the execution executed directly by user or
+   * scheduled according to the `Evaluation.schedule` field.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Execution.Type run_type = 8; + * + * @return The runType. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Type getRunType() { + com.google.cloud.workloadmanager.v1.Execution.Type result = + com.google.cloud.workloadmanager.v1.Execution.Type.forNumber(runType_); + return result == null + ? com.google.cloud.workloadmanager.v1.Execution.Type.UNRECOGNIZED + : result; + } + + public static final int RULE_RESULTS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List ruleResults_; + + /** + * + * + *
+   * Output only. Execution result summary per rule.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRuleResultsList() { + return ruleResults_; + } + + /** + * + * + *
+   * Output only. Execution result summary per rule.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRuleResultsOrBuilderList() { + return ruleResults_; + } + + /** + * + * + *
+   * Output only. Execution result summary per rule.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRuleResultsCount() { + return ruleResults_.size(); + } + + /** + * + * + *
+   * Output only. Execution result summary per rule.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleExecutionResult getRuleResults(int index) { + return ruleResults_.get(index); + } + + /** + * + * + *
+   * Output only. Execution result summary per rule.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleExecutionResultOrBuilder getRuleResultsOrBuilder( + int index) { + return ruleResults_.get(index); + } + + public static final int EXTERNAL_DATA_SOURCES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + externalDataSources_; + + /** + * + * + *
+   * Optional. External data sources.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExternalDataSourcesList() { + return externalDataSources_; + } + + /** + * + * + *
+   * Optional. External data sources.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.workloadmanager.v1.Execution.ExternalDataSourcesOrBuilder> + getExternalDataSourcesOrBuilderList() { + return externalDataSources_; + } + + /** + * + * + *
+   * Optional. External data sources.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getExternalDataSourcesCount() { + return externalDataSources_.size(); + } + + /** + * + * + *
+   * Optional. External data sources.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources getExternalDataSources( + int index) { + return externalDataSources_.get(index); + } + + /** + * + * + *
+   * Optional. External data sources.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSourcesOrBuilder + getExternalDataSourcesOrBuilder(int index) { + return externalDataSources_.get(index); + } + + public static final int NOTICES_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List notices_; + + /** + * + * + *
+   * Output only. Additional information generated by the execution.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getNoticesList() { + return notices_; + } + + /** + * + * + *
+   * Output only. Additional information generated by the execution.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getNoticesOrBuilderList() { + return notices_; + } + + /** + * + * + *
+   * Output only. Additional information generated by the execution.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getNoticesCount() { + return notices_.size(); + } + + /** + * + * + *
+   * Output only. Additional information generated by the execution.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Notice getNotices(int index) { + return notices_.get(index); + } + + /** + * + * + *
+   * Output only. Additional information generated by the execution.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.NoticeOrBuilder getNoticesOrBuilder( + int index) { + return notices_.get(index); + } + + public static final int ENGINE_FIELD_NUMBER = 12; + private int engine_ = 0; + + /** + * + * + *
+   * Optional. Engine.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Engine engine = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for engine. + */ + @java.lang.Override + public int getEngineValue() { + return engine_; + } + + /** + * + * + *
+   * Optional. Engine.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Engine engine = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engine. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Engine getEngine() { + com.google.cloud.workloadmanager.v1.Execution.Engine result = + com.google.cloud.workloadmanager.v1.Execution.Engine.forNumber(engine_); + return result == null + ? com.google.cloud.workloadmanager.v1.Execution.Engine.UNRECOGNIZED + : result; + } + + public static final int RESULT_SUMMARY_FIELD_NUMBER = 13; + private com.google.cloud.workloadmanager.v1.Execution.Summary resultSummary_; + + /** + * + * + *
+   * Output only. [Output only] Result summary for the execution.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resultSummary field is set. + */ + @java.lang.Override + public boolean hasResultSummary() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Result summary for the execution.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resultSummary. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Summary getResultSummary() { + return resultSummary_ == null + ? com.google.cloud.workloadmanager.v1.Execution.Summary.getDefaultInstance() + : resultSummary_; + } + + /** + * + * + *
+   * Output only. [Output only] Result summary for the execution.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.SummaryOrBuilder + getResultSummaryOrBuilder() { + return resultSummary_ == null + ? com.google.cloud.workloadmanager.v1.Execution.Summary.getDefaultInstance() + : resultSummary_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_ & 0x00000004) != 0)) { + output.writeMessage(4, getInventoryTime()); + } + if (state_ + != com.google.cloud.workloadmanager.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(evaluationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, evaluationId_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + if (runType_ + != com.google.cloud.workloadmanager.v1.Execution.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, runType_); + } + for (int i = 0; i < ruleResults_.size(); i++) { + output.writeMessage(9, ruleResults_.get(i)); + } + for (int i = 0; i < externalDataSources_.size(); i++) { + output.writeMessage(10, externalDataSources_.get(i)); + } + for (int i = 0; i < notices_.size(); i++) { + output.writeMessage(11, notices_.get(i)); + } + if (engine_ + != com.google.cloud.workloadmanager.v1.Execution.Engine.ENGINE_UNSPECIFIED.getNumber()) { + output.writeEnum(12, engine_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(13, getResultSummary()); + } + 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_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInventoryTime()); + } + if (state_ + != com.google.cloud.workloadmanager.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(evaluationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, evaluationId_); + } + 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(7, labels__); + } + if (runType_ + != com.google.cloud.workloadmanager.v1.Execution.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, runType_); + } + for (int i = 0; i < ruleResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, ruleResults_.get(i)); + } + for (int i = 0; i < externalDataSources_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, externalDataSources_.get(i)); + } + for (int i = 0; i < notices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, notices_.get(i)); + } + if (engine_ + != com.google.cloud.workloadmanager.v1.Execution.Engine.ENGINE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, engine_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getResultSummary()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.Execution)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.Execution other = + (com.google.cloud.workloadmanager.v1.Execution) 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 (hasInventoryTime() != other.hasInventoryTime()) return false; + if (hasInventoryTime()) { + if (!getInventoryTime().equals(other.getInventoryTime())) return false; + } + if (state_ != other.state_) return false; + if (!getEvaluationId().equals(other.getEvaluationId())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (runType_ != other.runType_) return false; + if (!getRuleResultsList().equals(other.getRuleResultsList())) return false; + if (!getExternalDataSourcesList().equals(other.getExternalDataSourcesList())) return false; + if (!getNoticesList().equals(other.getNoticesList())) return false; + if (engine_ != other.engine_) return false; + if (hasResultSummary() != other.hasResultSummary()) return false; + if (hasResultSummary()) { + if (!getResultSummary().equals(other.getResultSummary())) return false; + } + if (!getUnknownFields().equals(other.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 (hasInventoryTime()) { + hash = (37 * hash) + INVENTORY_TIME_FIELD_NUMBER; + hash = (53 * hash) + getInventoryTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + EVALUATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationId().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + RUN_TYPE_FIELD_NUMBER; + hash = (53 * hash) + runType_; + if (getRuleResultsCount() > 0) { + hash = (37 * hash) + RULE_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getRuleResultsList().hashCode(); + } + if (getExternalDataSourcesCount() > 0) { + hash = (37 * hash) + EXTERNAL_DATA_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getExternalDataSourcesList().hashCode(); + } + if (getNoticesCount() > 0) { + hash = (37 * hash) + NOTICES_FIELD_NUMBER; + hash = (53 * hash) + getNoticesList().hashCode(); + } + hash = (37 * hash) + ENGINE_FIELD_NUMBER; + hash = (53 * hash) + engine_; + if (hasResultSummary()) { + hash = (37 * hash) + RESULT_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getResultSummary().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.Execution parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Execution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.Execution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Execution that represents a single run of an Evaluation.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Execution} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.Execution) + com.google.cloud.workloadmanager.v1.ExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + 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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Execution.class, + com.google.cloud.workloadmanager.v1.Execution.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.Execution.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(); + internalGetInventoryTimeFieldBuilder(); + internalGetRuleResultsFieldBuilder(); + internalGetExternalDataSourcesFieldBuilder(); + internalGetNoticesFieldBuilder(); + internalGetResultSummaryFieldBuilder(); + } + } + + @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; + } + inventoryTime_ = null; + if (inventoryTimeBuilder_ != null) { + inventoryTimeBuilder_.dispose(); + inventoryTimeBuilder_ = null; + } + state_ = 0; + evaluationId_ = ""; + internalGetMutableLabels().clear(); + runType_ = 0; + if (ruleResultsBuilder_ == null) { + ruleResults_ = java.util.Collections.emptyList(); + } else { + ruleResults_ = null; + ruleResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + if (externalDataSourcesBuilder_ == null) { + externalDataSources_ = java.util.Collections.emptyList(); + } else { + externalDataSources_ = null; + externalDataSourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + if (noticesBuilder_ == null) { + notices_ = java.util.Collections.emptyList(); + } else { + notices_ = null; + noticesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + engine_ = 0; + resultSummary_ = null; + if (resultSummaryBuilder_ != null) { + resultSummaryBuilder_.dispose(); + resultSummaryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Execution_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.Execution.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution build() { + com.google.cloud.workloadmanager.v1.Execution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution buildPartial() { + com.google.cloud.workloadmanager.v1.Execution result = + new com.google.cloud.workloadmanager.v1.Execution(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workloadmanager.v1.Execution result) { + if (ruleResultsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + ruleResults_ = java.util.Collections.unmodifiableList(ruleResults_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.ruleResults_ = ruleResults_; + } else { + result.ruleResults_ = ruleResultsBuilder_.build(); + } + if (externalDataSourcesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + externalDataSources_ = java.util.Collections.unmodifiableList(externalDataSources_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.externalDataSources_ = externalDataSources_; + } else { + result.externalDataSources_ = externalDataSourcesBuilder_.build(); + } + if (noticesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + notices_ = java.util.Collections.unmodifiableList(notices_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.notices_ = notices_; + } else { + result.notices_ = noticesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.Execution 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.inventoryTime_ = + inventoryTimeBuilder_ == null ? inventoryTime_ : inventoryTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.evaluationId_ = evaluationId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.runType_ = runType_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.engine_ = engine_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.resultSummary_ = + resultSummaryBuilder_ == null ? resultSummary_ : resultSummaryBuilder_.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.workloadmanager.v1.Execution) { + return mergeFrom((com.google.cloud.workloadmanager.v1.Execution) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.Execution other) { + if (other == com.google.cloud.workloadmanager.v1.Execution.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.hasInventoryTime()) { + mergeInventoryTime(other.getInventoryTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getEvaluationId().isEmpty()) { + evaluationId_ = other.evaluationId_; + bitField0_ |= 0x00000020; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; + if (other.runType_ != 0) { + setRunTypeValue(other.getRunTypeValue()); + } + if (ruleResultsBuilder_ == null) { + if (!other.ruleResults_.isEmpty()) { + if (ruleResults_.isEmpty()) { + ruleResults_ = other.ruleResults_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureRuleResultsIsMutable(); + ruleResults_.addAll(other.ruleResults_); + } + onChanged(); + } + } else { + if (!other.ruleResults_.isEmpty()) { + if (ruleResultsBuilder_.isEmpty()) { + ruleResultsBuilder_.dispose(); + ruleResultsBuilder_ = null; + ruleResults_ = other.ruleResults_; + bitField0_ = (bitField0_ & ~0x00000100); + ruleResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRuleResultsFieldBuilder() + : null; + } else { + ruleResultsBuilder_.addAllMessages(other.ruleResults_); + } + } + } + if (externalDataSourcesBuilder_ == null) { + if (!other.externalDataSources_.isEmpty()) { + if (externalDataSources_.isEmpty()) { + externalDataSources_ = other.externalDataSources_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureExternalDataSourcesIsMutable(); + externalDataSources_.addAll(other.externalDataSources_); + } + onChanged(); + } + } else { + if (!other.externalDataSources_.isEmpty()) { + if (externalDataSourcesBuilder_.isEmpty()) { + externalDataSourcesBuilder_.dispose(); + externalDataSourcesBuilder_ = null; + externalDataSources_ = other.externalDataSources_; + bitField0_ = (bitField0_ & ~0x00000200); + externalDataSourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetExternalDataSourcesFieldBuilder() + : null; + } else { + externalDataSourcesBuilder_.addAllMessages(other.externalDataSources_); + } + } + } + if (noticesBuilder_ == null) { + if (!other.notices_.isEmpty()) { + if (notices_.isEmpty()) { + notices_ = other.notices_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureNoticesIsMutable(); + notices_.addAll(other.notices_); + } + onChanged(); + } + } else { + if (!other.notices_.isEmpty()) { + if (noticesBuilder_.isEmpty()) { + noticesBuilder_.dispose(); + noticesBuilder_ = null; + notices_ = other.notices_; + bitField0_ = (bitField0_ & ~0x00000400); + noticesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetNoticesFieldBuilder() + : null; + } else { + noticesBuilder_.addAllMessages(other.notices_); + } + } + } + if (other.engine_ != 0) { + setEngineValue(other.getEngineValue()); + } + if (other.hasResultSummary()) { + mergeResultSummary(other.getResultSummary()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + internalGetInventoryTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + evaluationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + runType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + com.google.cloud.workloadmanager.v1.RuleExecutionResult m = + input.readMessage( + com.google.cloud.workloadmanager.v1.RuleExecutionResult.parser(), + extensionRegistry); + if (ruleResultsBuilder_ == null) { + ensureRuleResultsIsMutable(); + ruleResults_.add(m); + } else { + ruleResultsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources m = + input.readMessage( + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.parser(), + extensionRegistry); + if (externalDataSourcesBuilder_ == null) { + ensureExternalDataSourcesIsMutable(); + externalDataSources_.add(m); + } else { + externalDataSourcesBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.workloadmanager.v1.Execution.Notice m = + input.readMessage( + com.google.cloud.workloadmanager.v1.Execution.Notice.parser(), + extensionRegistry); + if (noticesBuilder_ == null) { + ensureNoticesIsMutable(); + notices_.add(m); + } else { + noticesBuilder_.addMessage(m); + } + break; + } // case 90 + case 96: + { + engine_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: + { + input.readMessage( + internalGetResultSummaryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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 name of execution resource. The format is
+     * projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
+     * 
+ * + * 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 name of execution resource. The format is
+     * projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
+     * 
+ * + * 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 name of execution resource. The format is
+     * projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
+     * 
+ * + * 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 name of execution resource. The format is
+     * projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of execution resource. The format is
+     * projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
+     * 
+ * + * 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 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. [Output only] Start time stamp.
+     * 
+ * + * .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. [Output only] Start time stamp.
+     * 
+ * + * .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. [Output only] Start time stamp.
+     * 
+ * + * .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. [Output only] Start time stamp.
+     * 
+ * + * .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. [Output only] Start time stamp.
+     * 
+ * + * .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. [Output only] Start time stamp.
+     * 
+ * + * .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. [Output only] Start time stamp.
+     * 
+ * + * .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. [Output only] Start time stamp.
+     * 
+ * + * .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. [Output only] Start time stamp.
+     * 
+ * + * .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. [Output only] End time stamp.
+     * 
+ * + * .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. [Output only] End time stamp.
+     * 
+ * + * .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. [Output only] End time stamp.
+     * 
+ * + * .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. [Output only] End time stamp.
+     * 
+ * + * .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. [Output only] End time stamp.
+     * 
+ * + * .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. [Output only] End time stamp.
+     * 
+ * + * .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. [Output only] End time stamp.
+     * 
+ * + * .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. [Output only] End time stamp.
+     * 
+ * + * .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. [Output only] End time stamp.
+     * 
+ * + * .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.Timestamp inventoryTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + inventoryTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Inventory time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inventoryTime field is set. + */ + public boolean hasInventoryTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Inventory time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inventoryTime. + */ + public com.google.protobuf.Timestamp getInventoryTime() { + if (inventoryTimeBuilder_ == null) { + return inventoryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : inventoryTime_; + } else { + return inventoryTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Inventory time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInventoryTime(com.google.protobuf.Timestamp value) { + if (inventoryTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inventoryTime_ = value; + } else { + inventoryTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Inventory time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInventoryTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (inventoryTimeBuilder_ == null) { + inventoryTime_ = builderForValue.build(); + } else { + inventoryTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Inventory time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeInventoryTime(com.google.protobuf.Timestamp value) { + if (inventoryTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && inventoryTime_ != null + && inventoryTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getInventoryTimeBuilder().mergeFrom(value); + } else { + inventoryTime_ = value; + } + } else { + inventoryTimeBuilder_.mergeFrom(value); + } + if (inventoryTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Inventory time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInventoryTime() { + bitField0_ = (bitField0_ & ~0x00000008); + inventoryTime_ = null; + if (inventoryTimeBuilder_ != null) { + inventoryTimeBuilder_.dispose(); + inventoryTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Inventory time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getInventoryTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetInventoryTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Inventory time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getInventoryTimeOrBuilder() { + if (inventoryTimeBuilder_ != null) { + return inventoryTimeBuilder_.getMessageOrBuilder(); + } else { + return inventoryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : inventoryTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Inventory time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp inventory_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> + internalGetInventoryTimeFieldBuilder() { + if (inventoryTimeBuilder_ == null) { + inventoryTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getInventoryTime(), getParentForChildren(), isClean()); + inventoryTime_ = null; + } + return inventoryTimeBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. [Output only] State.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. [Output only] State.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] State.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.State getState() { + com.google.cloud.workloadmanager.v1.Execution.State result = + com.google.cloud.workloadmanager.v1.Execution.State.forNumber(state_); + return result == null + ? com.google.cloud.workloadmanager.v1.Execution.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. [Output only] State.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.workloadmanager.v1.Execution.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] State.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object evaluationId_ = ""; + + /** + * + * + *
+     * Output only. [Output only] Evaluation ID.
+     * 
+ * + * string evaluation_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The evaluationId. + */ + public java.lang.String getEvaluationId() { + java.lang.Object ref = evaluationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output only] Evaluation ID.
+     * 
+ * + * string evaluation_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for evaluationId. + */ + public com.google.protobuf.ByteString getEvaluationIdBytes() { + java.lang.Object ref = evaluationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output only] Evaluation ID.
+     * 
+ * + * string evaluation_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The evaluationId to set. + * @return This builder for chaining. + */ + public Builder setEvaluationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Evaluation ID.
+     * 
+ * + * string evaluation_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationId() { + evaluationId_ = getDefaultInstance().getEvaluationId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Evaluation ID.
+     * 
+ * + * string evaluation_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for evaluationId to set. + * @return This builder for chaining. + */ + public Builder setEvaluationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluationId_ = value; + bitField0_ |= 0x00000020; + 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_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @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 as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @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; + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @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_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + 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_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private int runType_ = 0; + + /** + * + * + *
+     * Type which represents whether the execution executed directly by user or
+     * scheduled according to the `Evaluation.schedule` field.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Execution.Type run_type = 8; + * + * @return The enum numeric value on the wire for runType. + */ + @java.lang.Override + public int getRunTypeValue() { + return runType_; + } + + /** + * + * + *
+     * Type which represents whether the execution executed directly by user or
+     * scheduled according to the `Evaluation.schedule` field.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Execution.Type run_type = 8; + * + * @param value The enum numeric value on the wire for runType to set. + * @return This builder for chaining. + */ + public Builder setRunTypeValue(int value) { + runType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Type which represents whether the execution executed directly by user or
+     * scheduled according to the `Evaluation.schedule` field.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Execution.Type run_type = 8; + * + * @return The runType. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Type getRunType() { + com.google.cloud.workloadmanager.v1.Execution.Type result = + com.google.cloud.workloadmanager.v1.Execution.Type.forNumber(runType_); + return result == null + ? com.google.cloud.workloadmanager.v1.Execution.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Type which represents whether the execution executed directly by user or
+     * scheduled according to the `Evaluation.schedule` field.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Execution.Type run_type = 8; + * + * @param value The runType to set. + * @return This builder for chaining. + */ + public Builder setRunType(com.google.cloud.workloadmanager.v1.Execution.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + runType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Type which represents whether the execution executed directly by user or
+     * scheduled according to the `Evaluation.schedule` field.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Execution.Type run_type = 8; + * + * @return This builder for chaining. + */ + public Builder clearRunType() { + bitField0_ = (bitField0_ & ~0x00000080); + runType_ = 0; + onChanged(); + return this; + } + + private java.util.List ruleResults_ = + java.util.Collections.emptyList(); + + private void ensureRuleResultsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + ruleResults_ = + new java.util.ArrayList( + ruleResults_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.RuleExecutionResult, + com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder, + com.google.cloud.workloadmanager.v1.RuleExecutionResultOrBuilder> + ruleResultsBuilder_; + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRuleResultsList() { + if (ruleResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleResults_); + } else { + return ruleResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRuleResultsCount() { + if (ruleResultsBuilder_ == null) { + return ruleResults_.size(); + } else { + return ruleResultsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.RuleExecutionResult getRuleResults(int index) { + if (ruleResultsBuilder_ == null) { + return ruleResults_.get(index); + } else { + return ruleResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRuleResults( + int index, com.google.cloud.workloadmanager.v1.RuleExecutionResult value) { + if (ruleResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleResultsIsMutable(); + ruleResults_.set(index, value); + onChanged(); + } else { + ruleResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRuleResults( + int index, + com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder builderForValue) { + if (ruleResultsBuilder_ == null) { + ensureRuleResultsIsMutable(); + ruleResults_.set(index, builderForValue.build()); + onChanged(); + } else { + ruleResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRuleResults(com.google.cloud.workloadmanager.v1.RuleExecutionResult value) { + if (ruleResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleResultsIsMutable(); + ruleResults_.add(value); + onChanged(); + } else { + ruleResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRuleResults( + int index, com.google.cloud.workloadmanager.v1.RuleExecutionResult value) { + if (ruleResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleResultsIsMutable(); + ruleResults_.add(index, value); + onChanged(); + } else { + ruleResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRuleResults( + com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder builderForValue) { + if (ruleResultsBuilder_ == null) { + ensureRuleResultsIsMutable(); + ruleResults_.add(builderForValue.build()); + onChanged(); + } else { + ruleResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRuleResults( + int index, + com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder builderForValue) { + if (ruleResultsBuilder_ == null) { + ensureRuleResultsIsMutable(); + ruleResults_.add(index, builderForValue.build()); + onChanged(); + } else { + ruleResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRuleResults( + java.lang.Iterable + values) { + if (ruleResultsBuilder_ == null) { + ensureRuleResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleResults_); + onChanged(); + } else { + ruleResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRuleResults() { + if (ruleResultsBuilder_ == null) { + ruleResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + ruleResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRuleResults(int index) { + if (ruleResultsBuilder_ == null) { + ensureRuleResultsIsMutable(); + ruleResults_.remove(index); + onChanged(); + } else { + ruleResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder getRuleResultsBuilder( + int index) { + return internalGetRuleResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.RuleExecutionResultOrBuilder getRuleResultsOrBuilder( + int index) { + if (ruleResultsBuilder_ == null) { + return ruleResults_.get(index); + } else { + return ruleResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.workloadmanager.v1.RuleExecutionResultOrBuilder> + getRuleResultsOrBuilderList() { + if (ruleResultsBuilder_ != null) { + return ruleResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleResults_); + } + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder addRuleResultsBuilder() { + return internalGetRuleResultsFieldBuilder() + .addBuilder(com.google.cloud.workloadmanager.v1.RuleExecutionResult.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder addRuleResultsBuilder( + int index) { + return internalGetRuleResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.workloadmanager.v1.RuleExecutionResult.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Execution result summary per rule.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRuleResultsBuilderList() { + return internalGetRuleResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.RuleExecutionResult, + com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder, + com.google.cloud.workloadmanager.v1.RuleExecutionResultOrBuilder> + internalGetRuleResultsFieldBuilder() { + if (ruleResultsBuilder_ == null) { + ruleResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.RuleExecutionResult, + com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder, + com.google.cloud.workloadmanager.v1.RuleExecutionResultOrBuilder>( + ruleResults_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + ruleResults_ = null; + } + return ruleResultsBuilder_; + } + + private java.util.List + externalDataSources_ = java.util.Collections.emptyList(); + + private void ensureExternalDataSourcesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + externalDataSources_ = + new java.util.ArrayList< + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources>( + externalDataSources_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSourcesOrBuilder> + externalDataSourcesBuilder_; + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExternalDataSourcesList() { + if (externalDataSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(externalDataSources_); + } else { + return externalDataSourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getExternalDataSourcesCount() { + if (externalDataSourcesBuilder_ == null) { + return externalDataSources_.size(); + } else { + return externalDataSourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources getExternalDataSources( + int index) { + if (externalDataSourcesBuilder_ == null) { + return externalDataSources_.get(index); + } else { + return externalDataSourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExternalDataSources( + int index, com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources value) { + if (externalDataSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalDataSourcesIsMutable(); + externalDataSources_.set(index, value); + onChanged(); + } else { + externalDataSourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExternalDataSources( + int index, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder builderForValue) { + if (externalDataSourcesBuilder_ == null) { + ensureExternalDataSourcesIsMutable(); + externalDataSources_.set(index, builderForValue.build()); + onChanged(); + } else { + externalDataSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExternalDataSources( + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources value) { + if (externalDataSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalDataSourcesIsMutable(); + externalDataSources_.add(value); + onChanged(); + } else { + externalDataSourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExternalDataSources( + int index, com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources value) { + if (externalDataSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalDataSourcesIsMutable(); + externalDataSources_.add(index, value); + onChanged(); + } else { + externalDataSourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExternalDataSources( + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder builderForValue) { + if (externalDataSourcesBuilder_ == null) { + ensureExternalDataSourcesIsMutable(); + externalDataSources_.add(builderForValue.build()); + onChanged(); + } else { + externalDataSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExternalDataSources( + int index, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder builderForValue) { + if (externalDataSourcesBuilder_ == null) { + ensureExternalDataSourcesIsMutable(); + externalDataSources_.add(index, builderForValue.build()); + onChanged(); + } else { + externalDataSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllExternalDataSources( + java.lang.Iterable< + ? extends com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources> + values) { + if (externalDataSourcesBuilder_ == null) { + ensureExternalDataSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, externalDataSources_); + onChanged(); + } else { + externalDataSourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExternalDataSources() { + if (externalDataSourcesBuilder_ == null) { + externalDataSources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + externalDataSourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeExternalDataSources(int index) { + if (externalDataSourcesBuilder_ == null) { + ensureExternalDataSourcesIsMutable(); + externalDataSources_.remove(index); + onChanged(); + } else { + externalDataSourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder + getExternalDataSourcesBuilder(int index) { + return internalGetExternalDataSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSourcesOrBuilder + getExternalDataSourcesOrBuilder(int index) { + if (externalDataSourcesBuilder_ == null) { + return externalDataSources_.get(index); + } else { + return externalDataSourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.workloadmanager.v1.Execution.ExternalDataSourcesOrBuilder> + getExternalDataSourcesOrBuilderList() { + if (externalDataSourcesBuilder_ != null) { + return externalDataSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(externalDataSources_); + } + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder + addExternalDataSourcesBuilder() { + return internalGetExternalDataSourcesFieldBuilder() + .addBuilder( + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder + addExternalDataSourcesBuilder(int index) { + return internalGetExternalDataSourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. External data sources.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExternalDataSourcesBuilderList() { + return internalGetExternalDataSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSourcesOrBuilder> + internalGetExternalDataSourcesFieldBuilder() { + if (externalDataSourcesBuilder_ == null) { + externalDataSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Builder, + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSourcesOrBuilder>( + externalDataSources_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + externalDataSources_ = null; + } + return externalDataSourcesBuilder_; + } + + private java.util.List notices_ = + java.util.Collections.emptyList(); + + private void ensureNoticesIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + notices_ = + new java.util.ArrayList(notices_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution.Notice, + com.google.cloud.workloadmanager.v1.Execution.Notice.Builder, + com.google.cloud.workloadmanager.v1.Execution.NoticeOrBuilder> + noticesBuilder_; + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getNoticesList() { + if (noticesBuilder_ == null) { + return java.util.Collections.unmodifiableList(notices_); + } else { + return noticesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getNoticesCount() { + if (noticesBuilder_ == null) { + return notices_.size(); + } else { + return noticesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.Notice getNotices(int index) { + if (noticesBuilder_ == null) { + return notices_.get(index); + } else { + return noticesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNotices( + int index, com.google.cloud.workloadmanager.v1.Execution.Notice value) { + if (noticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNoticesIsMutable(); + notices_.set(index, value); + onChanged(); + } else { + noticesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNotices( + int index, com.google.cloud.workloadmanager.v1.Execution.Notice.Builder builderForValue) { + if (noticesBuilder_ == null) { + ensureNoticesIsMutable(); + notices_.set(index, builderForValue.build()); + onChanged(); + } else { + noticesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNotices(com.google.cloud.workloadmanager.v1.Execution.Notice value) { + if (noticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNoticesIsMutable(); + notices_.add(value); + onChanged(); + } else { + noticesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNotices( + int index, com.google.cloud.workloadmanager.v1.Execution.Notice value) { + if (noticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNoticesIsMutable(); + notices_.add(index, value); + onChanged(); + } else { + noticesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNotices( + com.google.cloud.workloadmanager.v1.Execution.Notice.Builder builderForValue) { + if (noticesBuilder_ == null) { + ensureNoticesIsMutable(); + notices_.add(builderForValue.build()); + onChanged(); + } else { + noticesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNotices( + int index, com.google.cloud.workloadmanager.v1.Execution.Notice.Builder builderForValue) { + if (noticesBuilder_ == null) { + ensureNoticesIsMutable(); + notices_.add(index, builderForValue.build()); + onChanged(); + } else { + noticesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllNotices( + java.lang.Iterable values) { + if (noticesBuilder_ == null) { + ensureNoticesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notices_); + onChanged(); + } else { + noticesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNotices() { + if (noticesBuilder_ == null) { + notices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + noticesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeNotices(int index) { + if (noticesBuilder_ == null) { + ensureNoticesIsMutable(); + notices_.remove(index); + onChanged(); + } else { + noticesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.Notice.Builder getNoticesBuilder( + int index) { + return internalGetNoticesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.NoticeOrBuilder getNoticesOrBuilder( + int index) { + if (noticesBuilder_ == null) { + return notices_.get(index); + } else { + return noticesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getNoticesOrBuilderList() { + if (noticesBuilder_ != null) { + return noticesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notices_); + } + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.Notice.Builder addNoticesBuilder() { + return internalGetNoticesFieldBuilder() + .addBuilder(com.google.cloud.workloadmanager.v1.Execution.Notice.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.Notice.Builder addNoticesBuilder( + int index) { + return internalGetNoticesFieldBuilder() + .addBuilder( + index, com.google.cloud.workloadmanager.v1.Execution.Notice.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Additional information generated by the execution.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getNoticesBuilderList() { + return internalGetNoticesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution.Notice, + com.google.cloud.workloadmanager.v1.Execution.Notice.Builder, + com.google.cloud.workloadmanager.v1.Execution.NoticeOrBuilder> + internalGetNoticesFieldBuilder() { + if (noticesBuilder_ == null) { + noticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution.Notice, + com.google.cloud.workloadmanager.v1.Execution.Notice.Builder, + com.google.cloud.workloadmanager.v1.Execution.NoticeOrBuilder>( + notices_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + notices_ = null; + } + return noticesBuilder_; + } + + private int engine_ = 0; + + /** + * + * + *
+     * Optional. Engine.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Engine engine = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for engine. + */ + @java.lang.Override + public int getEngineValue() { + return engine_; + } + + /** + * + * + *
+     * Optional. Engine.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Engine engine = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for engine to set. + * @return This builder for chaining. + */ + public Builder setEngineValue(int value) { + engine_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Engine.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Engine engine = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engine. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution.Engine getEngine() { + com.google.cloud.workloadmanager.v1.Execution.Engine result = + com.google.cloud.workloadmanager.v1.Execution.Engine.forNumber(engine_); + return result == null + ? com.google.cloud.workloadmanager.v1.Execution.Engine.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Engine.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Engine engine = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The engine to set. + * @return This builder for chaining. + */ + public Builder setEngine(com.google.cloud.workloadmanager.v1.Execution.Engine value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + engine_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Engine.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Engine engine = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEngine() { + bitField0_ = (bitField0_ & ~0x00000800); + engine_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.workloadmanager.v1.Execution.Summary resultSummary_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution.Summary, + com.google.cloud.workloadmanager.v1.Execution.Summary.Builder, + com.google.cloud.workloadmanager.v1.Execution.SummaryOrBuilder> + resultSummaryBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Result summary for the execution.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resultSummary field is set. + */ + public boolean hasResultSummary() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Result summary for the execution.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resultSummary. + */ + public com.google.cloud.workloadmanager.v1.Execution.Summary getResultSummary() { + if (resultSummaryBuilder_ == null) { + return resultSummary_ == null + ? com.google.cloud.workloadmanager.v1.Execution.Summary.getDefaultInstance() + : resultSummary_; + } else { + return resultSummaryBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Result summary for the execution.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResultSummary(com.google.cloud.workloadmanager.v1.Execution.Summary value) { + if (resultSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resultSummary_ = value; + } else { + resultSummaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Result summary for the execution.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResultSummary( + com.google.cloud.workloadmanager.v1.Execution.Summary.Builder builderForValue) { + if (resultSummaryBuilder_ == null) { + resultSummary_ = builderForValue.build(); + } else { + resultSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Result summary for the execution.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeResultSummary(com.google.cloud.workloadmanager.v1.Execution.Summary value) { + if (resultSummaryBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && resultSummary_ != null + && resultSummary_ + != com.google.cloud.workloadmanager.v1.Execution.Summary.getDefaultInstance()) { + getResultSummaryBuilder().mergeFrom(value); + } else { + resultSummary_ = value; + } + } else { + resultSummaryBuilder_.mergeFrom(value); + } + if (resultSummary_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Result summary for the execution.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResultSummary() { + bitField0_ = (bitField0_ & ~0x00001000); + resultSummary_ = null; + if (resultSummaryBuilder_ != null) { + resultSummaryBuilder_.dispose(); + resultSummaryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Result summary for the execution.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.Summary.Builder getResultSummaryBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetResultSummaryFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Result summary for the execution.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.SummaryOrBuilder + getResultSummaryOrBuilder() { + if (resultSummaryBuilder_ != null) { + return resultSummaryBuilder_.getMessageOrBuilder(); + } else { + return resultSummary_ == null + ? com.google.cloud.workloadmanager.v1.Execution.Summary.getDefaultInstance() + : resultSummary_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Result summary for the execution.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution.Summary, + com.google.cloud.workloadmanager.v1.Execution.Summary.Builder, + com.google.cloud.workloadmanager.v1.Execution.SummaryOrBuilder> + internalGetResultSummaryFieldBuilder() { + if (resultSummaryBuilder_ == null) { + resultSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution.Summary, + com.google.cloud.workloadmanager.v1.Execution.Summary.Builder, + com.google.cloud.workloadmanager.v1.Execution.SummaryOrBuilder>( + getResultSummary(), getParentForChildren(), isClean()); + resultSummary_ = null; + } + return resultSummaryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.Execution) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.Execution) + private static final com.google.cloud.workloadmanager.v1.Execution DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.Execution(); + } + + public static com.google.cloud.workloadmanager.v1.Execution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionName.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionName.java new file mode 100644 index 000000000000..c9ca5e5b85d6 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionName.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. + */ + +package com.google.cloud.workloadmanager.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 ExecutionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_EVALUATION_EXECUTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String evaluation; + private final String execution; + + @Deprecated + protected ExecutionName() { + project = null; + location = null; + evaluation = null; + execution = null; + } + + private ExecutionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + evaluation = Preconditions.checkNotNull(builder.getEvaluation()); + execution = Preconditions.checkNotNull(builder.getExecution()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEvaluation() { + return evaluation; + } + + public String getExecution() { + return execution; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ExecutionName of( + String project, String location, String evaluation, String execution) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEvaluation(evaluation) + .setExecution(execution) + .build(); + } + + public static String format( + String project, String location, String evaluation, String execution) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEvaluation(evaluation) + .setExecution(execution) + .build() + .toString(); + } + + public static ExecutionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_EVALUATION_EXECUTION.validatedMatch( + formattedString, "ExecutionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("evaluation"), + matchMap.get("execution")); + } + + 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 (ExecutionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_EVALUATION_EXECUTION.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 (evaluation != null) { + fieldMapBuilder.put("evaluation", evaluation); + } + if (execution != null) { + fieldMapBuilder.put("execution", execution); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_EVALUATION_EXECUTION.instantiate( + "project", project, "location", location, "evaluation", evaluation, "execution", execution); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ExecutionName that = ((ExecutionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.evaluation, that.evaluation) + && Objects.equals(this.execution, that.execution); + } + 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(evaluation); + h *= 1000003; + h ^= Objects.hashCode(execution); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}. + */ + public static class Builder { + private String project; + private String location; + private String evaluation; + private String execution; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEvaluation() { + return evaluation; + } + + public String getExecution() { + return execution; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setEvaluation(String evaluation) { + this.evaluation = evaluation; + return this; + } + + public Builder setExecution(String execution) { + this.execution = execution; + return this; + } + + private Builder(ExecutionName executionName) { + this.project = executionName.project; + this.location = executionName.location; + this.evaluation = executionName.evaluation; + this.execution = executionName.execution; + } + + public ExecutionName build() { + return new ExecutionName(this); + } + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionOrBuilder.java new file mode 100644 index 000000000000..55a4d2e57c51 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ExecutionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.Execution) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of execution resource. The format is
+   * projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * The name of execution resource. The format is
+   * projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. [Output only] Start time stamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Output only. [Output only] Start time stamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Output only. [Output only] Start time stamp.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] End time stamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Output only. [Output only] End time stamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Output only. [Output only] End time stamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Inventory time stamp.
+   * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the inventoryTime field is set. + */ + boolean hasInventoryTime(); + + /** + * + * + *
+   * Output only. [Output only] Inventory time stamp.
+   * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The inventoryTime. + */ + com.google.protobuf.Timestamp getInventoryTime(); + + /** + * + * + *
+   * Output only. [Output only] Inventory time stamp.
+   * 
+ * + * + * .google.protobuf.Timestamp inventory_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getInventoryTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] State.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. [Output only] State.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.workloadmanager.v1.Execution.State getState(); + + /** + * + * + *
+   * Output only. [Output only] Evaluation ID.
+   * 
+ * + * string evaluation_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The evaluationId. + */ + java.lang.String getEvaluationId(); + + /** + * + * + *
+   * Output only. [Output only] Evaluation ID.
+   * 
+ * + * string evaluation_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for evaluationId. + */ + com.google.protobuf.ByteString getEvaluationIdBytes(); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Type which represents whether the execution executed directly by user or
+   * scheduled according to the `Evaluation.schedule` field.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Execution.Type run_type = 8; + * + * @return The enum numeric value on the wire for runType. + */ + int getRunTypeValue(); + + /** + * + * + *
+   * Type which represents whether the execution executed directly by user or
+   * scheduled according to the `Evaluation.schedule` field.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Execution.Type run_type = 8; + * + * @return The runType. + */ + com.google.cloud.workloadmanager.v1.Execution.Type getRunType(); + + /** + * + * + *
+   * Output only. Execution result summary per rule.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getRuleResultsList(); + + /** + * + * + *
+   * Output only. Execution result summary per rule.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.workloadmanager.v1.RuleExecutionResult getRuleResults(int index); + + /** + * + * + *
+   * Output only. Execution result summary per rule.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRuleResultsCount(); + + /** + * + * + *
+   * Output only. Execution result summary per rule.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRuleResultsOrBuilderList(); + + /** + * + * + *
+   * Output only. Execution result summary per rule.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleExecutionResult rule_results = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.workloadmanager.v1.RuleExecutionResultOrBuilder getRuleResultsOrBuilder( + int index); + + /** + * + * + *
+   * Optional. External data sources.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getExternalDataSourcesList(); + + /** + * + * + *
+   * Optional. External data sources.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSources getExternalDataSources( + int index); + + /** + * + * + *
+   * Optional. External data sources.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getExternalDataSourcesCount(); + + /** + * + * + *
+   * Optional. External data sources.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.workloadmanager.v1.Execution.ExternalDataSourcesOrBuilder> + getExternalDataSourcesOrBuilderList(); + + /** + * + * + *
+   * Optional. External data sources.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.ExternalDataSources external_data_sources = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.workloadmanager.v1.Execution.ExternalDataSourcesOrBuilder + getExternalDataSourcesOrBuilder(int index); + + /** + * + * + *
+   * Output only. Additional information generated by the execution.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getNoticesList(); + + /** + * + * + *
+   * Output only. Additional information generated by the execution.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.workloadmanager.v1.Execution.Notice getNotices(int index); + + /** + * + * + *
+   * Output only. Additional information generated by the execution.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getNoticesCount(); + + /** + * + * + *
+   * Output only. Additional information generated by the execution.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getNoticesOrBuilderList(); + + /** + * + * + *
+   * Output only. Additional information generated by the execution.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.Execution.Notice notices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.workloadmanager.v1.Execution.NoticeOrBuilder getNoticesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Engine.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Engine engine = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for engine. + */ + int getEngineValue(); + + /** + * + * + *
+   * Optional. Engine.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Engine engine = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engine. + */ + com.google.cloud.workloadmanager.v1.Execution.Engine getEngine(); + + /** + * + * + *
+   * Output only. [Output only] Result summary for the execution.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resultSummary field is set. + */ + boolean hasResultSummary(); + + /** + * + * + *
+   * Output only. [Output only] Result summary for the execution.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resultSummary. + */ + com.google.cloud.workloadmanager.v1.Execution.Summary getResultSummary(); + + /** + * + * + *
+   * Output only. [Output only] Result summary for the execution.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution.Summary result_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.workloadmanager.v1.Execution.SummaryOrBuilder getResultSummaryOrBuilder(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionResult.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionResult.java new file mode 100644 index 000000000000..b7db1fb550b0 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionResult.java @@ -0,0 +1,2593 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * The result of an execution.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ExecutionResult} + */ +@com.google.protobuf.Generated +public final class ExecutionResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ExecutionResult) + ExecutionResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecutionResult"); + } + + // Use ExecutionResult.newBuilder() to construct. + private ExecutionResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecutionResult() { + violationMessage_ = ""; + severity_ = ""; + rule_ = ""; + documentationUrl_ = ""; + commands_ = java.util.Collections.emptyList(); + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ExecutionResult.class, + com.google.cloud.workloadmanager.v1.ExecutionResult.Builder.class); + } + + /** + * + * + *
+   * Enum of execution result type.
+   * 
+ * + * Protobuf enum {@code google.cloud.workloadmanager.v1.ExecutionResult.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unknown state.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Resource successfully passed the rule.
+     * 
+ * + * TYPE_PASSED = 1; + */ + TYPE_PASSED(1), + /** + * + * + *
+     * Resource violated the rule.
+     * 
+ * + * TYPE_VIOLATED = 2; + */ + TYPE_VIOLATED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
+     * Unknown state.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Resource successfully passed the rule.
+     * 
+ * + * TYPE_PASSED = 1; + */ + public static final int TYPE_PASSED_VALUE = 1; + + /** + * + * + *
+     * Resource violated the rule.
+     * 
+ * + * TYPE_VIOLATED = 2; + */ + public static final int TYPE_VIOLATED_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 TYPE_PASSED; + case 2: + return TYPE_VIOLATED; + 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.workloadmanager.v1.ExecutionResult.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.workloadmanager.v1.ExecutionResult.Type) + } + + private int bitField0_; + public static final int VIOLATION_MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object violationMessage_ = ""; + + /** + * + * + *
+   * The violation message of an execution.
+   * 
+ * + * string violation_message = 1; + * + * @return The violationMessage. + */ + @java.lang.Override + public java.lang.String getViolationMessage() { + java.lang.Object ref = violationMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + violationMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * The violation message of an execution.
+   * 
+ * + * string violation_message = 1; + * + * @return The bytes for violationMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getViolationMessageBytes() { + java.lang.Object ref = violationMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + violationMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEVERITY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object severity_ = ""; + + /** + * + * + *
+   * The severity of violation.
+   * 
+ * + * string severity = 2; + * + * @return The severity. + */ + @java.lang.Override + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } + } + + /** + * + * + *
+   * The severity of violation.
+   * 
+ * + * string severity = 2; + * + * @return The bytes for severity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object rule_ = ""; + + /** + * + * + *
+   * The rule that is violated in an evaluation.
+   * 
+ * + * string rule = 3 [(.google.api.resource_reference) = { ... } + * + * @return The rule. + */ + @java.lang.Override + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } + } + + /** + * + * + *
+   * The rule that is violated in an evaluation.
+   * 
+ * + * string rule = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for rule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENTATION_URL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object documentationUrl_ = ""; + + /** + * + * + *
+   * The URL for the documentation of the rule.
+   * 
+ * + * string documentation_url = 4; + * + * @return The documentationUrl. + */ + @java.lang.Override + public java.lang.String getDocumentationUrl() { + java.lang.Object ref = documentationUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentationUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * The URL for the documentation of the rule.
+   * 
+ * + * string documentation_url = 4; + * + * @return The bytes for documentationUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentationUrlBytes() { + java.lang.Object ref = documentationUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 5; + private com.google.cloud.workloadmanager.v1.Resource resource_; + + /** + * + * + *
+   * The resource that violates the rule.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + * + * @return Whether the resource field is set. + */ + @java.lang.Override + public boolean hasResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The resource that violates the rule.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + * + * @return The resource. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Resource getResource() { + return resource_ == null + ? com.google.cloud.workloadmanager.v1.Resource.getDefaultInstance() + : resource_; + } + + /** + * + * + *
+   * The resource that violates the rule.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceOrBuilder getResourceOrBuilder() { + return resource_ == null + ? com.google.cloud.workloadmanager.v1.Resource.getDefaultInstance() + : resource_; + } + + public static final int VIOLATION_DETAILS_FIELD_NUMBER = 6; + private com.google.cloud.workloadmanager.v1.ViolationDetails violationDetails_; + + /** + * + * + *
+   * The details of violation in an evaluation result.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + * + * @return Whether the violationDetails field is set. + */ + @java.lang.Override + public boolean hasViolationDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The details of violation in an evaluation result.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + * + * @return The violationDetails. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ViolationDetails getViolationDetails() { + return violationDetails_ == null + ? com.google.cloud.workloadmanager.v1.ViolationDetails.getDefaultInstance() + : violationDetails_; + } + + /** + * + * + *
+   * The details of violation in an evaluation result.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ViolationDetailsOrBuilder + getViolationDetailsOrBuilder() { + return violationDetails_ == null + ? com.google.cloud.workloadmanager.v1.ViolationDetails.getDefaultInstance() + : violationDetails_; + } + + public static final int COMMANDS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List commands_; + + /** + * + * + *
+   * The commands to remediate the violation.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + @java.lang.Override + public java.util.List getCommandsList() { + return commands_; + } + + /** + * + * + *
+   * The commands to remediate the violation.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + @java.lang.Override + public java.util.List + getCommandsOrBuilderList() { + return commands_; + } + + /** + * + * + *
+   * The commands to remediate the violation.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + @java.lang.Override + public int getCommandsCount() { + return commands_.size(); + } + + /** + * + * + *
+   * The commands to remediate the violation.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Command getCommands(int index) { + return commands_.get(index); + } + + /** + * + * + *
+   * The commands to remediate the violation.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.CommandOrBuilder getCommandsOrBuilder(int index) { + return commands_.get(index); + } + + public static final int TYPE_FIELD_NUMBER = 8; + private int type_ = 0; + + /** + * + * + *
+   * Execution result type of the scanned resource.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Execution result type of the scanned resource.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ExecutionResult.Type getType() { + com.google.cloud.workloadmanager.v1.ExecutionResult.Type result = + com.google.cloud.workloadmanager.v1.ExecutionResult.Type.forNumber(type_); + return result == null + ? com.google.cloud.workloadmanager.v1.ExecutionResult.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(violationMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, violationMessage_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(severity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, severity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, rule_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentationUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, documentationUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getResource()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getViolationDetails()); + } + for (int i = 0; i < commands_.size(); i++) { + output.writeMessage(7, commands_.get(i)); + } + if (type_ + != com.google.cloud.workloadmanager.v1.ExecutionResult.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, 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(violationMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, violationMessage_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(severity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, severity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rule_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentationUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, documentationUrl_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResource()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getViolationDetails()); + } + for (int i = 0; i < commands_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, commands_.get(i)); + } + if (type_ + != com.google.cloud.workloadmanager.v1.ExecutionResult.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, 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.workloadmanager.v1.ExecutionResult)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ExecutionResult other = + (com.google.cloud.workloadmanager.v1.ExecutionResult) obj; + + if (!getViolationMessage().equals(other.getViolationMessage())) return false; + if (!getSeverity().equals(other.getSeverity())) return false; + if (!getRule().equals(other.getRule())) return false; + if (!getDocumentationUrl().equals(other.getDocumentationUrl())) return false; + if (hasResource() != other.hasResource()) return false; + if (hasResource()) { + if (!getResource().equals(other.getResource())) return false; + } + if (hasViolationDetails() != other.hasViolationDetails()) return false; + if (hasViolationDetails()) { + if (!getViolationDetails().equals(other.getViolationDetails())) return false; + } + if (!getCommandsList().equals(other.getCommandsList())) 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) + VIOLATION_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getViolationMessage().hashCode(); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + getSeverity().hashCode(); + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + hash = (37 * hash) + DOCUMENTATION_URL_FIELD_NUMBER; + hash = (53 * hash) + getDocumentationUrl().hashCode(); + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } + if (hasViolationDetails()) { + hash = (37 * hash) + VIOLATION_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getViolationDetails().hashCode(); + } + if (getCommandsCount() > 0) { + hash = (37 * hash) + COMMANDS_FIELD_NUMBER; + hash = (53 * hash) + getCommandsList().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.workloadmanager.v1.ExecutionResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.ExecutionResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 result of an execution.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ExecutionResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ExecutionResult) + com.google.cloud.workloadmanager.v1.ExecutionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ExecutionResult.class, + com.google.cloud.workloadmanager.v1.ExecutionResult.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ExecutionResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResourceFieldBuilder(); + internalGetViolationDetailsFieldBuilder(); + internalGetCommandsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + violationMessage_ = ""; + severity_ = ""; + rule_ = ""; + documentationUrl_ = ""; + resource_ = null; + if (resourceBuilder_ != null) { + resourceBuilder_.dispose(); + resourceBuilder_ = null; + } + violationDetails_ = null; + if (violationDetailsBuilder_ != null) { + violationDetailsBuilder_.dispose(); + violationDetailsBuilder_ = null; + } + if (commandsBuilder_ == null) { + commands_ = java.util.Collections.emptyList(); + } else { + commands_ = null; + commandsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ExecutionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ExecutionResult getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ExecutionResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ExecutionResult build() { + com.google.cloud.workloadmanager.v1.ExecutionResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ExecutionResult buildPartial() { + com.google.cloud.workloadmanager.v1.ExecutionResult result = + new com.google.cloud.workloadmanager.v1.ExecutionResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.workloadmanager.v1.ExecutionResult result) { + if (commandsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + commands_ = java.util.Collections.unmodifiableList(commands_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.commands_ = commands_; + } else { + result.commands_ = commandsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ExecutionResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.violationMessage_ = violationMessage_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rule_ = rule_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.documentationUrl_ = documentationUrl_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.violationDetails_ = + violationDetailsBuilder_ == null ? violationDetails_ : violationDetailsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.type_ = type_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.ExecutionResult) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ExecutionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ExecutionResult other) { + if (other == com.google.cloud.workloadmanager.v1.ExecutionResult.getDefaultInstance()) + return this; + if (!other.getViolationMessage().isEmpty()) { + violationMessage_ = other.violationMessage_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSeverity().isEmpty()) { + severity_ = other.severity_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRule().isEmpty()) { + rule_ = other.rule_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDocumentationUrl().isEmpty()) { + documentationUrl_ = other.documentationUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasResource()) { + mergeResource(other.getResource()); + } + if (other.hasViolationDetails()) { + mergeViolationDetails(other.getViolationDetails()); + } + if (commandsBuilder_ == null) { + if (!other.commands_.isEmpty()) { + if (commands_.isEmpty()) { + commands_ = other.commands_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureCommandsIsMutable(); + commands_.addAll(other.commands_); + } + onChanged(); + } + } else { + if (!other.commands_.isEmpty()) { + if (commandsBuilder_.isEmpty()) { + commandsBuilder_.dispose(); + commandsBuilder_ = null; + commands_ = other.commands_; + bitField0_ = (bitField0_ & ~0x00000040); + commandsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCommandsFieldBuilder() + : null; + } else { + commandsBuilder_.addAllMessages(other.commands_); + } + } + } + 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: + { + violationMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + severity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + rule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + documentationUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetViolationDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.cloud.workloadmanager.v1.Command m = + input.readMessage( + com.google.cloud.workloadmanager.v1.Command.parser(), extensionRegistry); + if (commandsBuilder_ == null) { + ensureCommandsIsMutable(); + commands_.add(m); + } else { + commandsBuilder_.addMessage(m); + } + break; + } // case 58 + case 64: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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 violationMessage_ = ""; + + /** + * + * + *
+     * The violation message of an execution.
+     * 
+ * + * string violation_message = 1; + * + * @return The violationMessage. + */ + public java.lang.String getViolationMessage() { + java.lang.Object ref = violationMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + violationMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The violation message of an execution.
+     * 
+ * + * string violation_message = 1; + * + * @return The bytes for violationMessage. + */ + public com.google.protobuf.ByteString getViolationMessageBytes() { + java.lang.Object ref = violationMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + violationMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The violation message of an execution.
+     * 
+ * + * string violation_message = 1; + * + * @param value The violationMessage to set. + * @return This builder for chaining. + */ + public Builder setViolationMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + violationMessage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The violation message of an execution.
+     * 
+ * + * string violation_message = 1; + * + * @return This builder for chaining. + */ + public Builder clearViolationMessage() { + violationMessage_ = getDefaultInstance().getViolationMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The violation message of an execution.
+     * 
+ * + * string violation_message = 1; + * + * @param value The bytes for violationMessage to set. + * @return This builder for chaining. + */ + public Builder setViolationMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + violationMessage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object severity_ = ""; + + /** + * + * + *
+     * The severity of violation.
+     * 
+ * + * string severity = 2; + * + * @return The severity. + */ + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The severity of violation.
+     * 
+ * + * string severity = 2; + * + * @return The bytes for severity. + */ + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The severity of violation.
+     * 
+ * + * string severity = 2; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + severity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The severity of violation.
+     * 
+ * + * string severity = 2; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + severity_ = getDefaultInstance().getSeverity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The severity of violation.
+     * 
+ * + * string severity = 2; + * + * @param value The bytes for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + severity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object rule_ = ""; + + /** + * + * + *
+     * The rule that is violated in an evaluation.
+     * 
+ * + * string rule = 3 [(.google.api.resource_reference) = { ... } + * + * @return The rule. + */ + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The rule that is violated in an evaluation.
+     * 
+ * + * string rule = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for rule. + */ + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The rule that is violated in an evaluation.
+     * 
+ * + * string rule = 3 [(.google.api.resource_reference) = { ... } + * + * @param value The rule to set. + * @return This builder for chaining. + */ + public Builder setRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The rule that is violated in an evaluation.
+     * 
+ * + * string rule = 3 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearRule() { + rule_ = getDefaultInstance().getRule(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The rule that is violated in an evaluation.
+     * 
+ * + * string rule = 3 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for rule to set. + * @return This builder for chaining. + */ + public Builder setRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rule_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object documentationUrl_ = ""; + + /** + * + * + *
+     * The URL for the documentation of the rule.
+     * 
+ * + * string documentation_url = 4; + * + * @return The documentationUrl. + */ + public java.lang.String getDocumentationUrl() { + java.lang.Object ref = documentationUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentationUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The URL for the documentation of the rule.
+     * 
+ * + * string documentation_url = 4; + * + * @return The bytes for documentationUrl. + */ + public com.google.protobuf.ByteString getDocumentationUrlBytes() { + java.lang.Object ref = documentationUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The URL for the documentation of the rule.
+     * 
+ * + * string documentation_url = 4; + * + * @param value The documentationUrl to set. + * @return This builder for chaining. + */ + public Builder setDocumentationUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + documentationUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URL for the documentation of the rule.
+     * 
+ * + * string documentation_url = 4; + * + * @return This builder for chaining. + */ + public Builder clearDocumentationUrl() { + documentationUrl_ = getDefaultInstance().getDocumentationUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The URL for the documentation of the rule.
+     * 
+ * + * string documentation_url = 4; + * + * @param value The bytes for documentationUrl to set. + * @return This builder for chaining. + */ + public Builder setDocumentationUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentationUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.workloadmanager.v1.Resource resource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Resource, + com.google.cloud.workloadmanager.v1.Resource.Builder, + com.google.cloud.workloadmanager.v1.ResourceOrBuilder> + resourceBuilder_; + + /** + * + * + *
+     * The resource that violates the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + * + * @return Whether the resource field is set. + */ + public boolean hasResource() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * The resource that violates the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + * + * @return The resource. + */ + public com.google.cloud.workloadmanager.v1.Resource getResource() { + if (resourceBuilder_ == null) { + return resource_ == null + ? com.google.cloud.workloadmanager.v1.Resource.getDefaultInstance() + : resource_; + } else { + return resourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The resource that violates the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + */ + public Builder setResource(com.google.cloud.workloadmanager.v1.Resource value) { + if (resourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + } else { + resourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The resource that violates the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + */ + public Builder setResource( + com.google.cloud.workloadmanager.v1.Resource.Builder builderForValue) { + if (resourceBuilder_ == null) { + resource_ = builderForValue.build(); + } else { + resourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The resource that violates the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + */ + public Builder mergeResource(com.google.cloud.workloadmanager.v1.Resource value) { + if (resourceBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && resource_ != null + && resource_ != com.google.cloud.workloadmanager.v1.Resource.getDefaultInstance()) { + getResourceBuilder().mergeFrom(value); + } else { + resource_ = value; + } + } else { + resourceBuilder_.mergeFrom(value); + } + if (resource_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The resource that violates the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + */ + public Builder clearResource() { + bitField0_ = (bitField0_ & ~0x00000010); + resource_ = null; + if (resourceBuilder_ != null) { + resourceBuilder_.dispose(); + resourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The resource that violates the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + */ + public com.google.cloud.workloadmanager.v1.Resource.Builder getResourceBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The resource that violates the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + */ + public com.google.cloud.workloadmanager.v1.ResourceOrBuilder getResourceOrBuilder() { + if (resourceBuilder_ != null) { + return resourceBuilder_.getMessageOrBuilder(); + } else { + return resource_ == null + ? com.google.cloud.workloadmanager.v1.Resource.getDefaultInstance() + : resource_; + } + } + + /** + * + * + *
+     * The resource that violates the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Resource, + com.google.cloud.workloadmanager.v1.Resource.Builder, + com.google.cloud.workloadmanager.v1.ResourceOrBuilder> + internalGetResourceFieldBuilder() { + if (resourceBuilder_ == null) { + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Resource, + com.google.cloud.workloadmanager.v1.Resource.Builder, + com.google.cloud.workloadmanager.v1.ResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); + resource_ = null; + } + return resourceBuilder_; + } + + private com.google.cloud.workloadmanager.v1.ViolationDetails violationDetails_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ViolationDetails, + com.google.cloud.workloadmanager.v1.ViolationDetails.Builder, + com.google.cloud.workloadmanager.v1.ViolationDetailsOrBuilder> + violationDetailsBuilder_; + + /** + * + * + *
+     * The details of violation in an evaluation result.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + * + * @return Whether the violationDetails field is set. + */ + public boolean hasViolationDetails() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * The details of violation in an evaluation result.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + * + * @return The violationDetails. + */ + public com.google.cloud.workloadmanager.v1.ViolationDetails getViolationDetails() { + if (violationDetailsBuilder_ == null) { + return violationDetails_ == null + ? com.google.cloud.workloadmanager.v1.ViolationDetails.getDefaultInstance() + : violationDetails_; + } else { + return violationDetailsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The details of violation in an evaluation result.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + */ + public Builder setViolationDetails(com.google.cloud.workloadmanager.v1.ViolationDetails value) { + if (violationDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + violationDetails_ = value; + } else { + violationDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The details of violation in an evaluation result.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + */ + public Builder setViolationDetails( + com.google.cloud.workloadmanager.v1.ViolationDetails.Builder builderForValue) { + if (violationDetailsBuilder_ == null) { + violationDetails_ = builderForValue.build(); + } else { + violationDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The details of violation in an evaluation result.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + */ + public Builder mergeViolationDetails( + com.google.cloud.workloadmanager.v1.ViolationDetails value) { + if (violationDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && violationDetails_ != null + && violationDetails_ + != com.google.cloud.workloadmanager.v1.ViolationDetails.getDefaultInstance()) { + getViolationDetailsBuilder().mergeFrom(value); + } else { + violationDetails_ = value; + } + } else { + violationDetailsBuilder_.mergeFrom(value); + } + if (violationDetails_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The details of violation in an evaluation result.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + */ + public Builder clearViolationDetails() { + bitField0_ = (bitField0_ & ~0x00000020); + violationDetails_ = null; + if (violationDetailsBuilder_ != null) { + violationDetailsBuilder_.dispose(); + violationDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The details of violation in an evaluation result.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + */ + public com.google.cloud.workloadmanager.v1.ViolationDetails.Builder + getViolationDetailsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetViolationDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The details of violation in an evaluation result.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + */ + public com.google.cloud.workloadmanager.v1.ViolationDetailsOrBuilder + getViolationDetailsOrBuilder() { + if (violationDetailsBuilder_ != null) { + return violationDetailsBuilder_.getMessageOrBuilder(); + } else { + return violationDetails_ == null + ? com.google.cloud.workloadmanager.v1.ViolationDetails.getDefaultInstance() + : violationDetails_; + } + } + + /** + * + * + *
+     * The details of violation in an evaluation result.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ViolationDetails, + com.google.cloud.workloadmanager.v1.ViolationDetails.Builder, + com.google.cloud.workloadmanager.v1.ViolationDetailsOrBuilder> + internalGetViolationDetailsFieldBuilder() { + if (violationDetailsBuilder_ == null) { + violationDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.ViolationDetails, + com.google.cloud.workloadmanager.v1.ViolationDetails.Builder, + com.google.cloud.workloadmanager.v1.ViolationDetailsOrBuilder>( + getViolationDetails(), getParentForChildren(), isClean()); + violationDetails_ = null; + } + return violationDetailsBuilder_; + } + + private java.util.List commands_ = + java.util.Collections.emptyList(); + + private void ensureCommandsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + commands_ = new java.util.ArrayList(commands_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Command, + com.google.cloud.workloadmanager.v1.Command.Builder, + com.google.cloud.workloadmanager.v1.CommandOrBuilder> + commandsBuilder_; + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public java.util.List getCommandsList() { + if (commandsBuilder_ == null) { + return java.util.Collections.unmodifiableList(commands_); + } else { + return commandsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public int getCommandsCount() { + if (commandsBuilder_ == null) { + return commands_.size(); + } else { + return commandsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public com.google.cloud.workloadmanager.v1.Command getCommands(int index) { + if (commandsBuilder_ == null) { + return commands_.get(index); + } else { + return commandsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public Builder setCommands(int index, com.google.cloud.workloadmanager.v1.Command value) { + if (commandsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandsIsMutable(); + commands_.set(index, value); + onChanged(); + } else { + commandsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public Builder setCommands( + int index, com.google.cloud.workloadmanager.v1.Command.Builder builderForValue) { + if (commandsBuilder_ == null) { + ensureCommandsIsMutable(); + commands_.set(index, builderForValue.build()); + onChanged(); + } else { + commandsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public Builder addCommands(com.google.cloud.workloadmanager.v1.Command value) { + if (commandsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandsIsMutable(); + commands_.add(value); + onChanged(); + } else { + commandsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public Builder addCommands(int index, com.google.cloud.workloadmanager.v1.Command value) { + if (commandsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandsIsMutable(); + commands_.add(index, value); + onChanged(); + } else { + commandsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public Builder addCommands( + com.google.cloud.workloadmanager.v1.Command.Builder builderForValue) { + if (commandsBuilder_ == null) { + ensureCommandsIsMutable(); + commands_.add(builderForValue.build()); + onChanged(); + } else { + commandsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public Builder addCommands( + int index, com.google.cloud.workloadmanager.v1.Command.Builder builderForValue) { + if (commandsBuilder_ == null) { + ensureCommandsIsMutable(); + commands_.add(index, builderForValue.build()); + onChanged(); + } else { + commandsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public Builder addAllCommands( + java.lang.Iterable values) { + if (commandsBuilder_ == null) { + ensureCommandsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, commands_); + onChanged(); + } else { + commandsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public Builder clearCommands() { + if (commandsBuilder_ == null) { + commands_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + commandsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public Builder removeCommands(int index) { + if (commandsBuilder_ == null) { + ensureCommandsIsMutable(); + commands_.remove(index); + onChanged(); + } else { + commandsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public com.google.cloud.workloadmanager.v1.Command.Builder getCommandsBuilder(int index) { + return internalGetCommandsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public com.google.cloud.workloadmanager.v1.CommandOrBuilder getCommandsOrBuilder(int index) { + if (commandsBuilder_ == null) { + return commands_.get(index); + } else { + return commandsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public java.util.List + getCommandsOrBuilderList() { + if (commandsBuilder_ != null) { + return commandsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(commands_); + } + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public com.google.cloud.workloadmanager.v1.Command.Builder addCommandsBuilder() { + return internalGetCommandsFieldBuilder() + .addBuilder(com.google.cloud.workloadmanager.v1.Command.getDefaultInstance()); + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public com.google.cloud.workloadmanager.v1.Command.Builder addCommandsBuilder(int index) { + return internalGetCommandsFieldBuilder() + .addBuilder(index, com.google.cloud.workloadmanager.v1.Command.getDefaultInstance()); + } + + /** + * + * + *
+     * The commands to remediate the violation.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + public java.util.List + getCommandsBuilderList() { + return internalGetCommandsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Command, + com.google.cloud.workloadmanager.v1.Command.Builder, + com.google.cloud.workloadmanager.v1.CommandOrBuilder> + internalGetCommandsFieldBuilder() { + if (commandsBuilder_ == null) { + commandsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Command, + com.google.cloud.workloadmanager.v1.Command.Builder, + com.google.cloud.workloadmanager.v1.CommandOrBuilder>( + commands_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + commands_ = null; + } + return commandsBuilder_; + } + + private int type_ = 0; + + /** + * + * + *
+     * Execution result type of the scanned resource.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Execution result type of the scanned resource.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8; + * + * @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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Execution result type of the scanned resource.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ExecutionResult.Type getType() { + com.google.cloud.workloadmanager.v1.ExecutionResult.Type result = + com.google.cloud.workloadmanager.v1.ExecutionResult.Type.forNumber(type_); + return result == null + ? com.google.cloud.workloadmanager.v1.ExecutionResult.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Execution result type of the scanned resource.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.workloadmanager.v1.ExecutionResult.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Execution result type of the scanned resource.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000080); + type_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ExecutionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ExecutionResult) + private static final com.google.cloud.workloadmanager.v1.ExecutionResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ExecutionResult(); + } + + public static com.google.cloud.workloadmanager.v1.ExecutionResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ExecutionResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionResultOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionResultOrBuilder.java new file mode 100644 index 000000000000..1f4de518f736 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionResultOrBuilder.java @@ -0,0 +1,288 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ExecutionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ExecutionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The violation message of an execution.
+   * 
+ * + * string violation_message = 1; + * + * @return The violationMessage. + */ + java.lang.String getViolationMessage(); + + /** + * + * + *
+   * The violation message of an execution.
+   * 
+ * + * string violation_message = 1; + * + * @return The bytes for violationMessage. + */ + com.google.protobuf.ByteString getViolationMessageBytes(); + + /** + * + * + *
+   * The severity of violation.
+   * 
+ * + * string severity = 2; + * + * @return The severity. + */ + java.lang.String getSeverity(); + + /** + * + * + *
+   * The severity of violation.
+   * 
+ * + * string severity = 2; + * + * @return The bytes for severity. + */ + com.google.protobuf.ByteString getSeverityBytes(); + + /** + * + * + *
+   * The rule that is violated in an evaluation.
+   * 
+ * + * string rule = 3 [(.google.api.resource_reference) = { ... } + * + * @return The rule. + */ + java.lang.String getRule(); + + /** + * + * + *
+   * The rule that is violated in an evaluation.
+   * 
+ * + * string rule = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for rule. + */ + com.google.protobuf.ByteString getRuleBytes(); + + /** + * + * + *
+   * The URL for the documentation of the rule.
+   * 
+ * + * string documentation_url = 4; + * + * @return The documentationUrl. + */ + java.lang.String getDocumentationUrl(); + + /** + * + * + *
+   * The URL for the documentation of the rule.
+   * 
+ * + * string documentation_url = 4; + * + * @return The bytes for documentationUrl. + */ + com.google.protobuf.ByteString getDocumentationUrlBytes(); + + /** + * + * + *
+   * The resource that violates the rule.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + * + * @return Whether the resource field is set. + */ + boolean hasResource(); + + /** + * + * + *
+   * The resource that violates the rule.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + * + * @return The resource. + */ + com.google.cloud.workloadmanager.v1.Resource getResource(); + + /** + * + * + *
+   * The resource that violates the rule.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Resource resource = 5; + */ + com.google.cloud.workloadmanager.v1.ResourceOrBuilder getResourceOrBuilder(); + + /** + * + * + *
+   * The details of violation in an evaluation result.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + * + * @return Whether the violationDetails field is set. + */ + boolean hasViolationDetails(); + + /** + * + * + *
+   * The details of violation in an evaluation result.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + * + * @return The violationDetails. + */ + com.google.cloud.workloadmanager.v1.ViolationDetails getViolationDetails(); + + /** + * + * + *
+   * The details of violation in an evaluation result.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ViolationDetails violation_details = 6; + */ + com.google.cloud.workloadmanager.v1.ViolationDetailsOrBuilder getViolationDetailsOrBuilder(); + + /** + * + * + *
+   * The commands to remediate the violation.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + java.util.List getCommandsList(); + + /** + * + * + *
+   * The commands to remediate the violation.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + com.google.cloud.workloadmanager.v1.Command getCommands(int index); + + /** + * + * + *
+   * The commands to remediate the violation.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + int getCommandsCount(); + + /** + * + * + *
+   * The commands to remediate the violation.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + java.util.List + getCommandsOrBuilderList(); + + /** + * + * + *
+   * The commands to remediate the violation.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Command commands = 7; + */ + com.google.cloud.workloadmanager.v1.CommandOrBuilder getCommandsOrBuilder(int index); + + /** + * + * + *
+   * Execution result type of the scanned resource.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Execution result type of the scanned resource.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ExecutionResult.Type type = 8; + * + * @return The type. + */ + com.google.cloud.workloadmanager.v1.ExecutionResult.Type getType(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GceInstanceFilter.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GceInstanceFilter.java new file mode 100644 index 000000000000..4d5633c26ae5 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GceInstanceFilter.java @@ -0,0 +1,711 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * A filter for matching Compute Engine instances.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.GceInstanceFilter} + */ +@com.google.protobuf.Generated +public final class GceInstanceFilter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.GceInstanceFilter) + GceInstanceFilterOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GceInstanceFilter"); + } + + // Use GceInstanceFilter.newBuilder() to construct. + private GceInstanceFilter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GceInstanceFilter() { + serviceAccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GceInstanceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GceInstanceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.GceInstanceFilter.class, + com.google.cloud.workloadmanager.v1.GceInstanceFilter.Builder.class); + } + + public static final int SERVICE_ACCOUNTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList serviceAccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * If non-empty, only Compute Engine instances associated with at least one of
+   * the provided service accounts will be included in the evaluation.
+   * 
+ * + * repeated string service_accounts = 4; + * + * @return A list containing the serviceAccounts. + */ + public com.google.protobuf.ProtocolStringList getServiceAccountsList() { + return serviceAccounts_; + } + + /** + * + * + *
+   * If non-empty, only Compute Engine instances associated with at least one of
+   * the provided service accounts will be included in the evaluation.
+   * 
+ * + * repeated string service_accounts = 4; + * + * @return The count of serviceAccounts. + */ + public int getServiceAccountsCount() { + return serviceAccounts_.size(); + } + + /** + * + * + *
+   * If non-empty, only Compute Engine instances associated with at least one of
+   * the provided service accounts will be included in the evaluation.
+   * 
+ * + * repeated string service_accounts = 4; + * + * @param index The index of the element to return. + * @return The serviceAccounts at the given index. + */ + public java.lang.String getServiceAccounts(int index) { + return serviceAccounts_.get(index); + } + + /** + * + * + *
+   * If non-empty, only Compute Engine instances associated with at least one of
+   * the provided service accounts will be included in the evaluation.
+   * 
+ * + * repeated string service_accounts = 4; + * + * @param index The index of the value to return. + * @return The bytes of the serviceAccounts at the given index. + */ + public com.google.protobuf.ByteString getServiceAccountsBytes(int index) { + return serviceAccounts_.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 < serviceAccounts_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, serviceAccounts_.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 < serviceAccounts_.size(); i++) { + dataSize += computeStringSizeNoTag(serviceAccounts_.getRaw(i)); + } + size += dataSize; + size += 1 * getServiceAccountsList().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.workloadmanager.v1.GceInstanceFilter)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.GceInstanceFilter other = + (com.google.cloud.workloadmanager.v1.GceInstanceFilter) obj; + + if (!getServiceAccountsList().equals(other.getServiceAccountsList())) return false; + if (!getUnknownFields().equals(other.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 (getServiceAccountsCount() > 0) { + hash = (37 * hash) + SERVICE_ACCOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.GceInstanceFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 filter for matching Compute Engine instances.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.GceInstanceFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.GceInstanceFilter) + com.google.cloud.workloadmanager.v1.GceInstanceFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GceInstanceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GceInstanceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.GceInstanceFilter.class, + com.google.cloud.workloadmanager.v1.GceInstanceFilter.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.GceInstanceFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GceInstanceFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GceInstanceFilter getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.GceInstanceFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GceInstanceFilter build() { + com.google.cloud.workloadmanager.v1.GceInstanceFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GceInstanceFilter buildPartial() { + com.google.cloud.workloadmanager.v1.GceInstanceFilter result = + new com.google.cloud.workloadmanager.v1.GceInstanceFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.GceInstanceFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + serviceAccounts_.makeImmutable(); + result.serviceAccounts_ = serviceAccounts_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.GceInstanceFilter) { + return mergeFrom((com.google.cloud.workloadmanager.v1.GceInstanceFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.GceInstanceFilter other) { + if (other == com.google.cloud.workloadmanager.v1.GceInstanceFilter.getDefaultInstance()) + return this; + if (!other.serviceAccounts_.isEmpty()) { + if (serviceAccounts_.isEmpty()) { + serviceAccounts_ = other.serviceAccounts_; + bitField0_ |= 0x00000001; + } else { + ensureServiceAccountsIsMutable(); + serviceAccounts_.addAll(other.serviceAccounts_); + } + 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 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAccountsIsMutable(); + serviceAccounts_.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 com.google.protobuf.LazyStringArrayList serviceAccounts_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureServiceAccountsIsMutable() { + if (!serviceAccounts_.isModifiable()) { + serviceAccounts_ = new com.google.protobuf.LazyStringArrayList(serviceAccounts_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * If non-empty, only Compute Engine instances associated with at least one of
+     * the provided service accounts will be included in the evaluation.
+     * 
+ * + * repeated string service_accounts = 4; + * + * @return A list containing the serviceAccounts. + */ + public com.google.protobuf.ProtocolStringList getServiceAccountsList() { + serviceAccounts_.makeImmutable(); + return serviceAccounts_; + } + + /** + * + * + *
+     * If non-empty, only Compute Engine instances associated with at least one of
+     * the provided service accounts will be included in the evaluation.
+     * 
+ * + * repeated string service_accounts = 4; + * + * @return The count of serviceAccounts. + */ + public int getServiceAccountsCount() { + return serviceAccounts_.size(); + } + + /** + * + * + *
+     * If non-empty, only Compute Engine instances associated with at least one of
+     * the provided service accounts will be included in the evaluation.
+     * 
+ * + * repeated string service_accounts = 4; + * + * @param index The index of the element to return. + * @return The serviceAccounts at the given index. + */ + public java.lang.String getServiceAccounts(int index) { + return serviceAccounts_.get(index); + } + + /** + * + * + *
+     * If non-empty, only Compute Engine instances associated with at least one of
+     * the provided service accounts will be included in the evaluation.
+     * 
+ * + * repeated string service_accounts = 4; + * + * @param index The index of the value to return. + * @return The bytes of the serviceAccounts at the given index. + */ + public com.google.protobuf.ByteString getServiceAccountsBytes(int index) { + return serviceAccounts_.getByteString(index); + } + + /** + * + * + *
+     * If non-empty, only Compute Engine instances associated with at least one of
+     * the provided service accounts will be included in the evaluation.
+     * 
+ * + * repeated string service_accounts = 4; + * + * @param index The index to set the value at. + * @param value The serviceAccounts to set. + * @return This builder for chaining. + */ + public Builder setServiceAccounts(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAccountsIsMutable(); + serviceAccounts_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * If non-empty, only Compute Engine instances associated with at least one of
+     * the provided service accounts will be included in the evaluation.
+     * 
+ * + * repeated string service_accounts = 4; + * + * @param value The serviceAccounts to add. + * @return This builder for chaining. + */ + public Builder addServiceAccounts(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAccountsIsMutable(); + serviceAccounts_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * If non-empty, only Compute Engine instances associated with at least one of
+     * the provided service accounts will be included in the evaluation.
+     * 
+ * + * repeated string service_accounts = 4; + * + * @param values The serviceAccounts to add. + * @return This builder for chaining. + */ + public Builder addAllServiceAccounts(java.lang.Iterable values) { + ensureServiceAccountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccounts_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * If non-empty, only Compute Engine instances associated with at least one of
+     * the provided service accounts will be included in the evaluation.
+     * 
+ * + * repeated string service_accounts = 4; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccounts() { + serviceAccounts_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * If non-empty, only Compute Engine instances associated with at least one of
+     * the provided service accounts will be included in the evaluation.
+     * 
+ * + * repeated string service_accounts = 4; + * + * @param value The bytes of the serviceAccounts to add. + * @return This builder for chaining. + */ + public Builder addServiceAccountsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureServiceAccountsIsMutable(); + serviceAccounts_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.GceInstanceFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.GceInstanceFilter) + private static final com.google.cloud.workloadmanager.v1.GceInstanceFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.GceInstanceFilter(); + } + + public static com.google.cloud.workloadmanager.v1.GceInstanceFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceInstanceFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GceInstanceFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GceInstanceFilterOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GceInstanceFilterOrBuilder.java new file mode 100644 index 000000000000..0b42928bcf4f --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GceInstanceFilterOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface GceInstanceFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.GceInstanceFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If non-empty, only Compute Engine instances associated with at least one of
+   * the provided service accounts will be included in the evaluation.
+   * 
+ * + * repeated string service_accounts = 4; + * + * @return A list containing the serviceAccounts. + */ + java.util.List getServiceAccountsList(); + + /** + * + * + *
+   * If non-empty, only Compute Engine instances associated with at least one of
+   * the provided service accounts will be included in the evaluation.
+   * 
+ * + * repeated string service_accounts = 4; + * + * @return The count of serviceAccounts. + */ + int getServiceAccountsCount(); + + /** + * + * + *
+   * If non-empty, only Compute Engine instances associated with at least one of
+   * the provided service accounts will be included in the evaluation.
+   * 
+ * + * repeated string service_accounts = 4; + * + * @param index The index of the element to return. + * @return The serviceAccounts at the given index. + */ + java.lang.String getServiceAccounts(int index); + + /** + * + * + *
+   * If non-empty, only Compute Engine instances associated with at least one of
+   * the provided service accounts will be included in the evaluation.
+   * 
+ * + * repeated string service_accounts = 4; + * + * @param index The index of the value to return. + * @return The bytes of the serviceAccounts at the given index. + */ + com.google.protobuf.ByteString getServiceAccountsBytes(int index); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetEvaluationRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetEvaluationRequest.java new file mode 100644 index 000000000000..86f7bed5c732 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetEvaluationRequest.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the GetEvaluation RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.GetEvaluationRequest} + */ +@com.google.protobuf.Generated +public final class GetEvaluationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.GetEvaluationRequest) + GetEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetEvaluationRequest"); + } + + // Use GetEvaluationRequest.newBuilder() to construct. + private GetEvaluationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetEvaluationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GetEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GetEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.GetEvaluationRequest.class, + com.google.cloud.workloadmanager.v1.GetEvaluationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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. Name of the resource.
+   * 
+ * + * + * 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.workloadmanager.v1.GetEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.GetEvaluationRequest other = + (com.google.cloud.workloadmanager.v1.GetEvaluationRequest) 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.workloadmanager.v1.GetEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.GetEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GetEvaluation RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.GetEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.GetEvaluationRequest) + com.google.cloud.workloadmanager.v1.GetEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GetEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GetEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.GetEvaluationRequest.class, + com.google.cloud.workloadmanager.v1.GetEvaluationRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.GetEvaluationRequest.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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GetEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GetEvaluationRequest getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.GetEvaluationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GetEvaluationRequest build() { + com.google.cloud.workloadmanager.v1.GetEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GetEvaluationRequest buildPartial() { + com.google.cloud.workloadmanager.v1.GetEvaluationRequest result = + new com.google.cloud.workloadmanager.v1.GetEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.GetEvaluationRequest 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.workloadmanager.v1.GetEvaluationRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.GetEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.GetEvaluationRequest other) { + if (other == com.google.cloud.workloadmanager.v1.GetEvaluationRequest.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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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.workloadmanager.v1.GetEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.GetEvaluationRequest) + private static final com.google.cloud.workloadmanager.v1.GetEvaluationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.GetEvaluationRequest(); + } + + public static com.google.cloud.workloadmanager.v1.GetEvaluationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GetEvaluationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetEvaluationRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..a8fe987e0d21 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetEvaluationRequestOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface GetEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.GetEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetExecutionRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetExecutionRequest.java new file mode 100644 index 000000000000..806b7cddada0 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetExecutionRequest.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the GetExecution RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.GetExecutionRequest} + */ +@com.google.protobuf.Generated +public final class GetExecutionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.GetExecutionRequest) + GetExecutionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetExecutionRequest"); + } + + // Use GetExecutionRequest.newBuilder() to construct. + private GetExecutionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetExecutionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GetExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GetExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.GetExecutionRequest.class, + com.google.cloud.workloadmanager.v1.GetExecutionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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. Name of the resource.
+   * 
+ * + * + * 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.workloadmanager.v1.GetExecutionRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.GetExecutionRequest other = + (com.google.cloud.workloadmanager.v1.GetExecutionRequest) 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.workloadmanager.v1.GetExecutionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.GetExecutionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the GetExecution RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.GetExecutionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.GetExecutionRequest) + com.google.cloud.workloadmanager.v1.GetExecutionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GetExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GetExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.GetExecutionRequest.class, + com.google.cloud.workloadmanager.v1.GetExecutionRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.GetExecutionRequest.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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_GetExecutionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GetExecutionRequest getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.GetExecutionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GetExecutionRequest build() { + com.google.cloud.workloadmanager.v1.GetExecutionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GetExecutionRequest buildPartial() { + com.google.cloud.workloadmanager.v1.GetExecutionRequest result = + new com.google.cloud.workloadmanager.v1.GetExecutionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.GetExecutionRequest 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.workloadmanager.v1.GetExecutionRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.GetExecutionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.GetExecutionRequest other) { + if (other == com.google.cloud.workloadmanager.v1.GetExecutionRequest.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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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.workloadmanager.v1.GetExecutionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.GetExecutionRequest) + private static final com.google.cloud.workloadmanager.v1.GetExecutionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.GetExecutionRequest(); + } + + public static com.google.cloud.workloadmanager.v1.GetExecutionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GetExecutionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetExecutionRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..5a89fd281f3a --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/GetExecutionRequestOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface GetExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.GetExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsRequest.java new file mode 100644 index 000000000000..a6e173e9a2ce --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsRequest.java @@ -0,0 +1,1279 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the ListEvaluations RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListEvaluationsRequest} + */ +@com.google.protobuf.Generated +public final class ListEvaluationsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ListEvaluationsRequest) + ListEvaluationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListEvaluationsRequest"); + } + + // Use ListEvaluationsRequest.newBuilder() to construct. + private ListEvaluationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListEvaluationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.class, + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent value for ListEvaluationsRequest.
+   * 
+ * + * + * 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. Parent value for ListEvaluationsRequest.
+   * 
+ * + * + * 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; + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @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_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @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_ = ""; + + /** + * + * + *
+   * Filter to be applied when listing the evaluation results.
+   * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+   * Filter to be applied when listing the evaluation results.
+   * 
+ * + * string filter = 4; + * + * @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_ = ""; + + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * string order_by = 5; + * + * @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; + } + } + + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * string order_by = 5; + * + * @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.workloadmanager.v1.ListEvaluationsRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest other = + (com.google.cloud.workloadmanager.v1.ListEvaluationsRequest) 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.workloadmanager.v1.ListEvaluationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListEvaluations RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListEvaluationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ListEvaluationsRequest) + com.google.cloud.workloadmanager.v1.ListEvaluationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.class, + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListEvaluationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListEvaluationsRequest getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListEvaluationsRequest build() { + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListEvaluationsRequest buildPartial() { + com.google.cloud.workloadmanager.v1.ListEvaluationsRequest result = + new com.google.cloud.workloadmanager.v1.ListEvaluationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ListEvaluationsRequest 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.workloadmanager.v1.ListEvaluationsRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ListEvaluationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ListEvaluationsRequest other) { + if (other == com.google.cloud.workloadmanager.v1.ListEvaluationsRequest.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. Parent value for ListEvaluationsRequest.
+     * 
+ * + * + * 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. Parent value for ListEvaluationsRequest.
+     * 
+ * + * + * 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. Parent value for ListEvaluationsRequest.
+     * 
+ * + * + * 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. Parent value for ListEvaluationsRequest.
+     * 
+ * + * + * 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. Parent value for ListEvaluationsRequest.
+     * 
+ * + * + * 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_; + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filter to be applied when listing the evaluation results.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Filter to be applied when listing the evaluation results.
+     * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+     * Filter to be applied when listing the evaluation results.
+     * 
+ * + * string filter = 4; + * + * @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; + } + + /** + * + * + *
+     * Filter to be applied when listing the evaluation results.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter to be applied when listing the evaluation results.
+     * 
+ * + * string filter = 4; + * + * @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_ = ""; + + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * string order_by = 5; + * + * @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; + } + } + + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * string order_by = 5; + * + * @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; + } + + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ListEvaluationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ListEvaluationsRequest) + private static final com.google.cloud.workloadmanager.v1.ListEvaluationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ListEvaluationsRequest(); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListEvaluationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsRequestOrBuilder.java new file mode 100644 index 000000000000..0fb16a4cc62c --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ListEvaluationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ListEvaluationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListEvaluationsRequest.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent value for ListEvaluationsRequest.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter to be applied when listing the evaluation results.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filter to be applied when listing the evaluation results.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsResponse.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsResponse.java new file mode 100644 index 000000000000..9300b62181bb --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsResponse.java @@ -0,0 +1,1406 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Response message for the ListEvaluations RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListEvaluationsResponse} + */ +@com.google.protobuf.Generated +public final class ListEvaluationsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ListEvaluationsResponse) + ListEvaluationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListEvaluationsResponse"); + } + + // Use ListEvaluationsResponse.newBuilder() to construct. + private ListEvaluationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListEvaluationsResponse() { + evaluations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListEvaluationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse.class, + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse.Builder.class); + } + + public static final int EVALUATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List evaluations_; + + /** + * + * + *
+   * The list of evaluations.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + @java.lang.Override + public java.util.List getEvaluationsList() { + return evaluations_; + } + + /** + * + * + *
+   * The list of evaluations.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + @java.lang.Override + public java.util.List + getEvaluationsOrBuilderList() { + return evaluations_; + } + + /** + * + * + *
+   * The list of evaluations.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + @java.lang.Override + public int getEvaluationsCount() { + return evaluations_.size(); + } + + /** + * + * + *
+   * The list of evaluations.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation getEvaluations(int index) { + return evaluations_.get(index); + } + + /** + * + * + *
+   * The list of evaluations.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.EvaluationOrBuilder getEvaluationsOrBuilder( + int index) { + return evaluations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should 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 identifying a page of results the server should 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(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + 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 < evaluations_.size(); i++) { + output.writeMessage(1, evaluations_.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 < evaluations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, evaluations_.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.workloadmanager.v1.ListEvaluationsResponse)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse other = + (com.google.cloud.workloadmanager.v1.ListEvaluationsResponse) obj; + + if (!getEvaluationsList().equals(other.getEvaluationsList())) 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 (getEvaluationsCount() > 0) { + hash = (37 * hash) + EVALUATIONS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationsList().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.workloadmanager.v1.ListEvaluationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListEvaluations RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListEvaluationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ListEvaluationsResponse) + com.google.cloud.workloadmanager.v1.ListEvaluationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListEvaluationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse.class, + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ListEvaluationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (evaluationsBuilder_ == null) { + evaluations_ = java.util.Collections.emptyList(); + } else { + evaluations_ = null; + evaluationsBuilder_.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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListEvaluationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListEvaluationsResponse getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ListEvaluationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListEvaluationsResponse build() { + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListEvaluationsResponse buildPartial() { + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse result = + new com.google.cloud.workloadmanager.v1.ListEvaluationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.workloadmanager.v1.ListEvaluationsResponse result) { + if (evaluationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + evaluations_ = java.util.Collections.unmodifiableList(evaluations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.evaluations_ = evaluations_; + } else { + result.evaluations_ = evaluationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ListEvaluationsResponse 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.workloadmanager.v1.ListEvaluationsResponse) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ListEvaluationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ListEvaluationsResponse other) { + if (other == com.google.cloud.workloadmanager.v1.ListEvaluationsResponse.getDefaultInstance()) + return this; + if (evaluationsBuilder_ == null) { + if (!other.evaluations_.isEmpty()) { + if (evaluations_.isEmpty()) { + evaluations_ = other.evaluations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEvaluationsIsMutable(); + evaluations_.addAll(other.evaluations_); + } + onChanged(); + } + } else { + if (!other.evaluations_.isEmpty()) { + if (evaluationsBuilder_.isEmpty()) { + evaluationsBuilder_.dispose(); + evaluationsBuilder_ = null; + evaluations_ = other.evaluations_; + bitField0_ = (bitField0_ & ~0x00000001); + evaluationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEvaluationsFieldBuilder() + : null; + } else { + evaluationsBuilder_.addAllMessages(other.evaluations_); + } + } + } + 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.workloadmanager.v1.Evaluation m = + input.readMessage( + com.google.cloud.workloadmanager.v1.Evaluation.parser(), extensionRegistry); + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.add(m); + } else { + evaluationsBuilder_.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 evaluations_ = + java.util.Collections.emptyList(); + + private void ensureEvaluationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + evaluations_ = + new java.util.ArrayList(evaluations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Evaluation, + com.google.cloud.workloadmanager.v1.Evaluation.Builder, + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder> + evaluationsBuilder_; + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public java.util.List getEvaluationsList() { + if (evaluationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluations_); + } else { + return evaluationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public int getEvaluationsCount() { + if (evaluationsBuilder_ == null) { + return evaluations_.size(); + } else { + return evaluationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public com.google.cloud.workloadmanager.v1.Evaluation getEvaluations(int index) { + if (evaluationsBuilder_ == null) { + return evaluations_.get(index); + } else { + return evaluationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public Builder setEvaluations(int index, com.google.cloud.workloadmanager.v1.Evaluation value) { + if (evaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationsIsMutable(); + evaluations_.set(index, value); + onChanged(); + } else { + evaluationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public Builder setEvaluations( + int index, com.google.cloud.workloadmanager.v1.Evaluation.Builder builderForValue) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public Builder addEvaluations(com.google.cloud.workloadmanager.v1.Evaluation value) { + if (evaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationsIsMutable(); + evaluations_.add(value); + onChanged(); + } else { + evaluationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public Builder addEvaluations(int index, com.google.cloud.workloadmanager.v1.Evaluation value) { + if (evaluationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationsIsMutable(); + evaluations_.add(index, value); + onChanged(); + } else { + evaluationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public Builder addEvaluations( + com.google.cloud.workloadmanager.v1.Evaluation.Builder builderForValue) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.add(builderForValue.build()); + onChanged(); + } else { + evaluationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public Builder addEvaluations( + int index, com.google.cloud.workloadmanager.v1.Evaluation.Builder builderForValue) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public Builder addAllEvaluations( + java.lang.Iterable values) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluations_); + onChanged(); + } else { + evaluationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public Builder clearEvaluations() { + if (evaluationsBuilder_ == null) { + evaluations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + evaluationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public Builder removeEvaluations(int index) { + if (evaluationsBuilder_ == null) { + ensureEvaluationsIsMutable(); + evaluations_.remove(index); + onChanged(); + } else { + evaluationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public com.google.cloud.workloadmanager.v1.Evaluation.Builder getEvaluationsBuilder(int index) { + return internalGetEvaluationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public com.google.cloud.workloadmanager.v1.EvaluationOrBuilder getEvaluationsOrBuilder( + int index) { + if (evaluationsBuilder_ == null) { + return evaluations_.get(index); + } else { + return evaluationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public java.util.List + getEvaluationsOrBuilderList() { + if (evaluationsBuilder_ != null) { + return evaluationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluations_); + } + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public com.google.cloud.workloadmanager.v1.Evaluation.Builder addEvaluationsBuilder() { + return internalGetEvaluationsFieldBuilder() + .addBuilder(com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public com.google.cloud.workloadmanager.v1.Evaluation.Builder addEvaluationsBuilder(int index) { + return internalGetEvaluationsFieldBuilder() + .addBuilder(index, com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of evaluations.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + public java.util.List + getEvaluationsBuilderList() { + return internalGetEvaluationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Evaluation, + com.google.cloud.workloadmanager.v1.Evaluation.Builder, + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder> + internalGetEvaluationsFieldBuilder() { + if (evaluationsBuilder_ == null) { + evaluationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Evaluation, + com.google.cloud.workloadmanager.v1.Evaluation.Builder, + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder>( + evaluations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + evaluations_ = null; + } + return evaluationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should 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 identifying a page of results the server should 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 identifying a page of results the server should 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 identifying a page of results the server should 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 identifying a page of results the server should 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; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ListEvaluationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ListEvaluationsResponse) + private static final com.google.cloud.workloadmanager.v1.ListEvaluationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ListEvaluationsResponse(); + } + + public static com.google.cloud.workloadmanager.v1.ListEvaluationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListEvaluationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsResponseOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsResponseOrBuilder.java new file mode 100644 index 000000000000..e7f93c2a5a06 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListEvaluationsResponseOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ListEvaluationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ListEvaluationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of evaluations.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + java.util.List getEvaluationsList(); + + /** + * + * + *
+   * The list of evaluations.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + com.google.cloud.workloadmanager.v1.Evaluation getEvaluations(int index); + + /** + * + * + *
+   * The list of evaluations.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + int getEvaluationsCount(); + + /** + * + * + *
+   * The list of evaluations.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + java.util.List + getEvaluationsOrBuilderList(); + + /** + * + * + *
+   * The list of evaluations.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Evaluation evaluations = 1; + */ + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder getEvaluationsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsRequest.java new file mode 100644 index 000000000000..a93fb8deb030 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsRequest.java @@ -0,0 +1,1090 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the ListExecutionResults RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListExecutionResultsRequest} + */ +@com.google.protobuf.Generated +public final class ListExecutionResultsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ListExecutionResultsRequest) + ListExecutionResultsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListExecutionResultsRequest"); + } + + // Use ListExecutionResultsRequest.newBuilder() to construct. + private ListExecutionResultsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListExecutionResultsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest.class, + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The execution results.
+   * Format: {parent}/evaluations/*/executions/*/results.
+   * 
+ * + * 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. The execution results.
+   * Format: {parent}/evaluations/*/executions/*/results.
+   * 
+ * + * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @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_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @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_ = ""; + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @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.workloadmanager.v1.ListExecutionResultsRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest other = + (com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest) 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.workloadmanager.v1.ListExecutionResultsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListExecutionResults RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListExecutionResultsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ListExecutionResultsRequest) + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest.class, + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest.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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest + getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest build() { + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest buildPartial() { + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest result = + new com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest 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.workloadmanager.v1.ListExecutionResultsRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest other) { + if (other + == com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest.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 execution results.
+     * Format: {parent}/evaluations/*/executions/*/results.
+     * 
+ * + * 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. The execution results.
+     * Format: {parent}/evaluations/*/executions/*/results.
+     * 
+ * + * 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. The execution results.
+     * Format: {parent}/evaluations/*/executions/*/results.
+     * 
+ * + * 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. The execution results.
+     * Format: {parent}/evaluations/*/executions/*/results.
+     * 
+ * + * 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. The execution results.
+     * Format: {parent}/evaluations/*/executions/*/results.
+     * 
+ * + * 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 int pageSize_; + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @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; + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @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.workloadmanager.v1.ListExecutionResultsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ListExecutionResultsRequest) + private static final com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest(); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionResultsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsRequestOrBuilder.java new file mode 100644 index 000000000000..ca260e687e68 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsRequestOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ListExecutionResultsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ListExecutionResultsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The execution results.
+   * Format: {parent}/evaluations/*/executions/*/results.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The execution results.
+   * Format: {parent}/evaluations/*/executions/*/results.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsResponse.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsResponse.java new file mode 100644 index 000000000000..a86845710972 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsResponse.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Response message for the ListExecutionResults RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListExecutionResultsResponse} + */ +@com.google.protobuf.Generated +public final class ListExecutionResultsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ListExecutionResultsResponse) + ListExecutionResultsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListExecutionResultsResponse"); + } + + // Use ListExecutionResultsResponse.newBuilder() to construct. + private ListExecutionResultsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListExecutionResultsResponse() { + executionResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse.class, + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse.Builder.class); + } + + public static final int EXECUTION_RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List executionResults_; + + /** + * + * + *
+   * The versions from the specified publisher.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + @java.lang.Override + public java.util.List + getExecutionResultsList() { + return executionResults_; + } + + /** + * + * + *
+   * The versions from the specified publisher.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + @java.lang.Override + public java.util.List + getExecutionResultsOrBuilderList() { + return executionResults_; + } + + /** + * + * + *
+   * The versions from the specified publisher.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + @java.lang.Override + public int getExecutionResultsCount() { + return executionResults_.size(); + } + + /** + * + * + *
+   * The versions from the specified publisher.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ExecutionResult getExecutionResults(int index) { + return executionResults_.get(index); + } + + /** + * + * + *
+   * The versions from the specified publisher.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ExecutionResultOrBuilder getExecutionResultsOrBuilder( + int index) { + return executionResults_.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 < executionResults_.size(); i++) { + output.writeMessage(1, executionResults_.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 < executionResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, executionResults_.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.workloadmanager.v1.ListExecutionResultsResponse)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse other = + (com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse) obj; + + if (!getExecutionResultsList().equals(other.getExecutionResultsList())) 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 (getExecutionResultsCount() > 0) { + hash = (37 * hash) + EXECUTION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionResultsList().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.workloadmanager.v1.ListExecutionResultsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListExecutionResults RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListExecutionResultsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ListExecutionResultsResponse) + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse.class, + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (executionResultsBuilder_ == null) { + executionResults_ = java.util.Collections.emptyList(); + } else { + executionResults_ = null; + executionResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse + getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse build() { + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse buildPartial() { + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse result = + new com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse result) { + if (executionResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + executionResults_ = java.util.Collections.unmodifiableList(executionResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.executionResults_ = executionResults_; + } else { + result.executionResults_ = executionResultsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse 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.workloadmanager.v1.ListExecutionResultsResponse) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse other) { + if (other + == com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse.getDefaultInstance()) + return this; + if (executionResultsBuilder_ == null) { + if (!other.executionResults_.isEmpty()) { + if (executionResults_.isEmpty()) { + executionResults_ = other.executionResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExecutionResultsIsMutable(); + executionResults_.addAll(other.executionResults_); + } + onChanged(); + } + } else { + if (!other.executionResults_.isEmpty()) { + if (executionResultsBuilder_.isEmpty()) { + executionResultsBuilder_.dispose(); + executionResultsBuilder_ = null; + executionResults_ = other.executionResults_; + bitField0_ = (bitField0_ & ~0x00000001); + executionResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetExecutionResultsFieldBuilder() + : null; + } else { + executionResultsBuilder_.addAllMessages(other.executionResults_); + } + } + } + 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.workloadmanager.v1.ExecutionResult m = + input.readMessage( + com.google.cloud.workloadmanager.v1.ExecutionResult.parser(), + extensionRegistry); + if (executionResultsBuilder_ == null) { + ensureExecutionResultsIsMutable(); + executionResults_.add(m); + } else { + executionResultsBuilder_.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 executionResults_ = + java.util.Collections.emptyList(); + + private void ensureExecutionResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + executionResults_ = + new java.util.ArrayList( + executionResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.ExecutionResult, + com.google.cloud.workloadmanager.v1.ExecutionResult.Builder, + com.google.cloud.workloadmanager.v1.ExecutionResultOrBuilder> + executionResultsBuilder_; + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public java.util.List + getExecutionResultsList() { + if (executionResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executionResults_); + } else { + return executionResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public int getExecutionResultsCount() { + if (executionResultsBuilder_ == null) { + return executionResults_.size(); + } else { + return executionResultsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public com.google.cloud.workloadmanager.v1.ExecutionResult getExecutionResults(int index) { + if (executionResultsBuilder_ == null) { + return executionResults_.get(index); + } else { + return executionResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public Builder setExecutionResults( + int index, com.google.cloud.workloadmanager.v1.ExecutionResult value) { + if (executionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionResultsIsMutable(); + executionResults_.set(index, value); + onChanged(); + } else { + executionResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public Builder setExecutionResults( + int index, com.google.cloud.workloadmanager.v1.ExecutionResult.Builder builderForValue) { + if (executionResultsBuilder_ == null) { + ensureExecutionResultsIsMutable(); + executionResults_.set(index, builderForValue.build()); + onChanged(); + } else { + executionResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public Builder addExecutionResults(com.google.cloud.workloadmanager.v1.ExecutionResult value) { + if (executionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionResultsIsMutable(); + executionResults_.add(value); + onChanged(); + } else { + executionResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public Builder addExecutionResults( + int index, com.google.cloud.workloadmanager.v1.ExecutionResult value) { + if (executionResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionResultsIsMutable(); + executionResults_.add(index, value); + onChanged(); + } else { + executionResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public Builder addExecutionResults( + com.google.cloud.workloadmanager.v1.ExecutionResult.Builder builderForValue) { + if (executionResultsBuilder_ == null) { + ensureExecutionResultsIsMutable(); + executionResults_.add(builderForValue.build()); + onChanged(); + } else { + executionResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public Builder addExecutionResults( + int index, com.google.cloud.workloadmanager.v1.ExecutionResult.Builder builderForValue) { + if (executionResultsBuilder_ == null) { + ensureExecutionResultsIsMutable(); + executionResults_.add(index, builderForValue.build()); + onChanged(); + } else { + executionResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public Builder addAllExecutionResults( + java.lang.Iterable values) { + if (executionResultsBuilder_ == null) { + ensureExecutionResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executionResults_); + onChanged(); + } else { + executionResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public Builder clearExecutionResults() { + if (executionResultsBuilder_ == null) { + executionResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + executionResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public Builder removeExecutionResults(int index) { + if (executionResultsBuilder_ == null) { + ensureExecutionResultsIsMutable(); + executionResults_.remove(index); + onChanged(); + } else { + executionResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public com.google.cloud.workloadmanager.v1.ExecutionResult.Builder getExecutionResultsBuilder( + int index) { + return internalGetExecutionResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public com.google.cloud.workloadmanager.v1.ExecutionResultOrBuilder + getExecutionResultsOrBuilder(int index) { + if (executionResultsBuilder_ == null) { + return executionResults_.get(index); + } else { + return executionResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public java.util.List + getExecutionResultsOrBuilderList() { + if (executionResultsBuilder_ != null) { + return executionResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executionResults_); + } + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public com.google.cloud.workloadmanager.v1.ExecutionResult.Builder + addExecutionResultsBuilder() { + return internalGetExecutionResultsFieldBuilder() + .addBuilder(com.google.cloud.workloadmanager.v1.ExecutionResult.getDefaultInstance()); + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public com.google.cloud.workloadmanager.v1.ExecutionResult.Builder addExecutionResultsBuilder( + int index) { + return internalGetExecutionResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.workloadmanager.v1.ExecutionResult.getDefaultInstance()); + } + + /** + * + * + *
+     * The versions from the specified publisher.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + public java.util.List + getExecutionResultsBuilderList() { + return internalGetExecutionResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.ExecutionResult, + com.google.cloud.workloadmanager.v1.ExecutionResult.Builder, + com.google.cloud.workloadmanager.v1.ExecutionResultOrBuilder> + internalGetExecutionResultsFieldBuilder() { + if (executionResultsBuilder_ == null) { + executionResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.ExecutionResult, + com.google.cloud.workloadmanager.v1.ExecutionResult.Builder, + com.google.cloud.workloadmanager.v1.ExecutionResultOrBuilder>( + executionResults_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + executionResults_ = null; + } + return executionResultsBuilder_; + } + + 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.workloadmanager.v1.ListExecutionResultsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ListExecutionResultsResponse) + private static final com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse(); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionResultsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsResponseOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsResponseOrBuilder.java new file mode 100644 index 000000000000..64bfa46ddd0f --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionResultsResponseOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ListExecutionResultsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ListExecutionResultsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The versions from the specified publisher.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + java.util.List getExecutionResultsList(); + + /** + * + * + *
+   * The versions from the specified publisher.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + com.google.cloud.workloadmanager.v1.ExecutionResult getExecutionResults(int index); + + /** + * + * + *
+   * The versions from the specified publisher.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + int getExecutionResultsCount(); + + /** + * + * + *
+   * The versions from the specified publisher.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + java.util.List + getExecutionResultsOrBuilderList(); + + /** + * + * + *
+   * The versions from the specified publisher.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ExecutionResult execution_results = 1; + */ + com.google.cloud.workloadmanager.v1.ExecutionResultOrBuilder getExecutionResultsOrBuilder( + 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-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsRequest.java new file mode 100644 index 000000000000..fadf95126f90 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsRequest.java @@ -0,0 +1,1286 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the ListExecutions RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListExecutionsRequest} + */ +@com.google.protobuf.Generated +public final class ListExecutionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ListExecutionsRequest) + ListExecutionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListExecutionsRequest"); + } + + // Use ListExecutionsRequest.newBuilder() to construct. + private ListExecutionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListExecutionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListExecutionsRequest.class, + com.google.cloud.workloadmanager.v1.ListExecutionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource prefix of the Execution using the form:
+   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+   * 
+ * + * + * 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 prefix of the Execution using the form:
+   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+   * 
+ * + * + * 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; + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @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_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @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_ = ""; + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @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_ = ""; + + /** + * + * + *
+   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+   * 
+ * + * string order_by = 5; + * + * @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; + } + } + + /** + * + * + *
+   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+   * 
+ * + * string order_by = 5; + * + * @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.workloadmanager.v1.ListExecutionsRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ListExecutionsRequest other = + (com.google.cloud.workloadmanager.v1.ListExecutionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @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.workloadmanager.v1.ListExecutionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.ListExecutionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the ListExecutions RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListExecutionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ListExecutionsRequest) + com.google.cloud.workloadmanager.v1.ListExecutionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListExecutionsRequest.class, + com.google.cloud.workloadmanager.v1.ListExecutionsRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ListExecutionsRequest.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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionsRequest getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ListExecutionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionsRequest build() { + com.google.cloud.workloadmanager.v1.ListExecutionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionsRequest buildPartial() { + com.google.cloud.workloadmanager.v1.ListExecutionsRequest result = + new com.google.cloud.workloadmanager.v1.ListExecutionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ListExecutionsRequest 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.workloadmanager.v1.ListExecutionsRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ListExecutionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ListExecutionsRequest other) { + if (other == com.google.cloud.workloadmanager.v1.ListExecutionsRequest.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 prefix of the Execution using the form:
+     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+     * 
+ * + * + * 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 prefix of the Execution using the form:
+     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+     * 
+ * + * + * 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 prefix of the Execution using the form:
+     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+     * 
+ * + * + * 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 prefix of the Execution using the form:
+     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+     * 
+ * + * + * 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 prefix of the Execution using the form:
+     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+     * 
+ * + * + * 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_; + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @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; + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @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_ = ""; + + /** + * + * + *
+     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+     * 
+ * + * string order_by = 5; + * + * @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; + } + } + + /** + * + * + *
+     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+     * 
+ * + * string order_by = 5; + * + * @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; + } + + /** + * + * + *
+     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ListExecutionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ListExecutionsRequest) + private static final com.google.cloud.workloadmanager.v1.ListExecutionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ListExecutionsRequest(); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsRequestOrBuilder.java new file mode 100644 index 000000000000..6ea3aca70399 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsRequestOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ListExecutionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ListExecutionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource prefix of the Execution using the form:
+   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource prefix of the Execution using the form:
+   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsResponse.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsResponse.java new file mode 100644 index 000000000000..07095e68e0d6 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsResponse.java @@ -0,0 +1,1405 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Response message for the ListExecutions RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListExecutionsResponse} + */ +@com.google.protobuf.Generated +public final class ListExecutionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ListExecutionsResponse) + ListExecutionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListExecutionsResponse"); + } + + // Use ListExecutionsResponse.newBuilder() to construct. + private ListExecutionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListExecutionsResponse() { + executions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListExecutionsResponse.class, + com.google.cloud.workloadmanager.v1.ListExecutionsResponse.Builder.class); + } + + public static final int EXECUTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List executions_; + + /** + * + * + *
+   * The list of Execution.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + @java.lang.Override + public java.util.List getExecutionsList() { + return executions_; + } + + /** + * + * + *
+   * The list of Execution.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + @java.lang.Override + public java.util.List + getExecutionsOrBuilderList() { + return executions_; + } + + /** + * + * + *
+   * The list of Execution.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + @java.lang.Override + public int getExecutionsCount() { + return executions_.size(); + } + + /** + * + * + *
+   * The list of Execution.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution getExecutions(int index) { + return executions_.get(index); + } + + /** + * + * + *
+   * The list of Execution.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ExecutionOrBuilder getExecutionsOrBuilder(int index) { + return executions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should 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 identifying a page of results the server should 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(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + 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 < executions_.size(); i++) { + output.writeMessage(1, executions_.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 < executions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, executions_.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.workloadmanager.v1.ListExecutionsResponse)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ListExecutionsResponse other = + (com.google.cloud.workloadmanager.v1.ListExecutionsResponse) obj; + + if (!getExecutionsList().equals(other.getExecutionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.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 (getExecutionsCount() > 0) { + hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionsList().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.workloadmanager.v1.ListExecutionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.ListExecutionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for the ListExecutions RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListExecutionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ListExecutionsResponse) + com.google.cloud.workloadmanager.v1.ListExecutionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListExecutionsResponse.class, + com.google.cloud.workloadmanager.v1.ListExecutionsResponse.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ListExecutionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + } else { + executions_ = null; + executionsBuilder_.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.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListExecutionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionsResponse getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ListExecutionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionsResponse build() { + com.google.cloud.workloadmanager.v1.ListExecutionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionsResponse buildPartial() { + com.google.cloud.workloadmanager.v1.ListExecutionsResponse result = + new com.google.cloud.workloadmanager.v1.ListExecutionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.workloadmanager.v1.ListExecutionsResponse result) { + if (executionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.executions_ = executions_; + } else { + result.executions_ = executionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ListExecutionsResponse 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.workloadmanager.v1.ListExecutionsResponse) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ListExecutionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ListExecutionsResponse other) { + if (other == com.google.cloud.workloadmanager.v1.ListExecutionsResponse.getDefaultInstance()) + return this; + if (executionsBuilder_ == null) { + if (!other.executions_.isEmpty()) { + if (executions_.isEmpty()) { + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExecutionsIsMutable(); + executions_.addAll(other.executions_); + } + onChanged(); + } + } else { + if (!other.executions_.isEmpty()) { + if (executionsBuilder_.isEmpty()) { + executionsBuilder_.dispose(); + executionsBuilder_ = null; + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + executionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetExecutionsFieldBuilder() + : null; + } else { + executionsBuilder_.addAllMessages(other.executions_); + } + } + } + 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.workloadmanager.v1.Execution m = + input.readMessage( + com.google.cloud.workloadmanager.v1.Execution.parser(), extensionRegistry); + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(m); + } else { + executionsBuilder_.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 executions_ = + java.util.Collections.emptyList(); + + private void ensureExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + executions_ = + new java.util.ArrayList(executions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution, + com.google.cloud.workloadmanager.v1.Execution.Builder, + com.google.cloud.workloadmanager.v1.ExecutionOrBuilder> + executionsBuilder_; + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + if (executionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executions_); + } else { + return executionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public int getExecutionsCount() { + if (executionsBuilder_ == null) { + return executions_.size(); + } else { + return executionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public com.google.cloud.workloadmanager.v1.Execution getExecutions(int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public Builder setExecutions(int index, com.google.cloud.workloadmanager.v1.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.set(index, value); + onChanged(); + } else { + executionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public Builder setExecutions( + int index, com.google.cloud.workloadmanager.v1.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.set(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public Builder addExecutions(com.google.cloud.workloadmanager.v1.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(value); + onChanged(); + } else { + executionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public Builder addExecutions(int index, com.google.cloud.workloadmanager.v1.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(index, value); + onChanged(); + } else { + executionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public Builder addExecutions( + com.google.cloud.workloadmanager.v1.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public Builder addExecutions( + int index, com.google.cloud.workloadmanager.v1.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public Builder addAllExecutions( + java.lang.Iterable values) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executions_); + onChanged(); + } else { + executionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public Builder clearExecutions() { + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + executionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public Builder removeExecutions(int index) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.remove(index); + onChanged(); + } else { + executionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public com.google.cloud.workloadmanager.v1.Execution.Builder getExecutionsBuilder(int index) { + return internalGetExecutionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public com.google.cloud.workloadmanager.v1.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + if (executionsBuilder_ != null) { + return executionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executions_); + } + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public com.google.cloud.workloadmanager.v1.Execution.Builder addExecutionsBuilder() { + return internalGetExecutionsFieldBuilder() + .addBuilder(com.google.cloud.workloadmanager.v1.Execution.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public com.google.cloud.workloadmanager.v1.Execution.Builder addExecutionsBuilder(int index) { + return internalGetExecutionsFieldBuilder() + .addBuilder(index, com.google.cloud.workloadmanager.v1.Execution.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Execution.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + public java.util.List + getExecutionsBuilderList() { + return internalGetExecutionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution, + com.google.cloud.workloadmanager.v1.Execution.Builder, + com.google.cloud.workloadmanager.v1.ExecutionOrBuilder> + internalGetExecutionsFieldBuilder() { + if (executionsBuilder_ == null) { + executionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution, + com.google.cloud.workloadmanager.v1.Execution.Builder, + com.google.cloud.workloadmanager.v1.ExecutionOrBuilder>( + executions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + executions_ = null; + } + return executionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should 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 identifying a page of results the server should 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 identifying a page of results the server should 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 identifying a page of results the server should 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 identifying a page of results the server should 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; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ListExecutionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ListExecutionsResponse) + private static final com.google.cloud.workloadmanager.v1.ListExecutionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ListExecutionsResponse(); + } + + public static com.google.cloud.workloadmanager.v1.ListExecutionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListExecutionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsResponseOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsResponseOrBuilder.java new file mode 100644 index 000000000000..6b50da71adfb --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListExecutionsResponseOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ListExecutionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ListExecutionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Execution.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + java.util.List getExecutionsList(); + + /** + * + * + *
+   * The list of Execution.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + com.google.cloud.workloadmanager.v1.Execution getExecutions(int index); + + /** + * + * + *
+   * The list of Execution.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + int getExecutionsCount(); + + /** + * + * + *
+   * The list of Execution.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + java.util.List + getExecutionsOrBuilderList(); + + /** + * + * + *
+   * The list of Execution.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Execution executions = 1; + */ + com.google.cloud.workloadmanager.v1.ExecutionOrBuilder getExecutionsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesRequest.java new file mode 100644 index 000000000000..1ae3b43d91cd --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesRequest.java @@ -0,0 +1,1484 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the ListRules RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListRulesRequest} + */ +@com.google.protobuf.Generated +public final class ListRulesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ListRulesRequest) + ListRulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListRulesRequest"); + } + + // Use ListRulesRequest.newBuilder() to construct. + private ListRulesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListRulesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + customRulesBucket_ = ""; + evaluationType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListRulesRequest.class, + com.google.cloud.workloadmanager.v1.ListRulesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The [project] on which to execute the request. The format is:
+   * projects/{project_id}/locations/{location}
+   * Currently, the pre-defined rules are global available to all projects and
+   * all regions.
+   * 
+ * + * + * 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] on which to execute the request. The format is:
+   * projects/{project_id}/locations/{location}
+   * Currently, the pre-defined rules are global available to all projects and
+   * all regions.
+   * 
+ * + * + * 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; + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @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_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @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_ = ""; + + /** + * + * + *
+   * Filter based on primary_category, secondary_category.
+   * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+   * Filter based on primary_category, secondary_category.
+   * 
+ * + * string filter = 4; + * + * @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 CUSTOM_RULES_BUCKET_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object customRulesBucket_ = ""; + + /** + * + * + *
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * string custom_rules_bucket = 5; + * + * @return The customRulesBucket. + */ + @java.lang.Override + public java.lang.String getCustomRulesBucket() { + java.lang.Object ref = customRulesBucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customRulesBucket_ = s; + return s; + } + } + + /** + * + * + *
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * string custom_rules_bucket = 5; + * + * @return The bytes for customRulesBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomRulesBucketBytes() { + java.lang.Object ref = customRulesBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customRulesBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVALUATION_TYPE_FIELD_NUMBER = 6; + private int evaluationType_ = 0; + + /** + * + * + *
+   * Optional. The evaluation type of the rules will be applied to.
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationType. + */ + @java.lang.Override + public int getEvaluationTypeValue() { + return evaluationType_; + } + + /** + * + * + *
+   * Optional. The evaluation type of the rules will be applied to.
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationType. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType getEvaluationType() { + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType result = + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.forNumber(evaluationType_); + return result == null + ? com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.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(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(customRulesBucket_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, customRulesBucket_); + } + if (evaluationType_ + != com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.EVALUATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, evaluationType_); + } + 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(customRulesBucket_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, customRulesBucket_); + } + if (evaluationType_ + != com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.EVALUATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, evaluationType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.ListRulesRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ListRulesRequest other = + (com.google.cloud.workloadmanager.v1.ListRulesRequest) 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 (!getCustomRulesBucket().equals(other.getCustomRulesBucket())) return false; + if (evaluationType_ != other.evaluationType_) return false; + if (!getUnknownFields().equals(other.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) + CUSTOM_RULES_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getCustomRulesBucket().hashCode(); + hash = (37 * hash) + EVALUATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + evaluationType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.ListRulesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListRules RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListRulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ListRulesRequest) + com.google.cloud.workloadmanager.v1.ListRulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListRulesRequest.class, + com.google.cloud.workloadmanager.v1.ListRulesRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ListRulesRequest.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_ = ""; + customRulesBucket_ = ""; + evaluationType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListRulesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListRulesRequest getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ListRulesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListRulesRequest build() { + com.google.cloud.workloadmanager.v1.ListRulesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListRulesRequest buildPartial() { + com.google.cloud.workloadmanager.v1.ListRulesRequest result = + new com.google.cloud.workloadmanager.v1.ListRulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ListRulesRequest 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.customRulesBucket_ = customRulesBucket_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.evaluationType_ = evaluationType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.ListRulesRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ListRulesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ListRulesRequest other) { + if (other == com.google.cloud.workloadmanager.v1.ListRulesRequest.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.getCustomRulesBucket().isEmpty()) { + customRulesBucket_ = other.customRulesBucket_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.evaluationType_ != 0) { + setEvaluationTypeValue(other.getEvaluationTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + customRulesBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + evaluationType_ = input.readEnum(); + 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 parent_ = ""; + + /** + * + * + *
+     * Required. The [project] on which to execute the request. The format is:
+     * projects/{project_id}/locations/{location}
+     * Currently, the pre-defined rules are global available to all projects and
+     * all regions.
+     * 
+ * + * + * 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] on which to execute the request. The format is:
+     * projects/{project_id}/locations/{location}
+     * Currently, the pre-defined rules are global available to all projects and
+     * all regions.
+     * 
+ * + * + * 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] on which to execute the request. The format is:
+     * projects/{project_id}/locations/{location}
+     * Currently, the pre-defined rules are global available to all projects and
+     * all regions.
+     * 
+ * + * + * 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] on which to execute the request. The format is:
+     * projects/{project_id}/locations/{location}
+     * Currently, the pre-defined rules are global available to all projects and
+     * all regions.
+     * 
+ * + * + * 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] on which to execute the request. The format is:
+     * projects/{project_id}/locations/{location}
+     * Currently, the pre-defined rules are global available to all projects and
+     * all regions.
+     * 
+ * + * + * 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_; + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filter based on primary_category, secondary_category.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Filter based on primary_category, secondary_category.
+     * 
+ * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
+     * Filter based on primary_category, secondary_category.
+     * 
+ * + * string filter = 4; + * + * @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; + } + + /** + * + * + *
+     * Filter based on primary_category, secondary_category.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter based on primary_category, secondary_category.
+     * 
+ * + * string filter = 4; + * + * @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 customRulesBucket_ = ""; + + /** + * + * + *
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * string custom_rules_bucket = 5; + * + * @return The customRulesBucket. + */ + public java.lang.String getCustomRulesBucket() { + java.lang.Object ref = customRulesBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customRulesBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * string custom_rules_bucket = 5; + * + * @return The bytes for customRulesBucket. + */ + public com.google.protobuf.ByteString getCustomRulesBucketBytes() { + java.lang.Object ref = customRulesBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customRulesBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * string custom_rules_bucket = 5; + * + * @param value The customRulesBucket to set. + * @return This builder for chaining. + */ + public Builder setCustomRulesBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customRulesBucket_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * string custom_rules_bucket = 5; + * + * @return This builder for chaining. + */ + public Builder clearCustomRulesBucket() { + customRulesBucket_ = getDefaultInstance().getCustomRulesBucket(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * string custom_rules_bucket = 5; + * + * @param value The bytes for customRulesBucket to set. + * @return This builder for chaining. + */ + public Builder setCustomRulesBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customRulesBucket_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int evaluationType_ = 0; + + /** + * + * + *
+     * Optional. The evaluation type of the rules will be applied to.
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationType. + */ + @java.lang.Override + public int getEvaluationTypeValue() { + return evaluationType_; + } + + /** + * + * + *
+     * Optional. The evaluation type of the rules will be applied to.
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for evaluationType to set. + * @return This builder for chaining. + */ + public Builder setEvaluationTypeValue(int value) { + evaluationType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The evaluation type of the rules will be applied to.
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationType. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType getEvaluationType() { + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType result = + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.forNumber(evaluationType_); + return result == null + ? com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The evaluation type of the rules will be applied to.
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The evaluationType to set. + * @return This builder for chaining. + */ + public Builder setEvaluationType( + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + evaluationType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The evaluation type of the rules will be applied to.
+     * The Cloud Storage bucket name for custom rules.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluationType() { + bitField0_ = (bitField0_ & ~0x00000020); + evaluationType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ListRulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ListRulesRequest) + private static final com.google.cloud.workloadmanager.v1.ListRulesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ListRulesRequest(); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListRulesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesRequestOrBuilder.java new file mode 100644 index 000000000000..b175d3634c30 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesRequestOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ListRulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ListRulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [project] on which to execute the request. The format is:
+   * projects/{project_id}/locations/{location}
+   * Currently, the pre-defined rules are global available to all projects and
+   * all regions.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The [project] on which to execute the request. The format is:
+   * projects/{project_id}/locations/{location}
+   * Currently, the pre-defined rules are global available to all projects and
+   * all regions.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter based on primary_category, secondary_category.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filter based on primary_category, secondary_category.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * string custom_rules_bucket = 5; + * + * @return The customRulesBucket. + */ + java.lang.String getCustomRulesBucket(); + + /** + * + * + *
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * string custom_rules_bucket = 5; + * + * @return The bytes for customRulesBucket. + */ + com.google.protobuf.ByteString getCustomRulesBucketBytes(); + + /** + * + * + *
+   * Optional. The evaluation type of the rules will be applied to.
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationType. + */ + int getEvaluationTypeValue(); + + /** + * + * + *
+   * Optional. The evaluation type of the rules will be applied to.
+   * The Cloud Storage bucket name for custom rules.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation.EvaluationType evaluation_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationType. + */ + com.google.cloud.workloadmanager.v1.Evaluation.EvaluationType getEvaluationType(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesResponse.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesResponse.java new file mode 100644 index 000000000000..ceb0445323b7 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesResponse.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Response message for the ListRules RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListRulesResponse} + */ +@com.google.protobuf.Generated +public final class ListRulesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ListRulesResponse) + ListRulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListRulesResponse"); + } + + // Use ListRulesResponse.newBuilder() to construct. + private ListRulesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListRulesResponse() { + rules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListRulesResponse.class, + com.google.cloud.workloadmanager.v1.ListRulesResponse.Builder.class); + } + + public static final int RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List rules_; + + /** + * + * + *
+   * All rules in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + + /** + * + * + *
+   * All rules in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + + /** + * + * + *
+   * All rules in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
+   * All rules in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Rule getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
+   * All rules in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleOrBuilder getRulesOrBuilder(int index) { + return rules_.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 < rules_.size(); i++) { + output.writeMessage(1, rules_.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 < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.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.workloadmanager.v1.ListRulesResponse)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ListRulesResponse other = + (com.google.cloud.workloadmanager.v1.ListRulesResponse) obj; + + if (!getRulesList().equals(other.getRulesList())) return false; + if (!getUnknownFields().equals(other.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 (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.ListRulesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListRules RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListRulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ListRulesResponse) + com.google.cloud.workloadmanager.v1.ListRulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListRulesResponse.class, + com.google.cloud.workloadmanager.v1.ListRulesResponse.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ListRulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListRulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListRulesResponse getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ListRulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListRulesResponse build() { + com.google.cloud.workloadmanager.v1.ListRulesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListRulesResponse buildPartial() { + com.google.cloud.workloadmanager.v1.ListRulesResponse result = + new com.google.cloud.workloadmanager.v1.ListRulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.workloadmanager.v1.ListRulesResponse result) { + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ListRulesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.ListRulesResponse) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ListRulesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ListRulesResponse other) { + if (other == com.google.cloud.workloadmanager.v1.ListRulesResponse.getDefaultInstance()) + return this; + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.workloadmanager.v1.Rule m = + input.readMessage( + com.google.cloud.workloadmanager.v1.Rule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.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 rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Rule, + com.google.cloud.workloadmanager.v1.Rule.Builder, + com.google.cloud.workloadmanager.v1.RuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public com.google.cloud.workloadmanager.v1.Rule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public Builder setRules(int index, com.google.cloud.workloadmanager.v1.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public Builder setRules( + int index, com.google.cloud.workloadmanager.v1.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public Builder addRules(com.google.cloud.workloadmanager.v1.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public Builder addRules(int index, com.google.cloud.workloadmanager.v1.Rule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public Builder addRules(com.google.cloud.workloadmanager.v1.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public Builder addRules( + int index, com.google.cloud.workloadmanager.v1.Rule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public com.google.cloud.workloadmanager.v1.Rule.Builder getRulesBuilder(int index) { + return internalGetRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public com.google.cloud.workloadmanager.v1.RuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public com.google.cloud.workloadmanager.v1.Rule.Builder addRulesBuilder() { + return internalGetRulesFieldBuilder() + .addBuilder(com.google.cloud.workloadmanager.v1.Rule.getDefaultInstance()); + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public com.google.cloud.workloadmanager.v1.Rule.Builder addRulesBuilder(int index) { + return internalGetRulesFieldBuilder() + .addBuilder(index, com.google.cloud.workloadmanager.v1.Rule.getDefaultInstance()); + } + + /** + * + * + *
+     * All rules in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + public java.util.List getRulesBuilderList() { + return internalGetRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Rule, + com.google.cloud.workloadmanager.v1.Rule.Builder, + com.google.cloud.workloadmanager.v1.RuleOrBuilder> + internalGetRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.Rule, + com.google.cloud.workloadmanager.v1.Rule.Builder, + com.google.cloud.workloadmanager.v1.RuleOrBuilder>( + rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ListRulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ListRulesResponse) + private static final com.google.cloud.workloadmanager.v1.ListRulesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ListRulesResponse(); + } + + public static com.google.cloud.workloadmanager.v1.ListRulesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListRulesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesResponseOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesResponseOrBuilder.java new file mode 100644 index 000000000000..b624190a468c --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListRulesResponseOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ListRulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ListRulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * All rules in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + java.util.List getRulesList(); + + /** + * + * + *
+   * All rules in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + com.google.cloud.workloadmanager.v1.Rule getRules(int index); + + /** + * + * + *
+   * All rules in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + int getRulesCount(); + + /** + * + * + *
+   * All rules in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + java.util.List + getRulesOrBuilderList(); + + /** + * + * + *
+   * All rules in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.Rule rules = 1; + */ + com.google.cloud.workloadmanager.v1.RuleOrBuilder getRulesOrBuilder(int index); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesRequest.java new file mode 100644 index 000000000000..ca9ef1fe9a8e --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesRequest.java @@ -0,0 +1,1461 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the ListScannedResources RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListScannedResourcesRequest} + */ +@com.google.protobuf.Generated +public final class ListScannedResourcesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ListScannedResourcesRequest) + ListScannedResourcesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScannedResourcesRequest"); + } + + // Use ListScannedResourcesRequest.newBuilder() to construct. + private ListScannedResourcesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScannedResourcesRequest() { + parent_ = ""; + rule_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest.class, + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent for ListScannedResourcesRequest.
+   * 
+ * + * 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 for ListScannedResourcesRequest.
+   * 
+ * + * 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 RULE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rule_ = ""; + + /** + * + * + *
+   * Rule name.
+   * 
+ * + * string rule = 2; + * + * @return The rule. + */ + @java.lang.Override + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } + } + + /** + * + * + *
+   * Rule name.
+   * 
+ * + * string rule = 2; + * + * @return The bytes for rule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 3; + * + * @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_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 5; + * + * @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; + } + } + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 5; + * + * @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 = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+   * 
+ * + * string order_by = 6; + * + * @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; + } + } + + /** + * + * + *
+   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+   * 
+ * + * string order_by = 6; + * + * @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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rule_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rule_); + } + 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_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, 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.workloadmanager.v1.ListScannedResourcesRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest other = + (com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRule().equals(other.getRule())) 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) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().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.workloadmanager.v1.ListScannedResourcesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListScannedResources RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListScannedResourcesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ListScannedResourcesRequest) + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest.class, + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rule_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest + getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest build() { + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest buildPartial() { + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest result = + new com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rule_ = rule_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest other) { + if (other + == com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRule().isEmpty()) { + rule_ = other.rule_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + 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: + { + rule_ = 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 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + orderBy_ = 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 for ListScannedResourcesRequest.
+     * 
+ * + * 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 for ListScannedResourcesRequest.
+     * 
+ * + * 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 for ListScannedResourcesRequest.
+     * 
+ * + * 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 for ListScannedResourcesRequest.
+     * 
+ * + * 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 for ListScannedResourcesRequest.
+     * 
+ * + * 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 rule_ = ""; + + /** + * + * + *
+     * Rule name.
+     * 
+ * + * string rule = 2; + * + * @return The rule. + */ + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Rule name.
+     * 
+ * + * string rule = 2; + * + * @return The bytes for rule. + */ + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Rule name.
+     * 
+ * + * string rule = 2; + * + * @param value The rule to set. + * @return This builder for chaining. + */ + public Builder setRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Rule name.
+     * 
+ * + * string rule = 2; + * + * @return This builder for chaining. + */ + public Builder clearRule() { + rule_ = getDefaultInstance().getRule(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Rule name.
+     * 
+ * + * string rule = 2; + * + * @param value The bytes for rule to set. + * @return This builder for chaining. + */ + public Builder setRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 5; + * + * @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; + } + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 5; + * + * @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; + } + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 5; + * + * @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; + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 5; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 5; + * + * @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; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+     * 
+ * + * string order_by = 6; + * + * @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; + } + } + + /** + * + * + *
+     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+     * 
+ * + * string order_by = 6; + * + * @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; + } + } + + /** + * + * + *
+     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+     * 
+ * + * string order_by = 6; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+     * 
+ * + * string order_by = 6; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+     * 
+ * + * string order_by = 6; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ListScannedResourcesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ListScannedResourcesRequest) + private static final com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest(); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScannedResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesRequestOrBuilder.java new file mode 100644 index 000000000000..42ca8d34bff4 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesRequestOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ListScannedResourcesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ListScannedResourcesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent for ListScannedResourcesRequest.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent for ListScannedResourcesRequest.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Rule name.
+   * 
+ * + * string rule = 2; + * + * @return The rule. + */ + java.lang.String getRule(); + + /** + * + * + *
+   * Rule name.
+   * 
+ * + * string rule = 2; + * + * @return The bytes for rule. + */ + com.google.protobuf.ByteString getRuleBytes(); + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 5; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 5; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+   * 
+ * + * string order_by = 6; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
+   * 
+ * + * string order_by = 6; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesResponse.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesResponse.java new file mode 100644 index 000000000000..8a4444bd57a6 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesResponse.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Response message for the ListScannedResources RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListScannedResourcesResponse} + */ +@com.google.protobuf.Generated +public final class ListScannedResourcesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ListScannedResourcesResponse) + ListScannedResourcesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScannedResourcesResponse"); + } + + // Use ListScannedResourcesResponse.newBuilder() to construct. + private ListScannedResourcesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScannedResourcesResponse() { + scannedResources_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse.class, + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse.Builder.class); + } + + public static final int SCANNED_RESOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List scannedResources_; + + /** + * + * + *
+   * All scanned resources in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + @java.lang.Override + public java.util.List + getScannedResourcesList() { + return scannedResources_; + } + + /** + * + * + *
+   * All scanned resources in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + @java.lang.Override + public java.util.List + getScannedResourcesOrBuilderList() { + return scannedResources_; + } + + /** + * + * + *
+   * All scanned resources in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + @java.lang.Override + public int getScannedResourcesCount() { + return scannedResources_.size(); + } + + /** + * + * + *
+   * All scanned resources in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ScannedResource getScannedResources(int index) { + return scannedResources_.get(index); + } + + /** + * + * + *
+   * All scanned resources in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ScannedResourceOrBuilder getScannedResourcesOrBuilder( + int index) { + return scannedResources_.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 < scannedResources_.size(); i++) { + output.writeMessage(1, scannedResources_.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 < scannedResources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scannedResources_.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.workloadmanager.v1.ListScannedResourcesResponse)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse other = + (com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse) obj; + + if (!getScannedResourcesList().equals(other.getScannedResourcesList())) 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 (getScannedResourcesCount() > 0) { + hash = (37 * hash) + SCANNED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getScannedResourcesList().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.workloadmanager.v1.ListScannedResourcesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListScannedResources RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ListScannedResourcesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ListScannedResourcesResponse) + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse.class, + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (scannedResourcesBuilder_ == null) { + scannedResources_ = java.util.Collections.emptyList(); + } else { + scannedResources_ = null; + scannedResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse + getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse build() { + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse buildPartial() { + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse result = + new com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse result) { + if (scannedResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + scannedResources_ = java.util.Collections.unmodifiableList(scannedResources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.scannedResources_ = scannedResources_; + } else { + result.scannedResources_ = scannedResourcesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse 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.workloadmanager.v1.ListScannedResourcesResponse) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse other) { + if (other + == com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse.getDefaultInstance()) + return this; + if (scannedResourcesBuilder_ == null) { + if (!other.scannedResources_.isEmpty()) { + if (scannedResources_.isEmpty()) { + scannedResources_ = other.scannedResources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureScannedResourcesIsMutable(); + scannedResources_.addAll(other.scannedResources_); + } + onChanged(); + } + } else { + if (!other.scannedResources_.isEmpty()) { + if (scannedResourcesBuilder_.isEmpty()) { + scannedResourcesBuilder_.dispose(); + scannedResourcesBuilder_ = null; + scannedResources_ = other.scannedResources_; + bitField0_ = (bitField0_ & ~0x00000001); + scannedResourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetScannedResourcesFieldBuilder() + : null; + } else { + scannedResourcesBuilder_.addAllMessages(other.scannedResources_); + } + } + } + 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.workloadmanager.v1.ScannedResource m = + input.readMessage( + com.google.cloud.workloadmanager.v1.ScannedResource.parser(), + extensionRegistry); + if (scannedResourcesBuilder_ == null) { + ensureScannedResourcesIsMutable(); + scannedResources_.add(m); + } else { + scannedResourcesBuilder_.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 scannedResources_ = + java.util.Collections.emptyList(); + + private void ensureScannedResourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + scannedResources_ = + new java.util.ArrayList( + scannedResources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.ScannedResource, + com.google.cloud.workloadmanager.v1.ScannedResource.Builder, + com.google.cloud.workloadmanager.v1.ScannedResourceOrBuilder> + scannedResourcesBuilder_; + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public java.util.List + getScannedResourcesList() { + if (scannedResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(scannedResources_); + } else { + return scannedResourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public int getScannedResourcesCount() { + if (scannedResourcesBuilder_ == null) { + return scannedResources_.size(); + } else { + return scannedResourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public com.google.cloud.workloadmanager.v1.ScannedResource getScannedResources(int index) { + if (scannedResourcesBuilder_ == null) { + return scannedResources_.get(index); + } else { + return scannedResourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public Builder setScannedResources( + int index, com.google.cloud.workloadmanager.v1.ScannedResource value) { + if (scannedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScannedResourcesIsMutable(); + scannedResources_.set(index, value); + onChanged(); + } else { + scannedResourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public Builder setScannedResources( + int index, com.google.cloud.workloadmanager.v1.ScannedResource.Builder builderForValue) { + if (scannedResourcesBuilder_ == null) { + ensureScannedResourcesIsMutable(); + scannedResources_.set(index, builderForValue.build()); + onChanged(); + } else { + scannedResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public Builder addScannedResources(com.google.cloud.workloadmanager.v1.ScannedResource value) { + if (scannedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScannedResourcesIsMutable(); + scannedResources_.add(value); + onChanged(); + } else { + scannedResourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public Builder addScannedResources( + int index, com.google.cloud.workloadmanager.v1.ScannedResource value) { + if (scannedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScannedResourcesIsMutable(); + scannedResources_.add(index, value); + onChanged(); + } else { + scannedResourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public Builder addScannedResources( + com.google.cloud.workloadmanager.v1.ScannedResource.Builder builderForValue) { + if (scannedResourcesBuilder_ == null) { + ensureScannedResourcesIsMutable(); + scannedResources_.add(builderForValue.build()); + onChanged(); + } else { + scannedResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public Builder addScannedResources( + int index, com.google.cloud.workloadmanager.v1.ScannedResource.Builder builderForValue) { + if (scannedResourcesBuilder_ == null) { + ensureScannedResourcesIsMutable(); + scannedResources_.add(index, builderForValue.build()); + onChanged(); + } else { + scannedResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public Builder addAllScannedResources( + java.lang.Iterable values) { + if (scannedResourcesBuilder_ == null) { + ensureScannedResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scannedResources_); + onChanged(); + } else { + scannedResourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public Builder clearScannedResources() { + if (scannedResourcesBuilder_ == null) { + scannedResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + scannedResourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public Builder removeScannedResources(int index) { + if (scannedResourcesBuilder_ == null) { + ensureScannedResourcesIsMutable(); + scannedResources_.remove(index); + onChanged(); + } else { + scannedResourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public com.google.cloud.workloadmanager.v1.ScannedResource.Builder getScannedResourcesBuilder( + int index) { + return internalGetScannedResourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public com.google.cloud.workloadmanager.v1.ScannedResourceOrBuilder + getScannedResourcesOrBuilder(int index) { + if (scannedResourcesBuilder_ == null) { + return scannedResources_.get(index); + } else { + return scannedResourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public java.util.List + getScannedResourcesOrBuilderList() { + if (scannedResourcesBuilder_ != null) { + return scannedResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(scannedResources_); + } + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public com.google.cloud.workloadmanager.v1.ScannedResource.Builder + addScannedResourcesBuilder() { + return internalGetScannedResourcesFieldBuilder() + .addBuilder(com.google.cloud.workloadmanager.v1.ScannedResource.getDefaultInstance()); + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public com.google.cloud.workloadmanager.v1.ScannedResource.Builder addScannedResourcesBuilder( + int index) { + return internalGetScannedResourcesFieldBuilder() + .addBuilder( + index, com.google.cloud.workloadmanager.v1.ScannedResource.getDefaultInstance()); + } + + /** + * + * + *
+     * All scanned resources in response.
+     * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + public java.util.List + getScannedResourcesBuilderList() { + return internalGetScannedResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.ScannedResource, + com.google.cloud.workloadmanager.v1.ScannedResource.Builder, + com.google.cloud.workloadmanager.v1.ScannedResourceOrBuilder> + internalGetScannedResourcesFieldBuilder() { + if (scannedResourcesBuilder_ == null) { + scannedResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.ScannedResource, + com.google.cloud.workloadmanager.v1.ScannedResource.Builder, + com.google.cloud.workloadmanager.v1.ScannedResourceOrBuilder>( + scannedResources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + scannedResources_ = null; + } + return scannedResourcesBuilder_; + } + + 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.workloadmanager.v1.ListScannedResourcesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ListScannedResourcesResponse) + private static final com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse(); + } + + public static com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScannedResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesResponseOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesResponseOrBuilder.java new file mode 100644 index 000000000000..0c09fc20e1f8 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ListScannedResourcesResponseOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ListScannedResourcesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ListScannedResourcesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * All scanned resources in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + java.util.List getScannedResourcesList(); + + /** + * + * + *
+   * All scanned resources in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + com.google.cloud.workloadmanager.v1.ScannedResource getScannedResources(int index); + + /** + * + * + *
+   * All scanned resources in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + int getScannedResourcesCount(); + + /** + * + * + *
+   * All scanned resources in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + java.util.List + getScannedResourcesOrBuilderList(); + + /** + * + * + *
+   * All scanned resources in response.
+   * 
+ * + * repeated .google.cloud.workloadmanager.v1.ScannedResource scanned_resources = 1; + */ + com.google.cloud.workloadmanager.v1.ScannedResourceOrBuilder getScannedResourcesOrBuilder( + 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-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/LocationName.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/LocationName.java new file mode 100644 index 000000000000..0ba4f847ad42 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/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.workloadmanager.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-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/OperationMetadata.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/OperationMetadata.java new file mode 100644 index 000000000000..8a6d21143185 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/OperationMetadata.java @@ -0,0 +1,1870 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Represents the metadata of the long-running operation.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.OperationMetadata} + */ +@com.google.protobuf.Generated +public final class OperationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.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() { + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.OperationMetadata.class, + com.google.cloud.workloadmanager.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 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 VERB_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object verb_ = ""; + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.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 = 5 [(.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 = 6; + private boolean requestedCancellation_ = false; + + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiVersion_ = ""; + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = 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, 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, apiVersion_); + } + 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, apiVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.OperationMetadata other = + (com.google.cloud.workloadmanager.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 (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getUnknownFields().equals(other.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) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().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 = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.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.workloadmanager.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.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.workloadmanager.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.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.workloadmanager.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.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.workloadmanager.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.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.workloadmanager.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.workloadmanager.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.workloadmanager.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.workloadmanager.v1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.OperationMetadata) + com.google.cloud.workloadmanager.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.OperationMetadata.class, + com.google.cloud.workloadmanager.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.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; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.OperationMetadata build() { + com.google.cloud.workloadmanager.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.OperationMetadata buildPartial() { + com.google.cloud.workloadmanager.v1.OperationMetadata result = + new com.google.cloud.workloadmanager.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.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.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apiVersion_ = apiVersion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.workloadmanager.v1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.OperationMetadata other) { + if (other == com.google.cloud.workloadmanager.v1.OperationMetadata.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.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + 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: + { + 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 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + 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.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 java.lang.Object verb_ = ""; + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVerb() { + verb_ = getDefaultInstance().getVerb(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.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 = 5 [(.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 = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.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_ |= 0x00000010; + 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 [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.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 [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000020); + requestedCancellation_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.OperationMetadata) + private static final com.google.cloud.workloadmanager.v1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.OperationMetadata(); + } + + public static com.google.cloud.workloadmanager.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.workloadmanager.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/OperationMetadataOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..e7e93fb2beea --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,229 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.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. 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(); + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + java.lang.String getVerb(); + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + com.google.protobuf.ByteString getVerbBytes(); + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.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 = 5 [(.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 [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString getApiVersionBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Resource.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Resource.java new file mode 100644 index 000000000000..84814c24537f --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Resource.java @@ -0,0 +1,973 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Resource in execution result.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Resource} + */ +@com.google.protobuf.Generated +public final class Resource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.Resource) + ResourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Resource"); + } + + // Use Resource.newBuilder() to construct. + private Resource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Resource() { + type_ = ""; + name_ = ""; + serviceAccount_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Resource.class, + com.google.cloud.workloadmanager.v1.Resource.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * The type of resource.
+   * 
+ * + * string type = 1; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * The type of resource.
+   * 
+ * + * string type = 1; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = 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_ = ""; + + /** + * + * + *
+   * The name of the resource.
+   * 
+ * + * string name = 2; + * + * @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 name of the resource.
+   * 
+ * + * string name = 2; + * + * @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 SERVICE_ACCOUNT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+   * The service account associated with the resource.
+   * 
+ * + * string service_account = 3; + * + * @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; + } + } + + /** + * + * + *
+   * The service account associated with the resource.
+   * 
+ * + * string service_account = 3; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, serviceAccount_); + } + 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(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, serviceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.Resource)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.Resource other = + (com.google.cloud.workloadmanager.v1.Resource) obj; + + if (!getType().equals(other.getType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getUnknownFields().equals(other.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) + getType().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.Resource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Resource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.Resource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Resource in execution result.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Resource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.Resource) + com.google.cloud.workloadmanager.v1.ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Resource.class, + com.google.cloud.workloadmanager.v1.Resource.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.Resource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = ""; + name_ = ""; + serviceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Resource_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Resource getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.Resource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Resource build() { + com.google.cloud.workloadmanager.v1.Resource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Resource buildPartial() { + com.google.cloud.workloadmanager.v1.Resource result = + new com.google.cloud.workloadmanager.v1.Resource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.Resource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.Resource) { + return mergeFrom((com.google.cloud.workloadmanager.v1.Resource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.Resource other) { + if (other == com.google.cloud.workloadmanager.v1.Resource.getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + 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: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + serviceAccount_ = 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 type_ = ""; + + /** + * + * + *
+     * The type of resource.
+     * 
+ * + * string type = 1; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The type of resource.
+     * 
+ * + * string type = 1; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The type of resource.
+     * 
+ * + * string type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of resource.
+     * 
+ * + * string type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of resource.
+     * 
+ * + * string type = 1; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * The name of the resource.
+     * 
+ * + * string name = 2; + * + * @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 name of the resource.
+     * 
+ * + * string name = 2; + * + * @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 name of the resource.
+     * 
+ * + * string name = 2; + * + * @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 name of the resource.
+     * 
+ * + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the resource.
+     * 
+ * + * string name = 2; + * + * @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 serviceAccount_ = ""; + + /** + * + * + *
+     * The service account associated with the resource.
+     * 
+ * + * string service_account = 3; + * + * @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; + } + } + + /** + * + * + *
+     * The service account associated with the resource.
+     * 
+ * + * string service_account = 3; + * + * @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; + } + } + + /** + * + * + *
+     * The service account associated with the resource.
+     * 
+ * + * string service_account = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The service account associated with the resource.
+     * 
+ * + * string service_account = 3; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The service account associated with the resource.
+     * 
+ * + * string service_account = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.Resource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.Resource) + private static final com.google.cloud.workloadmanager.v1.Resource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.Resource(); + } + + public static com.google.cloud.workloadmanager.v1.Resource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Resource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceFilter.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceFilter.java new file mode 100644 index 000000000000..d3f4d86e908f --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceFilter.java @@ -0,0 +1,1757 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Resource filter for an evaluation defining the scope of resources to be
+ * evaluated.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ResourceFilter} + */ +@com.google.protobuf.Generated +public final class ResourceFilter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ResourceFilter) + ResourceFilterOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ResourceFilter"); + } + + // Use ResourceFilter.newBuilder() to construct. + private ResourceFilter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ResourceFilter() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceIdPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceFilter_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetInclusionLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ResourceFilter.class, + com.google.cloud.workloadmanager.v1.ResourceFilter.Builder.class); + } + + private int bitField0_; + public static final int SCOPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The scopes of evaluation resource.
+   * Format:
+   * * `projects/{project_id}`
+   * * `folders/{folder_id}`
+   * * `organizations/{organization_id}`
+   * 
+ * + * repeated string scopes = 1; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
+   * The scopes of evaluation resource.
+   * Format:
+   * * `projects/{project_id}`
+   * * `folders/{folder_id}`
+   * * `organizations/{organization_id}`
+   * 
+ * + * repeated string scopes = 1; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+   * The scopes of evaluation resource.
+   * Format:
+   * * `projects/{project_id}`
+   * * `folders/{folder_id}`
+   * * `organizations/{organization_id}`
+   * 
+ * + * repeated string scopes = 1; + * + * @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); + } + + /** + * + * + *
+   * The scopes of evaluation resource.
+   * Format:
+   * * `projects/{project_id}`
+   * * `folders/{folder_id}`
+   * * `organizations/{organization_id}`
+   * 
+ * + * repeated string scopes = 1; + * + * @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); + } + + public static final int RESOURCE_ID_PATTERNS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList resourceIdPatterns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The pattern to filter resources by their id
+   * For example, a pattern of ".*prod-cluster.*" will match all resources that
+   * contain "prod-cluster" in their ID.
+   * 
+ * + * repeated string resource_id_patterns = 2; + * + * @return A list containing the resourceIdPatterns. + */ + public com.google.protobuf.ProtocolStringList getResourceIdPatternsList() { + return resourceIdPatterns_; + } + + /** + * + * + *
+   * The pattern to filter resources by their id
+   * For example, a pattern of ".*prod-cluster.*" will match all resources that
+   * contain "prod-cluster" in their ID.
+   * 
+ * + * repeated string resource_id_patterns = 2; + * + * @return The count of resourceIdPatterns. + */ + public int getResourceIdPatternsCount() { + return resourceIdPatterns_.size(); + } + + /** + * + * + *
+   * The pattern to filter resources by their id
+   * For example, a pattern of ".*prod-cluster.*" will match all resources that
+   * contain "prod-cluster" in their ID.
+   * 
+ * + * repeated string resource_id_patterns = 2; + * + * @param index The index of the element to return. + * @return The resourceIdPatterns at the given index. + */ + public java.lang.String getResourceIdPatterns(int index) { + return resourceIdPatterns_.get(index); + } + + /** + * + * + *
+   * The pattern to filter resources by their id
+   * For example, a pattern of ".*prod-cluster.*" will match all resources that
+   * contain "prod-cluster" in their ID.
+   * 
+ * + * repeated string resource_id_patterns = 2; + * + * @param index The index of the value to return. + * @return The bytes of the resourceIdPatterns at the given index. + */ + public com.google.protobuf.ByteString getResourceIdPatternsBytes(int index) { + return resourceIdPatterns_.getByteString(index); + } + + public static final int INCLUSION_LABELS_FIELD_NUMBER = 3; + + private static final class InclusionLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceFilter_InclusionLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField inclusionLabels_; + + private com.google.protobuf.MapField + internalGetInclusionLabels() { + if (inclusionLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InclusionLabelsDefaultEntryHolder.defaultEntry); + } + return inclusionLabels_; + } + + public int getInclusionLabelsCount() { + return internalGetInclusionLabels().getMap().size(); + } + + /** + * + * + *
+   * Labels to filter resources by. Each key-value pair in the map must exist
+   * on the resource for it to be included (e.g. VM instance labels).
+   * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+   * include resources that have labels `env=prod` and `database=nosql`.
+   * 
+ * + * map<string, string> inclusion_labels = 3; + */ + @java.lang.Override + public boolean containsInclusionLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInclusionLabels().getMap().containsKey(key); + } + + /** Use {@link #getInclusionLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getInclusionLabels() { + return getInclusionLabelsMap(); + } + + /** + * + * + *
+   * Labels to filter resources by. Each key-value pair in the map must exist
+   * on the resource for it to be included (e.g. VM instance labels).
+   * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+   * include resources that have labels `env=prod` and `database=nosql`.
+   * 
+ * + * map<string, string> inclusion_labels = 3; + */ + @java.lang.Override + public java.util.Map getInclusionLabelsMap() { + return internalGetInclusionLabels().getMap(); + } + + /** + * + * + *
+   * Labels to filter resources by. Each key-value pair in the map must exist
+   * on the resource for it to be included (e.g. VM instance labels).
+   * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+   * include resources that have labels `env=prod` and `database=nosql`.
+   * 
+ * + * map<string, string> inclusion_labels = 3; + */ + @java.lang.Override + public /* nullable */ java.lang.String getInclusionLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetInclusionLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Labels to filter resources by. Each key-value pair in the map must exist
+   * on the resource for it to be included (e.g. VM instance labels).
+   * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+   * include resources that have labels `env=prod` and `database=nosql`.
+   * 
+ * + * map<string, string> inclusion_labels = 3; + */ + @java.lang.Override + public java.lang.String getInclusionLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetInclusionLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int GCE_INSTANCE_FILTER_FIELD_NUMBER = 4; + private com.google.cloud.workloadmanager.v1.GceInstanceFilter gceInstanceFilter_; + + /** + * + * + *
+   * Filter compute engine resources.
+   * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + * + * @return Whether the gceInstanceFilter field is set. + */ + @java.lang.Override + public boolean hasGceInstanceFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Filter compute engine resources.
+   * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + * + * @return The gceInstanceFilter. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GceInstanceFilter getGceInstanceFilter() { + return gceInstanceFilter_ == null + ? com.google.cloud.workloadmanager.v1.GceInstanceFilter.getDefaultInstance() + : gceInstanceFilter_; + } + + /** + * + * + *
+   * Filter compute engine resources.
+   * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.GceInstanceFilterOrBuilder + getGceInstanceFilterOrBuilder() { + return gceInstanceFilter_ == null + ? com.google.cloud.workloadmanager.v1.GceInstanceFilter.getDefaultInstance() + : gceInstanceFilter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, scopes_.getRaw(i)); + } + for (int i = 0; i < resourceIdPatterns_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, resourceIdPatterns_.getRaw(i)); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetInclusionLabels(), InclusionLabelsDefaultEntryHolder.defaultEntry, 3); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getGceInstanceFilter()); + } + 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 < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < resourceIdPatterns_.size(); i++) { + dataSize += computeStringSizeNoTag(resourceIdPatterns_.getRaw(i)); + } + size += dataSize; + size += 1 * getResourceIdPatternsList().size(); + } + for (java.util.Map.Entry entry : + internalGetInclusionLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry inclusionLabels__ = + InclusionLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, inclusionLabels__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGceInstanceFilter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.ResourceFilter)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ResourceFilter other = + (com.google.cloud.workloadmanager.v1.ResourceFilter) obj; + + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getResourceIdPatternsList().equals(other.getResourceIdPatternsList())) return false; + if (!internalGetInclusionLabels().equals(other.internalGetInclusionLabels())) return false; + if (hasGceInstanceFilter() != other.hasGceInstanceFilter()) return false; + if (hasGceInstanceFilter()) { + if (!getGceInstanceFilter().equals(other.getGceInstanceFilter())) return false; + } + if (!getUnknownFields().equals(other.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(); + } + if (getResourceIdPatternsCount() > 0) { + hash = (37 * hash) + RESOURCE_ID_PATTERNS_FIELD_NUMBER; + hash = (53 * hash) + getResourceIdPatternsList().hashCode(); + } + if (!internalGetInclusionLabels().getMap().isEmpty()) { + hash = (37 * hash) + INCLUSION_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetInclusionLabels().hashCode(); + } + if (hasGceInstanceFilter()) { + hash = (37 * hash) + GCE_INSTANCE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getGceInstanceFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.ResourceFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Resource filter for an evaluation defining the scope of resources to be
+   * evaluated.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ResourceFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ResourceFilter) + com.google.cloud.workloadmanager.v1.ResourceFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceFilter_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetInclusionLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableInclusionLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ResourceFilter.class, + com.google.cloud.workloadmanager.v1.ResourceFilter.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ResourceFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGceInstanceFilterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceIdPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + internalGetMutableInclusionLabels().clear(); + gceInstanceFilter_ = null; + if (gceInstanceFilterBuilder_ != null) { + gceInstanceFilterBuilder_.dispose(); + gceInstanceFilterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceFilter getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ResourceFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceFilter build() { + com.google.cloud.workloadmanager.v1.ResourceFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceFilter buildPartial() { + com.google.cloud.workloadmanager.v1.ResourceFilter result = + new com.google.cloud.workloadmanager.v1.ResourceFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ResourceFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + resourceIdPatterns_.makeImmutable(); + result.resourceIdPatterns_ = resourceIdPatterns_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inclusionLabels_ = internalGetInclusionLabels(); + result.inclusionLabels_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gceInstanceFilter_ = + gceInstanceFilterBuilder_ == null + ? gceInstanceFilter_ + : gceInstanceFilterBuilder_.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.workloadmanager.v1.ResourceFilter) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ResourceFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ResourceFilter other) { + if (other == com.google.cloud.workloadmanager.v1.ResourceFilter.getDefaultInstance()) + return this; + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000001; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (!other.resourceIdPatterns_.isEmpty()) { + if (resourceIdPatterns_.isEmpty()) { + resourceIdPatterns_ = other.resourceIdPatterns_; + bitField0_ |= 0x00000002; + } else { + ensureResourceIdPatternsIsMutable(); + resourceIdPatterns_.addAll(other.resourceIdPatterns_); + } + onChanged(); + } + internalGetMutableInclusionLabels().mergeFrom(other.internalGetInclusionLabels()); + bitField0_ |= 0x00000004; + if (other.hasGceInstanceFilter()) { + mergeGceInstanceFilter(other.getGceInstanceFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceIdPatternsIsMutable(); + resourceIdPatterns_.add(s); + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry inclusionLabels__ = + input.readMessage( + InclusionLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableInclusionLabels() + .getMutableMap() + .put(inclusionLabels__.getKey(), inclusionLabels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetGceInstanceFilterFieldBuilder().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.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * The scopes of evaluation resource.
+     * Format:
+     * * `projects/{project_id}`
+     * * `folders/{folder_id}`
+     * * `organizations/{organization_id}`
+     * 
+ * + * repeated string scopes = 1; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
+     * The scopes of evaluation resource.
+     * Format:
+     * * `projects/{project_id}`
+     * * `folders/{folder_id}`
+     * * `organizations/{organization_id}`
+     * 
+ * + * repeated string scopes = 1; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+     * The scopes of evaluation resource.
+     * Format:
+     * * `projects/{project_id}`
+     * * `folders/{folder_id}`
+     * * `organizations/{organization_id}`
+     * 
+ * + * repeated string scopes = 1; + * + * @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); + } + + /** + * + * + *
+     * The scopes of evaluation resource.
+     * Format:
+     * * `projects/{project_id}`
+     * * `folders/{folder_id}`
+     * * `organizations/{organization_id}`
+     * 
+ * + * repeated string scopes = 1; + * + * @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); + } + + /** + * + * + *
+     * The scopes of evaluation resource.
+     * Format:
+     * * `projects/{project_id}`
+     * * `folders/{folder_id}`
+     * * `organizations/{organization_id}`
+     * 
+ * + * repeated string scopes = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The scopes of evaluation resource.
+     * Format:
+     * * `projects/{project_id}`
+     * * `folders/{folder_id}`
+     * * `organizations/{organization_id}`
+     * 
+ * + * repeated string scopes = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The scopes of evaluation resource.
+     * Format:
+     * * `projects/{project_id}`
+     * * `folders/{folder_id}`
+     * * `organizations/{organization_id}`
+     * 
+ * + * repeated string scopes = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The scopes of evaluation resource.
+     * Format:
+     * * `projects/{project_id}`
+     * * `folders/{folder_id}`
+     * * `organizations/{organization_id}`
+     * 
+ * + * repeated string scopes = 1; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The scopes of evaluation resource.
+     * Format:
+     * * `projects/{project_id}`
+     * * `folders/{folder_id}`
+     * * `organizations/{organization_id}`
+     * 
+ * + * repeated string scopes = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList resourceIdPatterns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureResourceIdPatternsIsMutable() { + if (!resourceIdPatterns_.isModifiable()) { + resourceIdPatterns_ = new com.google.protobuf.LazyStringArrayList(resourceIdPatterns_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * The pattern to filter resources by their id
+     * For example, a pattern of ".*prod-cluster.*" will match all resources that
+     * contain "prod-cluster" in their ID.
+     * 
+ * + * repeated string resource_id_patterns = 2; + * + * @return A list containing the resourceIdPatterns. + */ + public com.google.protobuf.ProtocolStringList getResourceIdPatternsList() { + resourceIdPatterns_.makeImmutable(); + return resourceIdPatterns_; + } + + /** + * + * + *
+     * The pattern to filter resources by their id
+     * For example, a pattern of ".*prod-cluster.*" will match all resources that
+     * contain "prod-cluster" in their ID.
+     * 
+ * + * repeated string resource_id_patterns = 2; + * + * @return The count of resourceIdPatterns. + */ + public int getResourceIdPatternsCount() { + return resourceIdPatterns_.size(); + } + + /** + * + * + *
+     * The pattern to filter resources by their id
+     * For example, a pattern of ".*prod-cluster.*" will match all resources that
+     * contain "prod-cluster" in their ID.
+     * 
+ * + * repeated string resource_id_patterns = 2; + * + * @param index The index of the element to return. + * @return The resourceIdPatterns at the given index. + */ + public java.lang.String getResourceIdPatterns(int index) { + return resourceIdPatterns_.get(index); + } + + /** + * + * + *
+     * The pattern to filter resources by their id
+     * For example, a pattern of ".*prod-cluster.*" will match all resources that
+     * contain "prod-cluster" in their ID.
+     * 
+ * + * repeated string resource_id_patterns = 2; + * + * @param index The index of the value to return. + * @return The bytes of the resourceIdPatterns at the given index. + */ + public com.google.protobuf.ByteString getResourceIdPatternsBytes(int index) { + return resourceIdPatterns_.getByteString(index); + } + + /** + * + * + *
+     * The pattern to filter resources by their id
+     * For example, a pattern of ".*prod-cluster.*" will match all resources that
+     * contain "prod-cluster" in their ID.
+     * 
+ * + * repeated string resource_id_patterns = 2; + * + * @param index The index to set the value at. + * @param value The resourceIdPatterns to set. + * @return This builder for chaining. + */ + public Builder setResourceIdPatterns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceIdPatternsIsMutable(); + resourceIdPatterns_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The pattern to filter resources by their id
+     * For example, a pattern of ".*prod-cluster.*" will match all resources that
+     * contain "prod-cluster" in their ID.
+     * 
+ * + * repeated string resource_id_patterns = 2; + * + * @param value The resourceIdPatterns to add. + * @return This builder for chaining. + */ + public Builder addResourceIdPatterns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceIdPatternsIsMutable(); + resourceIdPatterns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The pattern to filter resources by their id
+     * For example, a pattern of ".*prod-cluster.*" will match all resources that
+     * contain "prod-cluster" in their ID.
+     * 
+ * + * repeated string resource_id_patterns = 2; + * + * @param values The resourceIdPatterns to add. + * @return This builder for chaining. + */ + public Builder addAllResourceIdPatterns(java.lang.Iterable values) { + ensureResourceIdPatternsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceIdPatterns_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The pattern to filter resources by their id
+     * For example, a pattern of ".*prod-cluster.*" will match all resources that
+     * contain "prod-cluster" in their ID.
+     * 
+ * + * repeated string resource_id_patterns = 2; + * + * @return This builder for chaining. + */ + public Builder clearResourceIdPatterns() { + resourceIdPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The pattern to filter resources by their id
+     * For example, a pattern of ".*prod-cluster.*" will match all resources that
+     * contain "prod-cluster" in their ID.
+     * 
+ * + * repeated string resource_id_patterns = 2; + * + * @param value The bytes of the resourceIdPatterns to add. + * @return This builder for chaining. + */ + public Builder addResourceIdPatternsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResourceIdPatternsIsMutable(); + resourceIdPatterns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.MapField inclusionLabels_; + + private com.google.protobuf.MapField + internalGetInclusionLabels() { + if (inclusionLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InclusionLabelsDefaultEntryHolder.defaultEntry); + } + return inclusionLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableInclusionLabels() { + if (inclusionLabels_ == null) { + inclusionLabels_ = + com.google.protobuf.MapField.newMapField( + InclusionLabelsDefaultEntryHolder.defaultEntry); + } + if (!inclusionLabels_.isMutable()) { + inclusionLabels_ = inclusionLabels_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return inclusionLabels_; + } + + public int getInclusionLabelsCount() { + return internalGetInclusionLabels().getMap().size(); + } + + /** + * + * + *
+     * Labels to filter resources by. Each key-value pair in the map must exist
+     * on the resource for it to be included (e.g. VM instance labels).
+     * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+     * include resources that have labels `env=prod` and `database=nosql`.
+     * 
+ * + * map<string, string> inclusion_labels = 3; + */ + @java.lang.Override + public boolean containsInclusionLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInclusionLabels().getMap().containsKey(key); + } + + /** Use {@link #getInclusionLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getInclusionLabels() { + return getInclusionLabelsMap(); + } + + /** + * + * + *
+     * Labels to filter resources by. Each key-value pair in the map must exist
+     * on the resource for it to be included (e.g. VM instance labels).
+     * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+     * include resources that have labels `env=prod` and `database=nosql`.
+     * 
+ * + * map<string, string> inclusion_labels = 3; + */ + @java.lang.Override + public java.util.Map getInclusionLabelsMap() { + return internalGetInclusionLabels().getMap(); + } + + /** + * + * + *
+     * Labels to filter resources by. Each key-value pair in the map must exist
+     * on the resource for it to be included (e.g. VM instance labels).
+     * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+     * include resources that have labels `env=prod` and `database=nosql`.
+     * 
+ * + * map<string, string> inclusion_labels = 3; + */ + @java.lang.Override + public /* nullable */ java.lang.String getInclusionLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetInclusionLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Labels to filter resources by. Each key-value pair in the map must exist
+     * on the resource for it to be included (e.g. VM instance labels).
+     * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+     * include resources that have labels `env=prod` and `database=nosql`.
+     * 
+ * + * map<string, string> inclusion_labels = 3; + */ + @java.lang.Override + public java.lang.String getInclusionLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetInclusionLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearInclusionLabels() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableInclusionLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Labels to filter resources by. Each key-value pair in the map must exist
+     * on the resource for it to be included (e.g. VM instance labels).
+     * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+     * include resources that have labels `env=prod` and `database=nosql`.
+     * 
+ * + * map<string, string> inclusion_labels = 3; + */ + public Builder removeInclusionLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableInclusionLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableInclusionLabels() { + bitField0_ |= 0x00000004; + return internalGetMutableInclusionLabels().getMutableMap(); + } + + /** + * + * + *
+     * Labels to filter resources by. Each key-value pair in the map must exist
+     * on the resource for it to be included (e.g. VM instance labels).
+     * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+     * include resources that have labels `env=prod` and `database=nosql`.
+     * 
+ * + * map<string, string> inclusion_labels = 3; + */ + public Builder putInclusionLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableInclusionLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+     * Labels to filter resources by. Each key-value pair in the map must exist
+     * on the resource for it to be included (e.g. VM instance labels).
+     * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+     * include resources that have labels `env=prod` and `database=nosql`.
+     * 
+ * + * map<string, string> inclusion_labels = 3; + */ + public Builder putAllInclusionLabels(java.util.Map values) { + internalGetMutableInclusionLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private com.google.cloud.workloadmanager.v1.GceInstanceFilter gceInstanceFilter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.GceInstanceFilter, + com.google.cloud.workloadmanager.v1.GceInstanceFilter.Builder, + com.google.cloud.workloadmanager.v1.GceInstanceFilterOrBuilder> + gceInstanceFilterBuilder_; + + /** + * + * + *
+     * Filter compute engine resources.
+     * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + * + * @return Whether the gceInstanceFilter field is set. + */ + public boolean hasGceInstanceFilter() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Filter compute engine resources.
+     * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + * + * @return The gceInstanceFilter. + */ + public com.google.cloud.workloadmanager.v1.GceInstanceFilter getGceInstanceFilter() { + if (gceInstanceFilterBuilder_ == null) { + return gceInstanceFilter_ == null + ? com.google.cloud.workloadmanager.v1.GceInstanceFilter.getDefaultInstance() + : gceInstanceFilter_; + } else { + return gceInstanceFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Filter compute engine resources.
+     * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + */ + public Builder setGceInstanceFilter( + com.google.cloud.workloadmanager.v1.GceInstanceFilter value) { + if (gceInstanceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gceInstanceFilter_ = value; + } else { + gceInstanceFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter compute engine resources.
+     * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + */ + public Builder setGceInstanceFilter( + com.google.cloud.workloadmanager.v1.GceInstanceFilter.Builder builderForValue) { + if (gceInstanceFilterBuilder_ == null) { + gceInstanceFilter_ = builderForValue.build(); + } else { + gceInstanceFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter compute engine resources.
+     * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + */ + public Builder mergeGceInstanceFilter( + com.google.cloud.workloadmanager.v1.GceInstanceFilter value) { + if (gceInstanceFilterBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && gceInstanceFilter_ != null + && gceInstanceFilter_ + != com.google.cloud.workloadmanager.v1.GceInstanceFilter.getDefaultInstance()) { + getGceInstanceFilterBuilder().mergeFrom(value); + } else { + gceInstanceFilter_ = value; + } + } else { + gceInstanceFilterBuilder_.mergeFrom(value); + } + if (gceInstanceFilter_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Filter compute engine resources.
+     * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + */ + public Builder clearGceInstanceFilter() { + bitField0_ = (bitField0_ & ~0x00000008); + gceInstanceFilter_ = null; + if (gceInstanceFilterBuilder_ != null) { + gceInstanceFilterBuilder_.dispose(); + gceInstanceFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter compute engine resources.
+     * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + */ + public com.google.cloud.workloadmanager.v1.GceInstanceFilter.Builder + getGceInstanceFilterBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetGceInstanceFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Filter compute engine resources.
+     * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + */ + public com.google.cloud.workloadmanager.v1.GceInstanceFilterOrBuilder + getGceInstanceFilterOrBuilder() { + if (gceInstanceFilterBuilder_ != null) { + return gceInstanceFilterBuilder_.getMessageOrBuilder(); + } else { + return gceInstanceFilter_ == null + ? com.google.cloud.workloadmanager.v1.GceInstanceFilter.getDefaultInstance() + : gceInstanceFilter_; + } + } + + /** + * + * + *
+     * Filter compute engine resources.
+     * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.GceInstanceFilter, + com.google.cloud.workloadmanager.v1.GceInstanceFilter.Builder, + com.google.cloud.workloadmanager.v1.GceInstanceFilterOrBuilder> + internalGetGceInstanceFilterFieldBuilder() { + if (gceInstanceFilterBuilder_ == null) { + gceInstanceFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.GceInstanceFilter, + com.google.cloud.workloadmanager.v1.GceInstanceFilter.Builder, + com.google.cloud.workloadmanager.v1.GceInstanceFilterOrBuilder>( + getGceInstanceFilter(), getParentForChildren(), isClean()); + gceInstanceFilter_ = null; + } + return gceInstanceFilterBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ResourceFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ResourceFilter) + private static final com.google.cloud.workloadmanager.v1.ResourceFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ResourceFilter(); + } + + public static com.google.cloud.workloadmanager.v1.ResourceFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceFilterOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceFilterOrBuilder.java new file mode 100644 index 000000000000..7a0450024875 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceFilterOrBuilder.java @@ -0,0 +1,275 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ResourceFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ResourceFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The scopes of evaluation resource.
+   * Format:
+   * * `projects/{project_id}`
+   * * `folders/{folder_id}`
+   * * `organizations/{organization_id}`
+   * 
+ * + * repeated string scopes = 1; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
+   * The scopes of evaluation resource.
+   * Format:
+   * * `projects/{project_id}`
+   * * `folders/{folder_id}`
+   * * `organizations/{organization_id}`
+   * 
+ * + * repeated string scopes = 1; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
+   * The scopes of evaluation resource.
+   * Format:
+   * * `projects/{project_id}`
+   * * `folders/{folder_id}`
+   * * `organizations/{organization_id}`
+   * 
+ * + * repeated string scopes = 1; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
+   * The scopes of evaluation resource.
+   * Format:
+   * * `projects/{project_id}`
+   * * `folders/{folder_id}`
+   * * `organizations/{organization_id}`
+   * 
+ * + * repeated string scopes = 1; + * + * @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); + + /** + * + * + *
+   * The pattern to filter resources by their id
+   * For example, a pattern of ".*prod-cluster.*" will match all resources that
+   * contain "prod-cluster" in their ID.
+   * 
+ * + * repeated string resource_id_patterns = 2; + * + * @return A list containing the resourceIdPatterns. + */ + java.util.List getResourceIdPatternsList(); + + /** + * + * + *
+   * The pattern to filter resources by their id
+   * For example, a pattern of ".*prod-cluster.*" will match all resources that
+   * contain "prod-cluster" in their ID.
+   * 
+ * + * repeated string resource_id_patterns = 2; + * + * @return The count of resourceIdPatterns. + */ + int getResourceIdPatternsCount(); + + /** + * + * + *
+   * The pattern to filter resources by their id
+   * For example, a pattern of ".*prod-cluster.*" will match all resources that
+   * contain "prod-cluster" in their ID.
+   * 
+ * + * repeated string resource_id_patterns = 2; + * + * @param index The index of the element to return. + * @return The resourceIdPatterns at the given index. + */ + java.lang.String getResourceIdPatterns(int index); + + /** + * + * + *
+   * The pattern to filter resources by their id
+   * For example, a pattern of ".*prod-cluster.*" will match all resources that
+   * contain "prod-cluster" in their ID.
+   * 
+ * + * repeated string resource_id_patterns = 2; + * + * @param index The index of the value to return. + * @return The bytes of the resourceIdPatterns at the given index. + */ + com.google.protobuf.ByteString getResourceIdPatternsBytes(int index); + + /** + * + * + *
+   * Labels to filter resources by. Each key-value pair in the map must exist
+   * on the resource for it to be included (e.g. VM instance labels).
+   * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+   * include resources that have labels `env=prod` and `database=nosql`.
+   * 
+ * + * map<string, string> inclusion_labels = 3; + */ + int getInclusionLabelsCount(); + + /** + * + * + *
+   * Labels to filter resources by. Each key-value pair in the map must exist
+   * on the resource for it to be included (e.g. VM instance labels).
+   * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+   * include resources that have labels `env=prod` and `database=nosql`.
+   * 
+ * + * map<string, string> inclusion_labels = 3; + */ + boolean containsInclusionLabels(java.lang.String key); + + /** Use {@link #getInclusionLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getInclusionLabels(); + + /** + * + * + *
+   * Labels to filter resources by. Each key-value pair in the map must exist
+   * on the resource for it to be included (e.g. VM instance labels).
+   * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+   * include resources that have labels `env=prod` and `database=nosql`.
+   * 
+ * + * map<string, string> inclusion_labels = 3; + */ + java.util.Map getInclusionLabelsMap(); + + /** + * + * + *
+   * Labels to filter resources by. Each key-value pair in the map must exist
+   * on the resource for it to be included (e.g. VM instance labels).
+   * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+   * include resources that have labels `env=prod` and `database=nosql`.
+   * 
+ * + * map<string, string> inclusion_labels = 3; + */ + /* nullable */ + java.lang.String getInclusionLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Labels to filter resources by. Each key-value pair in the map must exist
+   * on the resource for it to be included (e.g. VM instance labels).
+   * For example, specifying `{ "env": "prod", "database": "nosql" }` will only
+   * include resources that have labels `env=prod` and `database=nosql`.
+   * 
+ * + * map<string, string> inclusion_labels = 3; + */ + java.lang.String getInclusionLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Filter compute engine resources.
+   * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + * + * @return Whether the gceInstanceFilter field is set. + */ + boolean hasGceInstanceFilter(); + + /** + * + * + *
+   * Filter compute engine resources.
+   * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + * + * @return The gceInstanceFilter. + */ + com.google.cloud.workloadmanager.v1.GceInstanceFilter getGceInstanceFilter(); + + /** + * + * + *
+   * Filter compute engine resources.
+   * 
+ * + * .google.cloud.workloadmanager.v1.GceInstanceFilter gce_instance_filter = 4; + */ + com.google.cloud.workloadmanager.v1.GceInstanceFilterOrBuilder getGceInstanceFilterOrBuilder(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceOrBuilder.java new file mode 100644 index 000000000000..c3cdf65c5ee2 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.Resource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The type of resource.
+   * 
+ * + * string type = 1; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * The type of resource.
+   * 
+ * + * string type = 1; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * The name of the resource.
+   * 
+ * + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * The name of the resource.
+   * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The service account associated with the resource.
+   * 
+ * + * string service_account = 3; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + + /** + * + * + *
+   * The service account associated with the resource.
+   * 
+ * + * string service_account = 3; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceStatus.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceStatus.java new file mode 100644 index 000000000000..fdb0aef1e5c5 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceStatus.java @@ -0,0 +1,764 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * The lifecycle status of an Evaluation resource.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ResourceStatus} + */ +@com.google.protobuf.Generated +public final class ResourceStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ResourceStatus) + ResourceStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ResourceStatus"); + } + + // Use ResourceStatus.newBuilder() to construct. + private ResourceStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ResourceStatus() { + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ResourceStatus.class, + com.google.cloud.workloadmanager.v1.ResourceStatus.Builder.class); + } + + /** + * + * + *
+   * Possible states of an evaluation, such as CREATING, ACTIVE, and DELETING.
+   * 
+ * + * Protobuf enum {@code google.cloud.workloadmanager.v1.ResourceStatus.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state has not been populated in this message.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Resource has an active Create operation.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * Resource has no outstanding operations on it or has active Update
+     * operations.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * Resource has an active Delete operation.
+     * 
+ * + * DELETING = 3; + */ + DELETING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * The state has not been populated in this message.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Resource has an active Create operation.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
+     * Resource has no outstanding operations on it or has active Update
+     * operations.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * Resource has an active Delete operation.
+     * 
+ * + * DELETING = 3; + */ + public static final int DELETING_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 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 CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + 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.workloadmanager.v1.ResourceStatus.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.workloadmanager.v1.ResourceStatus.State) + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
+   * State of the Evaluation resource.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ResourceStatus.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * State of the Evaluation resource.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ResourceStatus.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceStatus.State getState() { + com.google.cloud.workloadmanager.v1.ResourceStatus.State result = + com.google.cloud.workloadmanager.v1.ResourceStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.workloadmanager.v1.ResourceStatus.State.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 (state_ + != com.google.cloud.workloadmanager.v1.ResourceStatus.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.cloud.workloadmanager.v1.ResourceStatus.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.ResourceStatus)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ResourceStatus other = + (com.google.cloud.workloadmanager.v1.ResourceStatus) obj; + + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.ResourceStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 lifecycle status of an Evaluation resource.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ResourceStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ResourceStatus) + com.google.cloud.workloadmanager.v1.ResourceStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ResourceStatus.class, + com.google.cloud.workloadmanager.v1.ResourceStatus.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ResourceStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ResourceStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceStatus getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ResourceStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceStatus build() { + com.google.cloud.workloadmanager.v1.ResourceStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceStatus buildPartial() { + com.google.cloud.workloadmanager.v1.ResourceStatus result = + new com.google.cloud.workloadmanager.v1.ResourceStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ResourceStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.ResourceStatus) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ResourceStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ResourceStatus other) { + if (other == com.google.cloud.workloadmanager.v1.ResourceStatus.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + 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 state_ = 0; + + /** + * + * + *
+     * State of the Evaluation resource.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceStatus.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * State of the Evaluation resource.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceStatus.State state = 2; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * State of the Evaluation resource.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceStatus.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceStatus.State getState() { + com.google.cloud.workloadmanager.v1.ResourceStatus.State result = + com.google.cloud.workloadmanager.v1.ResourceStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.workloadmanager.v1.ResourceStatus.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * State of the Evaluation resource.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceStatus.State state = 2; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.workloadmanager.v1.ResourceStatus.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * State of the Evaluation resource.
+     * 
+ * + * .google.cloud.workloadmanager.v1.ResourceStatus.State state = 2; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ResourceStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ResourceStatus) + private static final com.google.cloud.workloadmanager.v1.ResourceStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ResourceStatus(); + } + + public static com.google.cloud.workloadmanager.v1.ResourceStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ResourceStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceStatusOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceStatusOrBuilder.java new file mode 100644 index 000000000000..d1d721d53838 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ResourceStatusOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ResourceStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ResourceStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * State of the Evaluation resource.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ResourceStatus.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * State of the Evaluation resource.
+   * 
+ * + * .google.cloud.workloadmanager.v1.ResourceStatus.State state = 2; + * + * @return The state. + */ + com.google.cloud.workloadmanager.v1.ResourceStatus.State getState(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Rule.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Rule.java new file mode 100644 index 000000000000..d052b63bbd5f --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/Rule.java @@ -0,0 +1,3109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * A rule to be evaluated.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Rule} + */ +@com.google.protobuf.Generated +public final class Rule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.Rule) + RuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Rule"); + } + + // Use Rule.newBuilder() to construct. + private Rule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Rule() { + name_ = ""; + revisionId_ = ""; + displayName_ = ""; + description_ = ""; + severity_ = ""; + primaryCategory_ = ""; + secondaryCategory_ = ""; + errorMessage_ = ""; + uri_ = ""; + remediation_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ruleType_ = 0; + assetType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Rule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Rule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Rule.class, + com.google.cloud.workloadmanager.v1.Rule.Builder.class); + } + + /** + * + * + *
+   * The type of the rule.
+   * 
+ * + * Protobuf enum {@code google.cloud.workloadmanager.v1.Rule.RuleType} + */ + public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * RULE_TYPE_UNSPECIFIED = 0; + */ + RULE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Baseline rules.
+     * 
+ * + * BASELINE = 1; + */ + BASELINE(1), + /** + * + * + *
+     * Custom rules.
+     * 
+ * + * CUSTOM = 2; + */ + CUSTOM(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RuleType"); + } + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * RULE_TYPE_UNSPECIFIED = 0; + */ + public static final int RULE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Baseline rules.
+     * 
+ * + * BASELINE = 1; + */ + public static final int BASELINE_VALUE = 1; + + /** + * + * + *
+     * Custom rules.
+     * 
+ * + * CUSTOM = 2; + */ + public static final int CUSTOM_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 RuleType 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 RuleType forNumber(int value) { + switch (value) { + case 0: + return RULE_TYPE_UNSPECIFIED; + case 1: + return BASELINE; + case 2: + return CUSTOM; + 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 RuleType findValueByNumber(int number) { + return RuleType.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.workloadmanager.v1.Rule.getDescriptor().getEnumTypes().get(0); + } + + private static final RuleType[] VALUES = values(); + + public static RuleType 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 RuleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.workloadmanager.v1.Rule.RuleType) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Rule name.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * Rule name.
+   * 
+ * + * 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 REVISION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + + /** + * + * + *
+   * Output only. The version of the rule.
+   * 
+ * + * string revision_id = 2 [(.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 version of the rule.
+   * 
+ * + * string revision_id = 2 [(.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 DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * The name display in UI.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * The name display in UI.
+   * 
+ * + * string display_name = 3; + * + * @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 = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Describe rule in plain language.
+   * 
+ * + * string description = 4; + * + * @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; + } + } + + /** + * + * + *
+   * Describe rule in plain language.
+   * 
+ * + * string description = 4; + * + * @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 SEVERITY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object severity_ = ""; + + /** + * + * + *
+   * The severity of the rule.
+   * 
+ * + * string severity = 5; + * + * @return The severity. + */ + @java.lang.Override + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } + } + + /** + * + * + *
+   * The severity of the rule.
+   * 
+ * + * string severity = 5; + * + * @return The bytes for severity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIMARY_CATEGORY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object primaryCategory_ = ""; + + /** + * + * + *
+   * The primary category.
+   * 
+ * + * string primary_category = 6; + * + * @return The primaryCategory. + */ + @java.lang.Override + public java.lang.String getPrimaryCategory() { + java.lang.Object ref = primaryCategory_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryCategory_ = s; + return s; + } + } + + /** + * + * + *
+   * The primary category.
+   * 
+ * + * string primary_category = 6; + * + * @return The bytes for primaryCategory. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrimaryCategoryBytes() { + java.lang.Object ref = primaryCategory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_CATEGORY_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object secondaryCategory_ = ""; + + /** + * + * + *
+   * The secondary category.
+   * 
+ * + * string secondary_category = 7; + * + * @return The secondaryCategory. + */ + @java.lang.Override + public java.lang.String getSecondaryCategory() { + java.lang.Object ref = secondaryCategory_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryCategory_ = s; + return s; + } + } + + /** + * + * + *
+   * The secondary category.
+   * 
+ * + * string secondary_category = 7; + * + * @return The bytes for secondaryCategory. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecondaryCategoryBytes() { + java.lang.Object ref = secondaryCategory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + + /** + * + * + *
+   * The message template for rule.
+   * 
+ * + * string error_message = 8; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * The message template for rule.
+   * 
+ * + * string error_message = 8; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * The document url for the rule.
+   * 
+ * + * string uri = 9; + * + * @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 document url for the rule.
+   * 
+ * + * string uri = 9; + * + * @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 REMEDIATION_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object remediation_ = ""; + + /** + * + * + *
+   * The remediation for the rule.
+   * 
+ * + * string remediation = 10; + * + * @return The remediation. + */ + @java.lang.Override + public java.lang.String getRemediation() { + java.lang.Object ref = remediation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remediation_ = s; + return s; + } + } + + /** + * + * + *
+   * The remediation for the rule.
+   * 
+ * + * string remediation = 10; + * + * @return The bytes for remediation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRemediationBytes() { + java.lang.Object ref = remediation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + remediation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAGS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * List of user-defined tags.
+   * 
+ * + * repeated string tags = 11; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + return tags_; + } + + /** + * + * + *
+   * List of user-defined tags.
+   * 
+ * + * repeated string tags = 11; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + + /** + * + * + *
+   * List of user-defined tags.
+   * 
+ * + * repeated string tags = 11; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + + /** + * + * + *
+   * List of user-defined tags.
+   * 
+ * + * repeated string tags = 11; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int RULE_TYPE_FIELD_NUMBER = 12; + private int ruleType_ = 0; + + /** + * + * + *
+   * The type of the rule.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12; + * + * @return The enum numeric value on the wire for ruleType. + */ + @java.lang.Override + public int getRuleTypeValue() { + return ruleType_; + } + + /** + * + * + *
+   * The type of the rule.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12; + * + * @return The ruleType. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Rule.RuleType getRuleType() { + com.google.cloud.workloadmanager.v1.Rule.RuleType result = + com.google.cloud.workloadmanager.v1.Rule.RuleType.forNumber(ruleType_); + return result == null ? com.google.cloud.workloadmanager.v1.Rule.RuleType.UNRECOGNIZED : result; + } + + public static final int ASSET_TYPE_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object assetType_ = ""; + + /** + * + * + *
+   * The CAI asset type of the rule is evaluating, for joined asset types, it
+   * will be the corresponding primary asset types.
+   * 
+ * + * string asset_type = 13; + * + * @return The assetType. + */ + @java.lang.Override + public java.lang.String getAssetType() { + java.lang.Object ref = assetType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetType_ = s; + return s; + } + } + + /** + * + * + *
+   * The CAI asset type of the rule is evaluating, for joined asset types, it
+   * will be the corresponding primary asset types.
+   * 
+ * + * string asset_type = 13; + * + * @return The bytes for assetType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetTypeBytes() { + java.lang.Object ref = assetType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetType_ = 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(revisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(severity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, severity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(primaryCategory_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, primaryCategory_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(secondaryCategory_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, secondaryCategory_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, errorMessage_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remediation_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, remediation_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, tags_.getRaw(i)); + } + if (ruleType_ + != com.google.cloud.workloadmanager.v1.Rule.RuleType.RULE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(12, ruleType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, assetType_); + } + 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(revisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(severity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, severity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(primaryCategory_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, primaryCategory_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(secondaryCategory_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, secondaryCategory_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, errorMessage_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remediation_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, remediation_); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + if (ruleType_ + != com.google.cloud.workloadmanager.v1.Rule.RuleType.RULE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, ruleType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, assetType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.Rule)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.Rule other = (com.google.cloud.workloadmanager.v1.Rule) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSeverity().equals(other.getSeverity())) return false; + if (!getPrimaryCategory().equals(other.getPrimaryCategory())) return false; + if (!getSecondaryCategory().equals(other.getSecondaryCategory())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getRemediation().equals(other.getRemediation())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (ruleType_ != other.ruleType_) return false; + if (!getAssetType().equals(other.getAssetType())) return false; + if (!getUnknownFields().equals(other.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) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().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) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + getSeverity().hashCode(); + hash = (37 * hash) + PRIMARY_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryCategory().hashCode(); + hash = (37 * hash) + SECONDARY_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryCategory().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + REMEDIATION_FIELD_NUMBER; + hash = (53 * hash) + getRemediation().hashCode(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (37 * hash) + RULE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + ruleType_; + hash = (37 * hash) + ASSET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAssetType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.Rule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.Rule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.Rule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 to be evaluated.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.Rule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.Rule) + com.google.cloud.workloadmanager.v1.RuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Rule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Rule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.Rule.class, + com.google.cloud.workloadmanager.v1.Rule.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.Rule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionId_ = ""; + displayName_ = ""; + description_ = ""; + severity_ = ""; + primaryCategory_ = ""; + secondaryCategory_ = ""; + errorMessage_ = ""; + uri_ = ""; + remediation_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ruleType_ = 0; + assetType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_Rule_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Rule getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.Rule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Rule build() { + com.google.cloud.workloadmanager.v1.Rule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Rule buildPartial() { + com.google.cloud.workloadmanager.v1.Rule result = + new com.google.cloud.workloadmanager.v1.Rule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.Rule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionId_ = revisionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.primaryCategory_ = primaryCategory_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.secondaryCategory_ = secondaryCategory_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.errorMessage_ = errorMessage_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.remediation_ = remediation_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + tags_.makeImmutable(); + result.tags_ = tags_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.ruleType_ = ruleType_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.assetType_ = assetType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.Rule) { + return mergeFrom((com.google.cloud.workloadmanager.v1.Rule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.Rule other) { + if (other == com.google.cloud.workloadmanager.v1.Rule.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + 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.getSeverity().isEmpty()) { + severity_ = other.severity_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getPrimaryCategory().isEmpty()) { + primaryCategory_ = other.primaryCategory_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getSecondaryCategory().isEmpty()) { + secondaryCategory_ = other.secondaryCategory_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getRemediation().isEmpty()) { + remediation_ = other.remediation_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ |= 0x00000400; + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.ruleType_ != 0) { + setRuleTypeValue(other.getRuleTypeValue()); + } + if (!other.getAssetType().isEmpty()) { + assetType_ = other.assetType_; + bitField0_ |= 0x00001000; + 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: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + severity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + primaryCategory_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + secondaryCategory_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + remediation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 90 + case 96: + { + ruleType_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: + { + assetType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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_ = ""; + + /** + * + * + *
+     * Rule name.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Rule name.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Rule name.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * Rule name.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Rule name.
+     * 
+ * + * 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 revisionId_ = ""; + + /** + * + * + *
+     * Output only. The version of the rule.
+     * 
+ * + * string revision_id = 2 [(.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 version of the rule.
+     * 
+ * + * string revision_id = 2 [(.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 version of the rule.
+     * 
+ * + * string revision_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The version of the rule.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The version of the rule.
+     * 
+ * + * string revision_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * The name display in UI.
+     * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name display in UI.
+     * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name display in UI.
+     * 
+ * + * string display_name = 3; + * + * @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; + } + + /** + * + * + *
+     * The name display in UI.
+     * 
+ * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name display in UI.
+     * 
+ * + * string display_name = 3; + * + * @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_ = ""; + + /** + * + * + *
+     * Describe rule in plain language.
+     * 
+ * + * string description = 4; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Describe rule in plain language.
+     * 
+ * + * string description = 4; + * + * @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; + } + } + + /** + * + * + *
+     * Describe rule in plain language.
+     * 
+ * + * string description = 4; + * + * @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; + } + + /** + * + * + *
+     * Describe rule in plain language.
+     * 
+ * + * string description = 4; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Describe rule in plain language.
+     * 
+ * + * string description = 4; + * + * @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 severity_ = ""; + + /** + * + * + *
+     * The severity of the rule.
+     * 
+ * + * string severity = 5; + * + * @return The severity. + */ + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The severity of the rule.
+     * 
+ * + * string severity = 5; + * + * @return The bytes for severity. + */ + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The severity of the rule.
+     * 
+ * + * string severity = 5; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + severity_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The severity of the rule.
+     * 
+ * + * string severity = 5; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + severity_ = getDefaultInstance().getSeverity(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * The severity of the rule.
+     * 
+ * + * string severity = 5; + * + * @param value The bytes for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + severity_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object primaryCategory_ = ""; + + /** + * + * + *
+     * The primary category.
+     * 
+ * + * string primary_category = 6; + * + * @return The primaryCategory. + */ + public java.lang.String getPrimaryCategory() { + java.lang.Object ref = primaryCategory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryCategory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The primary category.
+     * 
+ * + * string primary_category = 6; + * + * @return The bytes for primaryCategory. + */ + public com.google.protobuf.ByteString getPrimaryCategoryBytes() { + java.lang.Object ref = primaryCategory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The primary category.
+     * 
+ * + * string primary_category = 6; + * + * @param value The primaryCategory to set. + * @return This builder for chaining. + */ + public Builder setPrimaryCategory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + primaryCategory_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The primary category.
+     * 
+ * + * string primary_category = 6; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryCategory() { + primaryCategory_ = getDefaultInstance().getPrimaryCategory(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * The primary category.
+     * 
+ * + * string primary_category = 6; + * + * @param value The bytes for primaryCategory to set. + * @return This builder for chaining. + */ + public Builder setPrimaryCategoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryCategory_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object secondaryCategory_ = ""; + + /** + * + * + *
+     * The secondary category.
+     * 
+ * + * string secondary_category = 7; + * + * @return The secondaryCategory. + */ + public java.lang.String getSecondaryCategory() { + java.lang.Object ref = secondaryCategory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryCategory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The secondary category.
+     * 
+ * + * string secondary_category = 7; + * + * @return The bytes for secondaryCategory. + */ + public com.google.protobuf.ByteString getSecondaryCategoryBytes() { + java.lang.Object ref = secondaryCategory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The secondary category.
+     * 
+ * + * string secondary_category = 7; + * + * @param value The secondaryCategory to set. + * @return This builder for chaining. + */ + public Builder setSecondaryCategory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secondaryCategory_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * The secondary category.
+     * 
+ * + * string secondary_category = 7; + * + * @return This builder for chaining. + */ + public Builder clearSecondaryCategory() { + secondaryCategory_ = getDefaultInstance().getSecondaryCategory(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * The secondary category.
+     * 
+ * + * string secondary_category = 7; + * + * @param value The bytes for secondaryCategory to set. + * @return This builder for chaining. + */ + public Builder setSecondaryCategoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secondaryCategory_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + + /** + * + * + *
+     * The message template for rule.
+     * 
+ * + * string error_message = 8; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The message template for rule.
+     * 
+ * + * string error_message = 8; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The message template for rule.
+     * 
+ * + * string error_message = 8; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * The message template for rule.
+     * 
+ * + * string error_message = 8; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * The message template for rule.
+     * 
+ * + * string error_message = 8; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
+     * The document url for the rule.
+     * 
+ * + * string uri = 9; + * + * @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 document url for the rule.
+     * 
+ * + * string uri = 9; + * + * @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 document url for the rule.
+     * 
+ * + * string uri = 9; + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * The document url for the rule.
+     * 
+ * + * string uri = 9; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * The document url for the rule.
+     * 
+ * + * string uri = 9; + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object remediation_ = ""; + + /** + * + * + *
+     * The remediation for the rule.
+     * 
+ * + * string remediation = 10; + * + * @return The remediation. + */ + public java.lang.String getRemediation() { + java.lang.Object ref = remediation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remediation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The remediation for the rule.
+     * 
+ * + * string remediation = 10; + * + * @return The bytes for remediation. + */ + public com.google.protobuf.ByteString getRemediationBytes() { + java.lang.Object ref = remediation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + remediation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The remediation for the rule.
+     * 
+ * + * string remediation = 10; + * + * @param value The remediation to set. + * @return This builder for chaining. + */ + public Builder setRemediation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + remediation_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * The remediation for the rule.
+     * 
+ * + * string remediation = 10; + * + * @return This builder for chaining. + */ + public Builder clearRemediation() { + remediation_ = getDefaultInstance().getRemediation(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * The remediation for the rule.
+     * 
+ * + * string remediation = 10; + * + * @param value The bytes for remediation to set. + * @return This builder for chaining. + */ + public Builder setRemediationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + remediation_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTagsIsMutable() { + if (!tags_.isModifiable()) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + } + bitField0_ |= 0x00000400; + } + + /** + * + * + *
+     * List of user-defined tags.
+     * 
+ * + * repeated string tags = 11; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + tags_.makeImmutable(); + return tags_; + } + + /** + * + * + *
+     * List of user-defined tags.
+     * 
+ * + * repeated string tags = 11; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + + /** + * + * + *
+     * List of user-defined tags.
+     * 
+ * + * repeated string tags = 11; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + + /** + * + * + *
+     * List of user-defined tags.
+     * 
+ * + * repeated string tags = 11; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + /** + * + * + *
+     * List of user-defined tags.
+     * 
+ * + * repeated string tags = 11; + * + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of user-defined tags.
+     * 
+ * + * repeated string tags = 11; + * + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of user-defined tags.
+     * 
+ * + * repeated string tags = 11; + * + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags(java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of user-defined tags.
+     * 
+ * + * repeated string tags = 11; + * + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of user-defined tags.
+     * 
+ * + * repeated string tags = 11; + * + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private int ruleType_ = 0; + + /** + * + * + *
+     * The type of the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12; + * + * @return The enum numeric value on the wire for ruleType. + */ + @java.lang.Override + public int getRuleTypeValue() { + return ruleType_; + } + + /** + * + * + *
+     * The type of the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12; + * + * @param value The enum numeric value on the wire for ruleType to set. + * @return This builder for chaining. + */ + public Builder setRuleTypeValue(int value) { + ruleType_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12; + * + * @return The ruleType. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Rule.RuleType getRuleType() { + com.google.cloud.workloadmanager.v1.Rule.RuleType result = + com.google.cloud.workloadmanager.v1.Rule.RuleType.forNumber(ruleType_); + return result == null + ? com.google.cloud.workloadmanager.v1.Rule.RuleType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The type of the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12; + * + * @param value The ruleType to set. + * @return This builder for chaining. + */ + public Builder setRuleType(com.google.cloud.workloadmanager.v1.Rule.RuleType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + ruleType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of the rule.
+     * 
+ * + * .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12; + * + * @return This builder for chaining. + */ + public Builder clearRuleType() { + bitField0_ = (bitField0_ & ~0x00000800); + ruleType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object assetType_ = ""; + + /** + * + * + *
+     * The CAI asset type of the rule is evaluating, for joined asset types, it
+     * will be the corresponding primary asset types.
+     * 
+ * + * string asset_type = 13; + * + * @return The assetType. + */ + public java.lang.String getAssetType() { + java.lang.Object ref = assetType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The CAI asset type of the rule is evaluating, for joined asset types, it
+     * will be the corresponding primary asset types.
+     * 
+ * + * string asset_type = 13; + * + * @return The bytes for assetType. + */ + public com.google.protobuf.ByteString getAssetTypeBytes() { + java.lang.Object ref = assetType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The CAI asset type of the rule is evaluating, for joined asset types, it
+     * will be the corresponding primary asset types.
+     * 
+ * + * string asset_type = 13; + * + * @param value The assetType to set. + * @return This builder for chaining. + */ + public Builder setAssetType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assetType_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * The CAI asset type of the rule is evaluating, for joined asset types, it
+     * will be the corresponding primary asset types.
+     * 
+ * + * string asset_type = 13; + * + * @return This builder for chaining. + */ + public Builder clearAssetType() { + assetType_ = getDefaultInstance().getAssetType(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
+     * The CAI asset type of the rule is evaluating, for joined asset types, it
+     * will be the corresponding primary asset types.
+     * 
+ * + * string asset_type = 13; + * + * @param value The bytes for assetType to set. + * @return This builder for chaining. + */ + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.Rule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.Rule) + private static final com.google.cloud.workloadmanager.v1.Rule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.Rule(); + } + + public static com.google.cloud.workloadmanager.v1.Rule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Rule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleExecutionResult.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleExecutionResult.java new file mode 100644 index 000000000000..11a7e09ec063 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleExecutionResult.java @@ -0,0 +1,1351 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Execution result summary per rule.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.RuleExecutionResult} + */ +@com.google.protobuf.Generated +public final class RuleExecutionResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.RuleExecutionResult) + RuleExecutionResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RuleExecutionResult"); + } + + // Use RuleExecutionResult.newBuilder() to construct. + private RuleExecutionResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RuleExecutionResult() { + rule_ = ""; + state_ = 0; + message_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.RuleExecutionResult.class, + com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder.class); + } + + /** + * + * + *
+   * Possible states of a rule execution like SUCCESS, FAILURE, etc.
+   * 
+ * + * Protobuf enum {@code google.cloud.workloadmanager.v1.RuleExecutionResult.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unknown state
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Execution completed successfully
+     * 
+ * + * STATE_SUCCESS = 1; + */ + STATE_SUCCESS(1), + /** + * + * + *
+     * Execution completed with failures
+     * 
+ * + * STATE_FAILURE = 2; + */ + STATE_FAILURE(2), + /** + * + * + *
+     * Execution was not executed
+     * 
+ * + * STATE_SKIPPED = 3; + */ + STATE_SKIPPED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Unknown state
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Execution completed successfully
+     * 
+ * + * STATE_SUCCESS = 1; + */ + public static final int STATE_SUCCESS_VALUE = 1; + + /** + * + * + *
+     * Execution completed with failures
+     * 
+ * + * STATE_FAILURE = 2; + */ + public static final int STATE_FAILURE_VALUE = 2; + + /** + * + * + *
+     * Execution was not executed
+     * 
+ * + * STATE_SKIPPED = 3; + */ + public static final int STATE_SKIPPED_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 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 STATE_SUCCESS; + case 2: + return STATE_FAILURE; + case 3: + return STATE_SKIPPED; + 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.workloadmanager.v1.RuleExecutionResult.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.workloadmanager.v1.RuleExecutionResult.State) + } + + public static final int RULE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object rule_ = ""; + + /** + * + * + *
+   * Rule name as plain text like `sap-hana-configured`.
+   * 
+ * + * string rule = 1; + * + * @return The rule. + */ + @java.lang.Override + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } + } + + /** + * + * + *
+   * Rule name as plain text like `sap-hana-configured`.
+   * 
+ * + * string rule = 1; + * + * @return The bytes for rule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The execution status.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.RuleExecutionResult.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The execution status.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.RuleExecutionResult.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleExecutionResult.State getState() { + com.google.cloud.workloadmanager.v1.RuleExecutionResult.State result = + com.google.cloud.workloadmanager.v1.RuleExecutionResult.State.forNumber(state_); + return result == null + ? com.google.cloud.workloadmanager.v1.RuleExecutionResult.State.UNRECOGNIZED + : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+   * Execution message, if any.
+   * 
+ * + * string message = 3; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + + /** + * + * + *
+   * Execution message, if any.
+   * 
+ * + * string message = 3; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESULT_COUNT_FIELD_NUMBER = 4; + private long resultCount_ = 0L; + + /** + * + * + *
+   * Number of violations.
+   * 
+ * + * int64 result_count = 4; + * + * @return The resultCount. + */ + @java.lang.Override + public long getResultCount() { + return resultCount_; + } + + public static final int SCANNED_RESOURCE_COUNT_FIELD_NUMBER = 5; + private long scannedResourceCount_ = 0L; + + /** + * + * + *
+   * Number of total scanned resources.
+   * 
+ * + * int64 scanned_resource_count = 5; + * + * @return The scannedResourceCount. + */ + @java.lang.Override + public long getScannedResourceCount() { + return scannedResourceCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(rule_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, rule_); + } + if (state_ + != com.google.cloud.workloadmanager.v1.RuleExecutionResult.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, message_); + } + if (resultCount_ != 0L) { + output.writeInt64(4, resultCount_); + } + if (scannedResourceCount_ != 0L) { + output.writeInt64(5, scannedResourceCount_); + } + 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(rule_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, rule_); + } + if (state_ + != com.google.cloud.workloadmanager.v1.RuleExecutionResult.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, message_); + } + if (resultCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, resultCount_); + } + if (scannedResourceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, scannedResourceCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.RuleExecutionResult)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.RuleExecutionResult other = + (com.google.cloud.workloadmanager.v1.RuleExecutionResult) obj; + + if (!getRule().equals(other.getRule())) return false; + if (state_ != other.state_) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (getResultCount() != other.getResultCount()) return false; + if (getScannedResourceCount() != other.getScannedResourceCount()) return false; + if (!getUnknownFields().equals(other.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) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + RESULT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResultCount()); + hash = (37 * hash) + SCANNED_RESOURCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getScannedResourceCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.RuleExecutionResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 result summary per rule.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.RuleExecutionResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.RuleExecutionResult) + com.google.cloud.workloadmanager.v1.RuleExecutionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.RuleExecutionResult.class, + com.google.cloud.workloadmanager.v1.RuleExecutionResult.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.RuleExecutionResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rule_ = ""; + state_ = 0; + message_ = ""; + resultCount_ = 0L; + scannedResourceCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleExecutionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleExecutionResult getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.RuleExecutionResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleExecutionResult build() { + com.google.cloud.workloadmanager.v1.RuleExecutionResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleExecutionResult buildPartial() { + com.google.cloud.workloadmanager.v1.RuleExecutionResult result = + new com.google.cloud.workloadmanager.v1.RuleExecutionResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.RuleExecutionResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rule_ = rule_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resultCount_ = resultCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.scannedResourceCount_ = scannedResourceCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.RuleExecutionResult) { + return mergeFrom((com.google.cloud.workloadmanager.v1.RuleExecutionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.RuleExecutionResult other) { + if (other == com.google.cloud.workloadmanager.v1.RuleExecutionResult.getDefaultInstance()) + return this; + if (!other.getRule().isEmpty()) { + rule_ = other.rule_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getResultCount() != 0L) { + setResultCount(other.getResultCount()); + } + if (other.getScannedResourceCount() != 0L) { + setScannedResourceCount(other.getScannedResourceCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + rule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + resultCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + scannedResourceCount_ = input.readInt64(); + 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 java.lang.Object rule_ = ""; + + /** + * + * + *
+     * Rule name as plain text like `sap-hana-configured`.
+     * 
+ * + * string rule = 1; + * + * @return The rule. + */ + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Rule name as plain text like `sap-hana-configured`.
+     * 
+ * + * string rule = 1; + * + * @return The bytes for rule. + */ + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Rule name as plain text like `sap-hana-configured`.
+     * 
+ * + * string rule = 1; + * + * @param value The rule to set. + * @return This builder for chaining. + */ + public Builder setRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Rule name as plain text like `sap-hana-configured`.
+     * 
+ * + * string rule = 1; + * + * @return This builder for chaining. + */ + public Builder clearRule() { + rule_ = getDefaultInstance().getRule(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Rule name as plain text like `sap-hana-configured`.
+     * 
+ * + * string rule = 1; + * + * @param value The bytes for rule to set. + * @return This builder for chaining. + */ + public Builder setRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rule_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The execution status.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.RuleExecutionResult.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The execution status.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.RuleExecutionResult.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The execution status.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.RuleExecutionResult.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleExecutionResult.State getState() { + com.google.cloud.workloadmanager.v1.RuleExecutionResult.State result = + com.google.cloud.workloadmanager.v1.RuleExecutionResult.State.forNumber(state_); + return result == null + ? com.google.cloud.workloadmanager.v1.RuleExecutionResult.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The execution status.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.RuleExecutionResult.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.workloadmanager.v1.RuleExecutionResult.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The execution status.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.RuleExecutionResult.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + + /** + * + * + *
+     * Execution message, if any.
+     * 
+ * + * string message = 3; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Execution message, if any.
+     * 
+ * + * string message = 3; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Execution message, if any.
+     * 
+ * + * string message = 3; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Execution message, if any.
+     * 
+ * + * string message = 3; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Execution message, if any.
+     * 
+ * + * string message = 3; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long resultCount_; + + /** + * + * + *
+     * Number of violations.
+     * 
+ * + * int64 result_count = 4; + * + * @return The resultCount. + */ + @java.lang.Override + public long getResultCount() { + return resultCount_; + } + + /** + * + * + *
+     * Number of violations.
+     * 
+ * + * int64 result_count = 4; + * + * @param value The resultCount to set. + * @return This builder for chaining. + */ + public Builder setResultCount(long value) { + + resultCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Number of violations.
+     * 
+ * + * int64 result_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearResultCount() { + bitField0_ = (bitField0_ & ~0x00000008); + resultCount_ = 0L; + onChanged(); + return this; + } + + private long scannedResourceCount_; + + /** + * + * + *
+     * Number of total scanned resources.
+     * 
+ * + * int64 scanned_resource_count = 5; + * + * @return The scannedResourceCount. + */ + @java.lang.Override + public long getScannedResourceCount() { + return scannedResourceCount_; + } + + /** + * + * + *
+     * Number of total scanned resources.
+     * 
+ * + * int64 scanned_resource_count = 5; + * + * @param value The scannedResourceCount to set. + * @return This builder for chaining. + */ + public Builder setScannedResourceCount(long value) { + + scannedResourceCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Number of total scanned resources.
+     * 
+ * + * int64 scanned_resource_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearScannedResourceCount() { + bitField0_ = (bitField0_ & ~0x00000010); + scannedResourceCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.RuleExecutionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.RuleExecutionResult) + private static final com.google.cloud.workloadmanager.v1.RuleExecutionResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.RuleExecutionResult(); + } + + public static com.google.cloud.workloadmanager.v1.RuleExecutionResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuleExecutionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleExecutionResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleExecutionResultOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleExecutionResultOrBuilder.java new file mode 100644 index 000000000000..0997a1b69446 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleExecutionResultOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface RuleExecutionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.RuleExecutionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Rule name as plain text like `sap-hana-configured`.
+   * 
+ * + * string rule = 1; + * + * @return The rule. + */ + java.lang.String getRule(); + + /** + * + * + *
+   * Rule name as plain text like `sap-hana-configured`.
+   * 
+ * + * string rule = 1; + * + * @return The bytes for rule. + */ + com.google.protobuf.ByteString getRuleBytes(); + + /** + * + * + *
+   * Output only. The execution status.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.RuleExecutionResult.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The execution status.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.RuleExecutionResult.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.workloadmanager.v1.RuleExecutionResult.State getState(); + + /** + * + * + *
+   * Execution message, if any.
+   * 
+ * + * string message = 3; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+   * Execution message, if any.
+   * 
+ * + * string message = 3; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * Number of violations.
+   * 
+ * + * int64 result_count = 4; + * + * @return The resultCount. + */ + long getResultCount(); + + /** + * + * + *
+   * Number of total scanned resources.
+   * 
+ * + * int64 scanned_resource_count = 5; + * + * @return The scannedResourceCount. + */ + long getScannedResourceCount(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleName.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleName.java new file mode 100644 index 000000000000..17e41d73a74f --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleName.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. + */ + +package com.google.cloud.workloadmanager.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 RuleName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_RULE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/rules/{rule}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String rule; + + @Deprecated + protected RuleName() { + project = null; + location = null; + rule = null; + } + + private RuleName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + rule = Preconditions.checkNotNull(builder.getRule()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRule() { + return rule; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RuleName of(String project, String location, String rule) { + return newBuilder().setProject(project).setLocation(location).setRule(rule).build(); + } + + public static String format(String project, String location, String rule) { + return newBuilder().setProject(project).setLocation(location).setRule(rule).build().toString(); + } + + public static RuleName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_RULE.validatedMatch( + formattedString, "RuleName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("rule")); + } + + 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 (RuleName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_RULE.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 (rule != null) { + fieldMapBuilder.put("rule", rule); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_RULE.instantiate( + "project", project, "location", location, "rule", rule); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RuleName that = ((RuleName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.rule, that.rule); + } + 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(rule); + return h; + } + + /** Builder for projects/{project}/locations/{location}/rules/{rule}. */ + public static class Builder { + private String project; + private String location; + private String rule; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRule() { + return rule; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRule(String rule) { + this.rule = rule; + return this; + } + + private Builder(RuleName ruleName) { + this.project = ruleName.project; + this.location = ruleName.location; + this.rule = ruleName.rule; + } + + public RuleName build() { + return new RuleName(this); + } + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleOrBuilder.java new file mode 100644 index 000000000000..fcd3a9f72a97 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleOrBuilder.java @@ -0,0 +1,396 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface RuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.Rule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Rule name.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Rule name.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The version of the rule.
+   * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + + /** + * + * + *
+   * Output only. The version of the rule.
+   * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); + + /** + * + * + *
+   * The name display in UI.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * The name display in UI.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Describe rule in plain language.
+   * 
+ * + * string description = 4; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Describe rule in plain language.
+   * 
+ * + * string description = 4; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * The severity of the rule.
+   * 
+ * + * string severity = 5; + * + * @return The severity. + */ + java.lang.String getSeverity(); + + /** + * + * + *
+   * The severity of the rule.
+   * 
+ * + * string severity = 5; + * + * @return The bytes for severity. + */ + com.google.protobuf.ByteString getSeverityBytes(); + + /** + * + * + *
+   * The primary category.
+   * 
+ * + * string primary_category = 6; + * + * @return The primaryCategory. + */ + java.lang.String getPrimaryCategory(); + + /** + * + * + *
+   * The primary category.
+   * 
+ * + * string primary_category = 6; + * + * @return The bytes for primaryCategory. + */ + com.google.protobuf.ByteString getPrimaryCategoryBytes(); + + /** + * + * + *
+   * The secondary category.
+   * 
+ * + * string secondary_category = 7; + * + * @return The secondaryCategory. + */ + java.lang.String getSecondaryCategory(); + + /** + * + * + *
+   * The secondary category.
+   * 
+ * + * string secondary_category = 7; + * + * @return The bytes for secondaryCategory. + */ + com.google.protobuf.ByteString getSecondaryCategoryBytes(); + + /** + * + * + *
+   * The message template for rule.
+   * 
+ * + * string error_message = 8; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + + /** + * + * + *
+   * The message template for rule.
+   * 
+ * + * string error_message = 8; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); + + /** + * + * + *
+   * The document url for the rule.
+   * 
+ * + * string uri = 9; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * The document url for the rule.
+   * 
+ * + * string uri = 9; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * The remediation for the rule.
+   * 
+ * + * string remediation = 10; + * + * @return The remediation. + */ + java.lang.String getRemediation(); + + /** + * + * + *
+   * The remediation for the rule.
+   * 
+ * + * string remediation = 10; + * + * @return The bytes for remediation. + */ + com.google.protobuf.ByteString getRemediationBytes(); + + /** + * + * + *
+   * List of user-defined tags.
+   * 
+ * + * repeated string tags = 11; + * + * @return A list containing the tags. + */ + java.util.List getTagsList(); + + /** + * + * + *
+   * List of user-defined tags.
+   * 
+ * + * repeated string tags = 11; + * + * @return The count of tags. + */ + int getTagsCount(); + + /** + * + * + *
+   * List of user-defined tags.
+   * 
+ * + * repeated string tags = 11; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + + /** + * + * + *
+   * List of user-defined tags.
+   * 
+ * + * repeated string tags = 11; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString getTagsBytes(int index); + + /** + * + * + *
+   * The type of the rule.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12; + * + * @return The enum numeric value on the wire for ruleType. + */ + int getRuleTypeValue(); + + /** + * + * + *
+   * The type of the rule.
+   * 
+ * + * .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12; + * + * @return The ruleType. + */ + com.google.cloud.workloadmanager.v1.Rule.RuleType getRuleType(); + + /** + * + * + *
+   * The CAI asset type of the rule is evaluating, for joined asset types, it
+   * will be the corresponding primary asset types.
+   * 
+ * + * string asset_type = 13; + * + * @return The assetType. + */ + java.lang.String getAssetType(); + + /** + * + * + *
+   * The CAI asset type of the rule is evaluating, for joined asset types, it
+   * will be the corresponding primary asset types.
+   * 
+ * + * string asset_type = 13; + * + * @return The bytes for assetType. + */ + com.google.protobuf.ByteString getAssetTypeBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleOutput.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleOutput.java new file mode 100644 index 000000000000..83a2c094c910 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleOutput.java @@ -0,0 +1,955 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * The rule output of the violation.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.RuleOutput} + */ +@com.google.protobuf.Generated +public final class RuleOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.RuleOutput) + RuleOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RuleOutput"); + } + + // Use RuleOutput.newBuilder() to construct. + private RuleOutput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RuleOutput() { + message_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleOutput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetDetails(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.RuleOutput.class, + com.google.cloud.workloadmanager.v1.RuleOutput.Builder.class); + } + + public static final int DETAILS_FIELD_NUMBER = 1; + + private static final class DetailsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleOutput_DetailsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField details_; + + private com.google.protobuf.MapField internalGetDetails() { + if (details_ == null) { + return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); + } + return details_; + } + + public int getDetailsCount() { + return internalGetDetails().getMap().size(); + } + + /** + * + * + *
+   * Output only. Violation details generated by rule.
+   * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDetails().getMap().containsKey(key); + } + + /** Use {@link #getDetailsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDetails() { + return getDetailsMap(); + } + + /** + * + * + *
+   * Output only. Violation details generated by rule.
+   * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getDetailsMap() { + return internalGetDetails().getMap(); + } + + /** + * + * + *
+   * Output only. Violation details generated by rule.
+   * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getDetailsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. Violation details generated by rule.
+   * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+   * Output only. The message generated by rule.
+   * 
+ * + * string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The message generated by rule.
+   * 
+ * + * string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = 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 { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetDetails(), DetailsDefaultEntryHolder.defaultEntry, 1); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, message_); + } + 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 : + internalGetDetails().getMap().entrySet()) { + com.google.protobuf.MapEntry details__ = + DetailsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, details__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.RuleOutput)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.RuleOutput other = + (com.google.cloud.workloadmanager.v1.RuleOutput) obj; + + if (!internalGetDetails().equals(other.internalGetDetails())) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.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 (!internalGetDetails().getMap().isEmpty()) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDetails().hashCode(); + } + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.RuleOutput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 rule output of the violation.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.RuleOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.RuleOutput) + com.google.cloud.workloadmanager.v1.RuleOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleOutput_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetDetails(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableDetails(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.RuleOutput.class, + com.google.cloud.workloadmanager.v1.RuleOutput.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.RuleOutput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableDetails().clear(); + message_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RuleOutput_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleOutput getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.RuleOutput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleOutput build() { + com.google.cloud.workloadmanager.v1.RuleOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleOutput buildPartial() { + com.google.cloud.workloadmanager.v1.RuleOutput result = + new com.google.cloud.workloadmanager.v1.RuleOutput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.RuleOutput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.details_ = internalGetDetails(); + result.details_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.message_ = message_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.RuleOutput) { + return mergeFrom((com.google.cloud.workloadmanager.v1.RuleOutput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.RuleOutput other) { + if (other == com.google.cloud.workloadmanager.v1.RuleOutput.getDefaultInstance()) return this; + internalGetMutableDetails().mergeFrom(other.internalGetDetails()); + bitField0_ |= 0x00000001; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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.protobuf.MapEntry details__ = + input.readMessage( + DetailsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDetails() + .getMutableMap() + .put(details__.getKey(), details__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + message_ = 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.protobuf.MapField details_; + + private com.google.protobuf.MapField internalGetDetails() { + if (details_ == null) { + return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); + } + return details_; + } + + private com.google.protobuf.MapField + internalGetMutableDetails() { + if (details_ == null) { + details_ = com.google.protobuf.MapField.newMapField(DetailsDefaultEntryHolder.defaultEntry); + } + if (!details_.isMutable()) { + details_ = details_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return details_; + } + + public int getDetailsCount() { + return internalGetDetails().getMap().size(); + } + + /** + * + * + *
+     * Output only. Violation details generated by rule.
+     * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDetails().getMap().containsKey(key); + } + + /** Use {@link #getDetailsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDetails() { + return getDetailsMap(); + } + + /** + * + * + *
+     * Output only. Violation details generated by rule.
+     * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getDetailsMap() { + return internalGetDetails().getMap(); + } + + /** + * + * + *
+     * Output only. Violation details generated by rule.
+     * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getDetailsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Output only. Violation details generated by rule.
+     * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDetails() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableDetails().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Output only. Violation details generated by rule.
+     * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDetails().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableDetails() { + bitField0_ |= 0x00000001; + return internalGetMutableDetails().getMutableMap(); + } + + /** + * + * + *
+     * Output only. Violation details generated by rule.
+     * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putDetails(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDetails().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Output only. Violation details generated by rule.
+     * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllDetails(java.util.Map values) { + internalGetMutableDetails().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + private java.lang.Object message_ = ""; + + /** + * + * + *
+     * Output only. The message generated by rule.
+     * 
+ * + * string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The message generated by rule.
+     * 
+ * + * string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The message generated by rule.
+     * 
+ * + * string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The message generated by rule.
+     * 
+ * + * string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The message generated by rule.
+     * 
+ * + * string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.RuleOutput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.RuleOutput) + private static final com.google.cloud.workloadmanager.v1.RuleOutput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.RuleOutput(); + } + + public static com.google.cloud.workloadmanager.v1.RuleOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuleOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleOutputOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleOutputOrBuilder.java new file mode 100644 index 000000000000..be1d7bfff1cc --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleOutputOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface RuleOutputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.RuleOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Violation details generated by rule.
+   * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDetailsCount(); + + /** + * + * + *
+   * Output only. Violation details generated by rule.
+   * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsDetails(java.lang.String key); + + /** Use {@link #getDetailsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getDetails(); + + /** + * + * + *
+   * Output only. Violation details generated by rule.
+   * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getDetailsMap(); + + /** + * + * + *
+   * Output only. Violation details generated by rule.
+   * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + java.lang.String getDetailsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Output only. Violation details generated by rule.
+   * 
+ * + * map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getDetailsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The message generated by rule.
+   * 
+ * + * string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+   * Output only. The message generated by rule.
+   * 
+ * + * string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RunEvaluationRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RunEvaluationRequest.java new file mode 100644 index 000000000000..a32e53b6a520 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RunEvaluationRequest.java @@ -0,0 +1,1397 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the RunEvaluation RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.RunEvaluationRequest} + */ +@com.google.protobuf.Generated +public final class RunEvaluationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.RunEvaluationRequest) + RunEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RunEvaluationRequest"); + } + + // Use RunEvaluationRequest.newBuilder() to construct. + private RunEvaluationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RunEvaluationRequest() { + name_ = ""; + executionId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RunEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RunEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.RunEvaluationRequest.class, + com.google.cloud.workloadmanager.v1.RunEvaluationRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the Evaluation using the form:
+   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+   * 
+ * + * + * 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 Evaluation using the form:
+   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+   * 
+ * + * + * 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 EXECUTION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object executionId_ = ""; + + /** + * + * + *
+   * Required. ID of the execution which will be created.
+   * 
+ * + * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The executionId. + */ + @java.lang.Override + public java.lang.String getExecutionId() { + java.lang.Object ref = executionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. ID of the execution which will be created.
+   * 
+ * + * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for executionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExecutionIdBytes() { + java.lang.Object ref = executionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + executionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_FIELD_NUMBER = 3; + private com.google.cloud.workloadmanager.v1.Execution execution_; + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + @java.lang.Override + public boolean hasExecution() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Execution getExecution() { + return execution_ == null + ? com.google.cloud.workloadmanager.v1.Execution.getDefaultInstance() + : execution_; + } + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ExecutionOrBuilder getExecutionOrBuilder() { + return execution_ == null + ? com.google.cloud.workloadmanager.v1.Execution.getDefaultInstance() + : execution_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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(executionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, executionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getExecution()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + 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(executionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, executionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExecution()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.RunEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.RunEvaluationRequest other = + (com.google.cloud.workloadmanager.v1.RunEvaluationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getExecutionId().equals(other.getExecutionId())) return false; + if (hasExecution() != other.hasExecution()) return false; + if (hasExecution()) { + if (!getExecution().equals(other.getExecution())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.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) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + if (hasExecution()) { + hash = (37 * hash) + EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getExecution().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.RunEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 RunEvaluation RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.RunEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.RunEvaluationRequest) + com.google.cloud.workloadmanager.v1.RunEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RunEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RunEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.RunEvaluationRequest.class, + com.google.cloud.workloadmanager.v1.RunEvaluationRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.RunEvaluationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExecutionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + executionId_ = ""; + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); + executionBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_RunEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RunEvaluationRequest getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.RunEvaluationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RunEvaluationRequest build() { + com.google.cloud.workloadmanager.v1.RunEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RunEvaluationRequest buildPartial() { + com.google.cloud.workloadmanager.v1.RunEvaluationRequest result = + new com.google.cloud.workloadmanager.v1.RunEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.RunEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.executionId_ = executionId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.RunEvaluationRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.RunEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.RunEvaluationRequest other) { + if (other == com.google.cloud.workloadmanager.v1.RunEvaluationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getExecutionId().isEmpty()) { + executionId_ = other.executionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasExecution()) { + mergeExecution(other.getExecution()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + executionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetExecutionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = 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 name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the Evaluation using the form:
+     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+     * 
+ * + * + * 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 Evaluation using the form:
+     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+     * 
+ * + * + * 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 Evaluation using the form:
+     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+     * 
+ * + * + * 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 Evaluation using the form:
+     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+     * 
+ * + * + * 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 Evaluation using the form:
+     * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+     * 
+ * + * + * 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 executionId_ = ""; + + /** + * + * + *
+     * Required. ID of the execution which will be created.
+     * 
+ * + * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The executionId. + */ + public java.lang.String getExecutionId() { + java.lang.Object ref = executionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. ID of the execution which will be created.
+     * 
+ * + * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for executionId. + */ + public com.google.protobuf.ByteString getExecutionIdBytes() { + java.lang.Object ref = executionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + executionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. ID of the execution which will be created.
+     * 
+ * + * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The executionId to set. + * @return This builder for chaining. + */ + public Builder setExecutionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the execution which will be created.
+     * 
+ * + * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearExecutionId() { + executionId_ = getDefaultInstance().getExecutionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the execution which will be created.
+     * 
+ * + * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for executionId to set. + * @return This builder for chaining. + */ + public Builder setExecutionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.workloadmanager.v1.Execution execution_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution, + com.google.cloud.workloadmanager.v1.Execution.Builder, + com.google.cloud.workloadmanager.v1.ExecutionOrBuilder> + executionBuilder_; + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + public boolean hasExecution() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + public com.google.cloud.workloadmanager.v1.Execution getExecution() { + if (executionBuilder_ == null) { + return execution_ == null + ? com.google.cloud.workloadmanager.v1.Execution.getDefaultInstance() + : execution_; + } else { + return executionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExecution(com.google.cloud.workloadmanager.v1.Execution value) { + if (executionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + execution_ = value; + } else { + executionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExecution( + com.google.cloud.workloadmanager.v1.Execution.Builder builderForValue) { + if (executionBuilder_ == null) { + execution_ = builderForValue.build(); + } else { + executionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExecution(com.google.cloud.workloadmanager.v1.Execution value) { + if (executionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && execution_ != null + && execution_ != com.google.cloud.workloadmanager.v1.Execution.getDefaultInstance()) { + getExecutionBuilder().mergeFrom(value); + } else { + execution_ = value; + } + } else { + executionBuilder_.mergeFrom(value); + } + if (execution_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExecution() { + bitField0_ = (bitField0_ & ~0x00000004); + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); + executionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.workloadmanager.v1.Execution.Builder getExecutionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetExecutionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.workloadmanager.v1.ExecutionOrBuilder getExecutionOrBuilder() { + if (executionBuilder_ != null) { + return executionBuilder_.getMessageOrBuilder(); + } else { + return execution_ == null + ? com.google.cloud.workloadmanager.v1.Execution.getDefaultInstance() + : execution_; + } + } + + /** + * + * + *
+     * Required. The resource being created.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution, + com.google.cloud.workloadmanager.v1.Execution.Builder, + com.google.cloud.workloadmanager.v1.ExecutionOrBuilder> + internalGetExecutionFieldBuilder() { + if (executionBuilder_ == null) { + executionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Execution, + com.google.cloud.workloadmanager.v1.Execution.Builder, + com.google.cloud.workloadmanager.v1.ExecutionOrBuilder>( + getExecution(), getParentForChildren(), isClean()); + execution_ = null; + } + return executionBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.RunEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.RunEvaluationRequest) + private static final com.google.cloud.workloadmanager.v1.RunEvaluationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.RunEvaluationRequest(); + } + + public static com.google.cloud.workloadmanager.v1.RunEvaluationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RunEvaluationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RunEvaluationRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RunEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..e90b95616a20 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RunEvaluationRequestOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface RunEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.RunEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Evaluation using the form:
+   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+   * 
+ * + * + * 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 Evaluation using the form:
+   * `projects/{project}/locations/{location}/evaluations/{evaluation}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. ID of the execution which will be created.
+   * 
+ * + * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The executionId. + */ + java.lang.String getExecutionId(); + + /** + * + * + *
+   * Required. ID of the execution which will be created.
+   * 
+ * + * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for executionId. + */ + com.google.protobuf.ByteString getExecutionIdBytes(); + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + boolean hasExecution(); + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + com.google.cloud.workloadmanager.v1.Execution getExecution(); + + /** + * + * + *
+   * Required. The resource being created.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.workloadmanager.v1.ExecutionOrBuilder getExecutionOrBuilder(); + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ScannedResource.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ScannedResource.java new file mode 100644 index 000000000000..9eab21e14d64 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ScannedResource.java @@ -0,0 +1,785 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * A scanned resource.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ScannedResource} + */ +@com.google.protobuf.Generated +public final class ScannedResource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ScannedResource) + ScannedResourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScannedResource"); + } + + // Use ScannedResource.newBuilder() to construct. + private ScannedResource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScannedResource() { + resource_ = ""; + type_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ScannedResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ScannedResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ScannedResource.class, + com.google.cloud.workloadmanager.v1.ScannedResource.Builder.class); + } + + public static final int RESOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Resource name.
+   * 
+ * + * string resource = 1; + * + * @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; + } + } + + /** + * + * + *
+   * Resource name.
+   * 
+ * + * string resource = 1; + * + * @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 TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Resource type.
+   * 
+ * + * string type = 2; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Resource type.
+   * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = 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(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 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(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(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.workloadmanager.v1.ScannedResource)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ScannedResource other = + (com.google.cloud.workloadmanager.v1.ScannedResource) obj; + + if (!getResource().equals(other.getResource())) return false; + if (!getType().equals(other.getType())) return false; + if (!getUnknownFields().equals(other.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) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.ScannedResource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 scanned resource.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ScannedResource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ScannedResource) + com.google.cloud.workloadmanager.v1.ScannedResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ScannedResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ScannedResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ScannedResource.class, + com.google.cloud.workloadmanager.v1.ScannedResource.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ScannedResource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resource_ = ""; + type_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ScannedResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ScannedResource getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ScannedResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ScannedResource build() { + com.google.cloud.workloadmanager.v1.ScannedResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ScannedResource buildPartial() { + com.google.cloud.workloadmanager.v1.ScannedResource result = + new com.google.cloud.workloadmanager.v1.ScannedResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ScannedResource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resource_ = resource_; + } + 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.workloadmanager.v1.ScannedResource) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ScannedResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ScannedResource other) { + if (other == com.google.cloud.workloadmanager.v1.ScannedResource.getDefaultInstance()) + return this; + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + 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: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + type_ = 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 resource_ = ""; + + /** + * + * + *
+     * Resource name.
+     * 
+ * + * string resource = 1; + * + * @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; + } + } + + /** + * + * + *
+     * Resource name.
+     * 
+ * + * string resource = 1; + * + * @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; + } + } + + /** + * + * + *
+     * Resource name.
+     * 
+ * + * string resource = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Resource name.
+     * 
+ * + * string resource = 1; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Resource name.
+     * 
+ * + * string resource = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
+     * Resource type.
+     * 
+ * + * string type = 2; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Resource type.
+     * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Resource type.
+     * 
+ * + * string type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Resource type.
+     * 
+ * + * string type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Resource type.
+     * 
+ * + * string type = 2; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ScannedResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ScannedResource) + private static final com.google.cloud.workloadmanager.v1.ScannedResource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ScannedResource(); + } + + public static com.google.cloud.workloadmanager.v1.ScannedResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScannedResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ScannedResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ScannedResourceOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ScannedResourceOrBuilder.java new file mode 100644 index 000000000000..5380bbf9b80f --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ScannedResourceOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ScannedResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ScannedResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name.
+   * 
+ * + * string resource = 1; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Resource name.
+   * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * Resource type.
+   * 
+ * + * string type = 2; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Resource type.
+   * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ShellCommand.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ShellCommand.java new file mode 100644 index 000000000000..caf71957a9b7 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ShellCommand.java @@ -0,0 +1,882 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * A ShellCommand is invoked via the agent's command line executor.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ShellCommand} + */ +@com.google.protobuf.Generated +public final class ShellCommand extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ShellCommand) + ShellCommandOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ShellCommand"); + } + + // Use ShellCommand.newBuilder() to construct. + private ShellCommand(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ShellCommand() { + command_ = ""; + args_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ShellCommand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ShellCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ShellCommand.class, + com.google.cloud.workloadmanager.v1.ShellCommand.Builder.class); + } + + public static final int COMMAND_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object command_ = ""; + + /** + * + * + *
+   * The name of the command to be executed.
+   * 
+ * + * string command = 1; + * + * @return The command. + */ + @java.lang.Override + public java.lang.String getCommand() { + java.lang.Object ref = command_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + command_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the command to be executed.
+   * 
+ * + * string command = 1; + * + * @return The bytes for command. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommandBytes() { + java.lang.Object ref = command_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + command_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object args_ = ""; + + /** + * + * + *
+   * Arguments to be passed to the command.
+   * 
+ * + * string args = 2; + * + * @return The args. + */ + @java.lang.Override + public java.lang.String getArgs() { + java.lang.Object ref = args_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + args_ = s; + return s; + } + } + + /** + * + * + *
+   * Arguments to be passed to the command.
+   * 
+ * + * string args = 2; + * + * @return The bytes for args. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArgsBytes() { + java.lang.Object ref = args_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + args_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 3; + private int timeoutSeconds_ = 0; + + /** + * + * + *
+   * Optional. If not specified, the default timeout is 60 seconds.
+   * 
+ * + * int32 timeout_seconds = 3; + * + * @return The timeoutSeconds. + */ + @java.lang.Override + public int getTimeoutSeconds() { + return timeoutSeconds_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(command_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, command_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(args_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, args_); + } + if (timeoutSeconds_ != 0) { + output.writeInt32(3, timeoutSeconds_); + } + 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(command_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, command_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(args_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, args_); + } + if (timeoutSeconds_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, timeoutSeconds_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.ShellCommand)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ShellCommand other = + (com.google.cloud.workloadmanager.v1.ShellCommand) obj; + + if (!getCommand().equals(other.getCommand())) return false; + if (!getArgs().equals(other.getArgs())) return false; + if (getTimeoutSeconds() != other.getTimeoutSeconds()) return false; + if (!getUnknownFields().equals(other.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) + COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getCommand().hashCode(); + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgs().hashCode(); + hash = (37 * hash) + TIMEOUT_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getTimeoutSeconds(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.ShellCommand prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ShellCommand is invoked via the agent's command line executor.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ShellCommand} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ShellCommand) + com.google.cloud.workloadmanager.v1.ShellCommandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ShellCommand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ShellCommand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ShellCommand.class, + com.google.cloud.workloadmanager.v1.ShellCommand.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ShellCommand.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + command_ = ""; + args_ = ""; + timeoutSeconds_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ShellCommand_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ShellCommand getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ShellCommand.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ShellCommand build() { + com.google.cloud.workloadmanager.v1.ShellCommand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ShellCommand buildPartial() { + com.google.cloud.workloadmanager.v1.ShellCommand result = + new com.google.cloud.workloadmanager.v1.ShellCommand(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ShellCommand result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.command_ = command_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.args_ = args_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeoutSeconds_ = timeoutSeconds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.ShellCommand) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ShellCommand) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ShellCommand other) { + if (other == com.google.cloud.workloadmanager.v1.ShellCommand.getDefaultInstance()) + return this; + if (!other.getCommand().isEmpty()) { + command_ = other.command_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getArgs().isEmpty()) { + args_ = other.args_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTimeoutSeconds() != 0) { + setTimeoutSeconds(other.getTimeoutSeconds()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + command_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + args_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + timeoutSeconds_ = 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 command_ = ""; + + /** + * + * + *
+     * The name of the command to be executed.
+     * 
+ * + * string command = 1; + * + * @return The command. + */ + public java.lang.String getCommand() { + java.lang.Object ref = command_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + command_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the command to be executed.
+     * 
+ * + * string command = 1; + * + * @return The bytes for command. + */ + public com.google.protobuf.ByteString getCommandBytes() { + java.lang.Object ref = command_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + command_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the command to be executed.
+     * 
+ * + * string command = 1; + * + * @param value The command to set. + * @return This builder for chaining. + */ + public Builder setCommand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + command_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the command to be executed.
+     * 
+ * + * string command = 1; + * + * @return This builder for chaining. + */ + public Builder clearCommand() { + command_ = getDefaultInstance().getCommand(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the command to be executed.
+     * 
+ * + * string command = 1; + * + * @param value The bytes for command to set. + * @return This builder for chaining. + */ + public Builder setCommandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + command_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object args_ = ""; + + /** + * + * + *
+     * Arguments to be passed to the command.
+     * 
+ * + * string args = 2; + * + * @return The args. + */ + public java.lang.String getArgs() { + java.lang.Object ref = args_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + args_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Arguments to be passed to the command.
+     * 
+ * + * string args = 2; + * + * @return The bytes for args. + */ + public com.google.protobuf.ByteString getArgsBytes() { + java.lang.Object ref = args_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + args_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Arguments to be passed to the command.
+     * 
+ * + * string args = 2; + * + * @param value The args to set. + * @return This builder for chaining. + */ + public Builder setArgs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + args_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Arguments to be passed to the command.
+     * 
+ * + * string args = 2; + * + * @return This builder for chaining. + */ + public Builder clearArgs() { + args_ = getDefaultInstance().getArgs(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Arguments to be passed to the command.
+     * 
+ * + * string args = 2; + * + * @param value The bytes for args to set. + * @return This builder for chaining. + */ + public Builder setArgsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + args_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int timeoutSeconds_; + + /** + * + * + *
+     * Optional. If not specified, the default timeout is 60 seconds.
+     * 
+ * + * int32 timeout_seconds = 3; + * + * @return The timeoutSeconds. + */ + @java.lang.Override + public int getTimeoutSeconds() { + return timeoutSeconds_; + } + + /** + * + * + *
+     * Optional. If not specified, the default timeout is 60 seconds.
+     * 
+ * + * int32 timeout_seconds = 3; + * + * @param value The timeoutSeconds to set. + * @return This builder for chaining. + */ + public Builder setTimeoutSeconds(int value) { + + timeoutSeconds_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If not specified, the default timeout is 60 seconds.
+     * 
+ * + * int32 timeout_seconds = 3; + * + * @return This builder for chaining. + */ + public Builder clearTimeoutSeconds() { + bitField0_ = (bitField0_ & ~0x00000004); + timeoutSeconds_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ShellCommand) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ShellCommand) + private static final com.google.cloud.workloadmanager.v1.ShellCommand DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ShellCommand(); + } + + public static com.google.cloud.workloadmanager.v1.ShellCommand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShellCommand parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ShellCommand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ShellCommandOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ShellCommandOrBuilder.java new file mode 100644 index 000000000000..a1fc574a3509 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ShellCommandOrBuilder.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ShellCommandOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ShellCommand) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the command to be executed.
+   * 
+ * + * string command = 1; + * + * @return The command. + */ + java.lang.String getCommand(); + + /** + * + * + *
+   * The name of the command to be executed.
+   * 
+ * + * string command = 1; + * + * @return The bytes for command. + */ + com.google.protobuf.ByteString getCommandBytes(); + + /** + * + * + *
+   * Arguments to be passed to the command.
+   * 
+ * + * string args = 2; + * + * @return The args. + */ + java.lang.String getArgs(); + + /** + * + * + *
+   * Arguments to be passed to the command.
+   * 
+ * + * string args = 2; + * + * @return The bytes for args. + */ + com.google.protobuf.ByteString getArgsBytes(); + + /** + * + * + *
+   * Optional. If not specified, the default timeout is 60 seconds.
+   * 
+ * + * int32 timeout_seconds = 3; + * + * @return The timeoutSeconds. + */ + int getTimeoutSeconds(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/UpdateEvaluationRequest.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/UpdateEvaluationRequest.java new file mode 100644 index 000000000000..0a377cbc2037 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/UpdateEvaluationRequest.java @@ -0,0 +1,1323 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * Request message for the UpdateEvaluation RPC.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.UpdateEvaluationRequest} + */ +@com.google.protobuf.Generated +public final class UpdateEvaluationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.UpdateEvaluationRequest) + UpdateEvaluationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateEvaluationRequest"); + } + + // Use UpdateEvaluationRequest.newBuilder() to construct. + private UpdateEvaluationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateEvaluationRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_UpdateEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_UpdateEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest.class, + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Evaluation resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Evaluation resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
+   * Evaluation resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int EVALUATION_FIELD_NUMBER = 2; + private com.google.cloud.workloadmanager.v1.Evaluation evaluation_; + + /** + * + * + *
+   * Required. The resource being updated.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + @java.lang.Override + public boolean hasEvaluation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The resource being updated.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.Evaluation getEvaluation() { + return evaluation_ == null + ? com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance() + : evaluation_; + } + + /** + * + * + *
+   * Required. The resource being updated.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.EvaluationOrBuilder getEvaluationOrBuilder() { + return evaluation_ == null + ? com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance() + : evaluation_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEvaluation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + 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, getEvaluation()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest other = + (com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasEvaluation() != other.hasEvaluation()) return false; + if (hasEvaluation()) { + if (!getEvaluation().equals(other.getEvaluation())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.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 (hasEvaluation()) { + hash = (37 * hash) + EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getEvaluation().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 UpdateEvaluation RPC.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.UpdateEvaluationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.UpdateEvaluationRequest) + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_UpdateEvaluationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_UpdateEvaluationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest.class, + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest.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(); + internalGetEvaluationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + evaluation_ = null; + if (evaluationBuilder_ != null) { + evaluationBuilder_.dispose(); + evaluationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_UpdateEvaluationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest build() { + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest buildPartial() { + com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest result = + new com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest 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.evaluation_ = evaluationBuilder_ == null ? evaluation_ : evaluationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest) { + return mergeFrom((com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest other) { + if (other == com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasEvaluation()) { + mergeEvaluation(other.getEvaluation()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetEvaluationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 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. Field mask is used to specify the fields to be overwritten in the
+     * Evaluation resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Evaluation resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
+     * Evaluation resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Evaluation resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Evaluation resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Evaluation resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Evaluation resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Evaluation resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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. Field mask is used to specify the fields to be overwritten in the
+     * Evaluation resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.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_; + } + + private com.google.cloud.workloadmanager.v1.Evaluation evaluation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Evaluation, + com.google.cloud.workloadmanager.v1.Evaluation.Builder, + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder> + evaluationBuilder_; + + /** + * + * + *
+     * Required. The resource being updated.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + public boolean hasEvaluation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The resource being updated.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + public com.google.cloud.workloadmanager.v1.Evaluation getEvaluation() { + if (evaluationBuilder_ == null) { + return evaluation_ == null + ? com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance() + : evaluation_; + } else { + return evaluationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The resource being updated.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluation(com.google.cloud.workloadmanager.v1.Evaluation value) { + if (evaluationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluation_ = value; + } else { + evaluationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEvaluation( + com.google.cloud.workloadmanager.v1.Evaluation.Builder builderForValue) { + if (evaluationBuilder_ == null) { + evaluation_ = builderForValue.build(); + } else { + evaluationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEvaluation(com.google.cloud.workloadmanager.v1.Evaluation value) { + if (evaluationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && evaluation_ != null + && evaluation_ != com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance()) { + getEvaluationBuilder().mergeFrom(value); + } else { + evaluation_ = value; + } + } else { + evaluationBuilder_.mergeFrom(value); + } + if (evaluation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The resource being updated.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEvaluation() { + bitField0_ = (bitField0_ & ~0x00000002); + evaluation_ = null; + if (evaluationBuilder_ != null) { + evaluationBuilder_.dispose(); + evaluationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.workloadmanager.v1.Evaluation.Builder getEvaluationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEvaluationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The resource being updated.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.workloadmanager.v1.EvaluationOrBuilder getEvaluationOrBuilder() { + if (evaluationBuilder_ != null) { + return evaluationBuilder_.getMessageOrBuilder(); + } else { + return evaluation_ == null + ? com.google.cloud.workloadmanager.v1.Evaluation.getDefaultInstance() + : evaluation_; + } + } + + /** + * + * + *
+     * Required. The resource being updated.
+     * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Evaluation, + com.google.cloud.workloadmanager.v1.Evaluation.Builder, + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder> + internalGetEvaluationFieldBuilder() { + if (evaluationBuilder_ == null) { + evaluationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.workloadmanager.v1.Evaluation, + com.google.cloud.workloadmanager.v1.Evaluation.Builder, + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder>( + getEvaluation(), getParentForChildren(), isClean()); + evaluation_ = null; + } + return evaluationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional 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 since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.UpdateEvaluationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.UpdateEvaluationRequest) + private static final com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest(); + } + + public static com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/UpdateEvaluationRequestOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/UpdateEvaluationRequestOrBuilder.java new file mode 100644 index 000000000000..fadff9c38223 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/UpdateEvaluationRequestOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface UpdateEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.UpdateEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Evaluation resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Evaluation resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Evaluation resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The resource being updated.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluation field is set. + */ + boolean hasEvaluation(); + + /** + * + * + *
+   * Required. The resource being updated.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluation. + */ + com.google.cloud.workloadmanager.v1.Evaluation getEvaluation(); + + /** + * + * + *
+   * Required. The resource being updated.
+   * 
+ * + * + * .google.cloud.workloadmanager.v1.Evaluation evaluation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.workloadmanager.v1.EvaluationOrBuilder getEvaluationOrBuilder(); + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional 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 since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ViolationDetails.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ViolationDetails.java new file mode 100644 index 000000000000..9de1a5eafc33 --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ViolationDetails.java @@ -0,0 +1,1699 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +/** + * + * + *
+ * The violation in an evaluation result.
+ * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ViolationDetails} + */ +@com.google.protobuf.Generated +public final class ViolationDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.workloadmanager.v1.ViolationDetails) + ViolationDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ViolationDetails"); + } + + // Use ViolationDetails.newBuilder() to construct. + private ViolationDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ViolationDetails() { + asset_ = ""; + serviceAccount_ = ""; + ruleOutput_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ViolationDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetObserved(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ViolationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ViolationDetails.class, + com.google.cloud.workloadmanager.v1.ViolationDetails.Builder.class); + } + + public static final int ASSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object asset_ = ""; + + /** + * + * + *
+   * The name of the asset.
+   * 
+ * + * string asset = 1; + * + * @return The asset. + */ + @java.lang.Override + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the asset.
+   * 
+ * + * string asset = 1; + * + * @return The bytes for asset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+   * The service account associated with the resource.
+   * 
+ * + * string service_account = 2; + * + * @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; + } + } + + /** + * + * + *
+   * The service account associated with the resource.
+   * 
+ * + * string service_account = 2; + * + * @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 OBSERVED_FIELD_NUMBER = 3; + + private static final class ObservedDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ViolationDetails_ObservedEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField observed_; + + private com.google.protobuf.MapField internalGetObserved() { + if (observed_ == null) { + return com.google.protobuf.MapField.emptyMapField(ObservedDefaultEntryHolder.defaultEntry); + } + return observed_; + } + + public int getObservedCount() { + return internalGetObserved().getMap().size(); + } + + /** + * + * + *
+   * Details of the violation.
+   * 
+ * + * map<string, string> observed = 3; + */ + @java.lang.Override + public boolean containsObserved(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetObserved().getMap().containsKey(key); + } + + /** Use {@link #getObservedMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getObserved() { + return getObservedMap(); + } + + /** + * + * + *
+   * Details of the violation.
+   * 
+ * + * map<string, string> observed = 3; + */ + @java.lang.Override + public java.util.Map getObservedMap() { + return internalGetObserved().getMap(); + } + + /** + * + * + *
+   * Details of the violation.
+   * 
+ * + * map<string, string> observed = 3; + */ + @java.lang.Override + public /* nullable */ java.lang.String getObservedOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetObserved().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Details of the violation.
+   * 
+ * + * map<string, string> observed = 3; + */ + @java.lang.Override + public java.lang.String getObservedOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetObserved().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int RULE_OUTPUT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List ruleOutput_; + + /** + * + * + *
+   * Output only. The rule output of the violation.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getRuleOutputList() { + return ruleOutput_; + } + + /** + * + * + *
+   * Output only. The rule output of the violation.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRuleOutputOrBuilderList() { + return ruleOutput_; + } + + /** + * + * + *
+   * Output only. The rule output of the violation.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRuleOutputCount() { + return ruleOutput_.size(); + } + + /** + * + * + *
+   * Output only. The rule output of the violation.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleOutput getRuleOutput(int index) { + return ruleOutput_.get(index); + } + + /** + * + * + *
+   * Output only. The rule output of the violation.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.workloadmanager.v1.RuleOutputOrBuilder getRuleOutputOrBuilder(int index) { + return ruleOutput_.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(asset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, asset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, serviceAccount_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetObserved(), ObservedDefaultEntryHolder.defaultEntry, 3); + for (int i = 0; i < ruleOutput_.size(); i++) { + output.writeMessage(4, ruleOutput_.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(asset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, asset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, serviceAccount_); + } + for (java.util.Map.Entry entry : + internalGetObserved().getMap().entrySet()) { + com.google.protobuf.MapEntry observed__ = + ObservedDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, observed__); + } + for (int i = 0; i < ruleOutput_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, ruleOutput_.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.workloadmanager.v1.ViolationDetails)) { + return super.equals(obj); + } + com.google.cloud.workloadmanager.v1.ViolationDetails other = + (com.google.cloud.workloadmanager.v1.ViolationDetails) obj; + + if (!getAsset().equals(other.getAsset())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!internalGetObserved().equals(other.internalGetObserved())) return false; + if (!getRuleOutputList().equals(other.getRuleOutputList())) return false; + if (!getUnknownFields().equals(other.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) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + if (!internalGetObserved().getMap().isEmpty()) { + hash = (37 * hash) + OBSERVED_FIELD_NUMBER; + hash = (53 * hash) + internalGetObserved().hashCode(); + } + if (getRuleOutputCount() > 0) { + hash = (37 * hash) + RULE_OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getRuleOutputList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.workloadmanager.v1.ViolationDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 violation in an evaluation result.
+   * 
+ * + * Protobuf type {@code google.cloud.workloadmanager.v1.ViolationDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.workloadmanager.v1.ViolationDetails) + com.google.cloud.workloadmanager.v1.ViolationDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ViolationDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetObserved(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableObserved(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ViolationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workloadmanager.v1.ViolationDetails.class, + com.google.cloud.workloadmanager.v1.ViolationDetails.Builder.class); + } + + // Construct using com.google.cloud.workloadmanager.v1.ViolationDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + asset_ = ""; + serviceAccount_ = ""; + internalGetMutableObserved().clear(); + if (ruleOutputBuilder_ == null) { + ruleOutput_ = java.util.Collections.emptyList(); + } else { + ruleOutput_ = null; + ruleOutputBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workloadmanager.v1.WorkloadManagerServiceProto + .internal_static_google_cloud_workloadmanager_v1_ViolationDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ViolationDetails getDefaultInstanceForType() { + return com.google.cloud.workloadmanager.v1.ViolationDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ViolationDetails build() { + com.google.cloud.workloadmanager.v1.ViolationDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ViolationDetails buildPartial() { + com.google.cloud.workloadmanager.v1.ViolationDetails result = + new com.google.cloud.workloadmanager.v1.ViolationDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.workloadmanager.v1.ViolationDetails result) { + if (ruleOutputBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + ruleOutput_ = java.util.Collections.unmodifiableList(ruleOutput_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.ruleOutput_ = ruleOutput_; + } else { + result.ruleOutput_ = ruleOutputBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.workloadmanager.v1.ViolationDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.asset_ = asset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.observed_ = internalGetObserved(); + result.observed_.makeImmutable(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.workloadmanager.v1.ViolationDetails) { + return mergeFrom((com.google.cloud.workloadmanager.v1.ViolationDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workloadmanager.v1.ViolationDetails other) { + if (other == com.google.cloud.workloadmanager.v1.ViolationDetails.getDefaultInstance()) + return this; + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000002; + onChanged(); + } + internalGetMutableObserved().mergeFrom(other.internalGetObserved()); + bitField0_ |= 0x00000004; + if (ruleOutputBuilder_ == null) { + if (!other.ruleOutput_.isEmpty()) { + if (ruleOutput_.isEmpty()) { + ruleOutput_ = other.ruleOutput_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureRuleOutputIsMutable(); + ruleOutput_.addAll(other.ruleOutput_); + } + onChanged(); + } + } else { + if (!other.ruleOutput_.isEmpty()) { + if (ruleOutputBuilder_.isEmpty()) { + ruleOutputBuilder_.dispose(); + ruleOutputBuilder_ = null; + ruleOutput_ = other.ruleOutput_; + bitField0_ = (bitField0_ & ~0x00000008); + ruleOutputBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRuleOutputFieldBuilder() + : null; + } else { + ruleOutputBuilder_.addAllMessages(other.ruleOutput_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + asset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry observed__ = + input.readMessage( + ObservedDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableObserved() + .getMutableMap() + .put(observed__.getKey(), observed__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.workloadmanager.v1.RuleOutput m = + input.readMessage( + com.google.cloud.workloadmanager.v1.RuleOutput.parser(), extensionRegistry); + if (ruleOutputBuilder_ == null) { + ensureRuleOutputIsMutable(); + ruleOutput_.add(m); + } else { + ruleOutputBuilder_.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 asset_ = ""; + + /** + * + * + *
+     * The name of the asset.
+     * 
+ * + * string asset = 1; + * + * @return The asset. + */ + public java.lang.String getAsset() { + java.lang.Object ref = asset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + asset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the asset.
+     * 
+ * + * string asset = 1; + * + * @return The bytes for asset. + */ + public com.google.protobuf.ByteString getAssetBytes() { + java.lang.Object ref = asset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + asset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the asset.
+     * 
+ * + * string asset = 1; + * + * @param value The asset to set. + * @return This builder for chaining. + */ + public Builder setAsset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + asset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the asset.
+     * 
+ * + * string asset = 1; + * + * @return This builder for chaining. + */ + public Builder clearAsset() { + asset_ = getDefaultInstance().getAsset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the asset.
+     * 
+ * + * string asset = 1; + * + * @param value The bytes for asset to set. + * @return This builder for chaining. + */ + public Builder setAssetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + asset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
+     * The service account associated with the resource.
+     * 
+ * + * string service_account = 2; + * + * @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; + } + } + + /** + * + * + *
+     * The service account associated with the resource.
+     * 
+ * + * string service_account = 2; + * + * @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; + } + } + + /** + * + * + *
+     * The service account associated with the resource.
+     * 
+ * + * string service_account = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The service account associated with the resource.
+     * 
+ * + * string service_account = 2; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The service account associated with the resource.
+     * 
+ * + * string service_account = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.MapField observed_; + + private com.google.protobuf.MapField internalGetObserved() { + if (observed_ == null) { + return com.google.protobuf.MapField.emptyMapField(ObservedDefaultEntryHolder.defaultEntry); + } + return observed_; + } + + private com.google.protobuf.MapField + internalGetMutableObserved() { + if (observed_ == null) { + observed_ = + com.google.protobuf.MapField.newMapField(ObservedDefaultEntryHolder.defaultEntry); + } + if (!observed_.isMutable()) { + observed_ = observed_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return observed_; + } + + public int getObservedCount() { + return internalGetObserved().getMap().size(); + } + + /** + * + * + *
+     * Details of the violation.
+     * 
+ * + * map<string, string> observed = 3; + */ + @java.lang.Override + public boolean containsObserved(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetObserved().getMap().containsKey(key); + } + + /** Use {@link #getObservedMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getObserved() { + return getObservedMap(); + } + + /** + * + * + *
+     * Details of the violation.
+     * 
+ * + * map<string, string> observed = 3; + */ + @java.lang.Override + public java.util.Map getObservedMap() { + return internalGetObserved().getMap(); + } + + /** + * + * + *
+     * Details of the violation.
+     * 
+ * + * map<string, string> observed = 3; + */ + @java.lang.Override + public /* nullable */ java.lang.String getObservedOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetObserved().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Details of the violation.
+     * 
+ * + * map<string, string> observed = 3; + */ + @java.lang.Override + public java.lang.String getObservedOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetObserved().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearObserved() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableObserved().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Details of the violation.
+     * 
+ * + * map<string, string> observed = 3; + */ + public Builder removeObserved(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableObserved().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableObserved() { + bitField0_ |= 0x00000004; + return internalGetMutableObserved().getMutableMap(); + } + + /** + * + * + *
+     * Details of the violation.
+     * 
+ * + * map<string, string> observed = 3; + */ + public Builder putObserved(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableObserved().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+     * Details of the violation.
+     * 
+ * + * map<string, string> observed = 3; + */ + public Builder putAllObserved(java.util.Map values) { + internalGetMutableObserved().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private java.util.List ruleOutput_ = + java.util.Collections.emptyList(); + + private void ensureRuleOutputIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + ruleOutput_ = + new java.util.ArrayList(ruleOutput_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.RuleOutput, + com.google.cloud.workloadmanager.v1.RuleOutput.Builder, + com.google.cloud.workloadmanager.v1.RuleOutputOrBuilder> + ruleOutputBuilder_; + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getRuleOutputList() { + if (ruleOutputBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleOutput_); + } else { + return ruleOutputBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRuleOutputCount() { + if (ruleOutputBuilder_ == null) { + return ruleOutput_.size(); + } else { + return ruleOutputBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.RuleOutput getRuleOutput(int index) { + if (ruleOutputBuilder_ == null) { + return ruleOutput_.get(index); + } else { + return ruleOutputBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRuleOutput(int index, com.google.cloud.workloadmanager.v1.RuleOutput value) { + if (ruleOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleOutputIsMutable(); + ruleOutput_.set(index, value); + onChanged(); + } else { + ruleOutputBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRuleOutput( + int index, com.google.cloud.workloadmanager.v1.RuleOutput.Builder builderForValue) { + if (ruleOutputBuilder_ == null) { + ensureRuleOutputIsMutable(); + ruleOutput_.set(index, builderForValue.build()); + onChanged(); + } else { + ruleOutputBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRuleOutput(com.google.cloud.workloadmanager.v1.RuleOutput value) { + if (ruleOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleOutputIsMutable(); + ruleOutput_.add(value); + onChanged(); + } else { + ruleOutputBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRuleOutput(int index, com.google.cloud.workloadmanager.v1.RuleOutput value) { + if (ruleOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleOutputIsMutable(); + ruleOutput_.add(index, value); + onChanged(); + } else { + ruleOutputBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRuleOutput( + com.google.cloud.workloadmanager.v1.RuleOutput.Builder builderForValue) { + if (ruleOutputBuilder_ == null) { + ensureRuleOutputIsMutable(); + ruleOutput_.add(builderForValue.build()); + onChanged(); + } else { + ruleOutputBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRuleOutput( + int index, com.google.cloud.workloadmanager.v1.RuleOutput.Builder builderForValue) { + if (ruleOutputBuilder_ == null) { + ensureRuleOutputIsMutable(); + ruleOutput_.add(index, builderForValue.build()); + onChanged(); + } else { + ruleOutputBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRuleOutput( + java.lang.Iterable values) { + if (ruleOutputBuilder_ == null) { + ensureRuleOutputIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleOutput_); + onChanged(); + } else { + ruleOutputBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRuleOutput() { + if (ruleOutputBuilder_ == null) { + ruleOutput_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + ruleOutputBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRuleOutput(int index) { + if (ruleOutputBuilder_ == null) { + ensureRuleOutputIsMutable(); + ruleOutput_.remove(index); + onChanged(); + } else { + ruleOutputBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.RuleOutput.Builder getRuleOutputBuilder(int index) { + return internalGetRuleOutputFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.RuleOutputOrBuilder getRuleOutputOrBuilder( + int index) { + if (ruleOutputBuilder_ == null) { + return ruleOutput_.get(index); + } else { + return ruleOutputBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRuleOutputOrBuilderList() { + if (ruleOutputBuilder_ != null) { + return ruleOutputBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleOutput_); + } + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.RuleOutput.Builder addRuleOutputBuilder() { + return internalGetRuleOutputFieldBuilder() + .addBuilder(com.google.cloud.workloadmanager.v1.RuleOutput.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.workloadmanager.v1.RuleOutput.Builder addRuleOutputBuilder(int index) { + return internalGetRuleOutputFieldBuilder() + .addBuilder(index, com.google.cloud.workloadmanager.v1.RuleOutput.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The rule output of the violation.
+     * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRuleOutputBuilderList() { + return internalGetRuleOutputFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.RuleOutput, + com.google.cloud.workloadmanager.v1.RuleOutput.Builder, + com.google.cloud.workloadmanager.v1.RuleOutputOrBuilder> + internalGetRuleOutputFieldBuilder() { + if (ruleOutputBuilder_ == null) { + ruleOutputBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.workloadmanager.v1.RuleOutput, + com.google.cloud.workloadmanager.v1.RuleOutput.Builder, + com.google.cloud.workloadmanager.v1.RuleOutputOrBuilder>( + ruleOutput_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + ruleOutput_ = null; + } + return ruleOutputBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.workloadmanager.v1.ViolationDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workloadmanager.v1.ViolationDetails) + private static final com.google.cloud.workloadmanager.v1.ViolationDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.workloadmanager.v1.ViolationDetails(); + } + + public static com.google.cloud.workloadmanager.v1.ViolationDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViolationDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.workloadmanager.v1.ViolationDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ViolationDetailsOrBuilder.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ViolationDetailsOrBuilder.java new file mode 100644 index 000000000000..16a25f318ddb --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ViolationDetailsOrBuilder.java @@ -0,0 +1,209 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public interface ViolationDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workloadmanager.v1.ViolationDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the asset.
+   * 
+ * + * string asset = 1; + * + * @return The asset. + */ + java.lang.String getAsset(); + + /** + * + * + *
+   * The name of the asset.
+   * 
+ * + * string asset = 1; + * + * @return The bytes for asset. + */ + com.google.protobuf.ByteString getAssetBytes(); + + /** + * + * + *
+   * The service account associated with the resource.
+   * 
+ * + * string service_account = 2; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + + /** + * + * + *
+   * The service account associated with the resource.
+   * 
+ * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * Details of the violation.
+   * 
+ * + * map<string, string> observed = 3; + */ + int getObservedCount(); + + /** + * + * + *
+   * Details of the violation.
+   * 
+ * + * map<string, string> observed = 3; + */ + boolean containsObserved(java.lang.String key); + + /** Use {@link #getObservedMap()} instead. */ + @java.lang.Deprecated + java.util.Map getObserved(); + + /** + * + * + *
+   * Details of the violation.
+   * 
+ * + * map<string, string> observed = 3; + */ + java.util.Map getObservedMap(); + + /** + * + * + *
+   * Details of the violation.
+   * 
+ * + * map<string, string> observed = 3; + */ + /* nullable */ + java.lang.String getObservedOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Details of the violation.
+   * 
+ * + * map<string, string> observed = 3; + */ + java.lang.String getObservedOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The rule output of the violation.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getRuleOutputList(); + + /** + * + * + *
+   * Output only. The rule output of the violation.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.workloadmanager.v1.RuleOutput getRuleOutput(int index); + + /** + * + * + *
+   * Output only. The rule output of the violation.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRuleOutputCount(); + + /** + * + * + *
+   * Output only. The rule output of the violation.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRuleOutputOrBuilderList(); + + /** + * + * + *
+   * Output only. The rule output of the violation.
+   * 
+ * + * + * repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.workloadmanager.v1.RuleOutputOrBuilder getRuleOutputOrBuilder(int index); +} diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerServiceProto.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerServiceProto.java new file mode 100644 index 000000000000..cbf305e0fbad --- /dev/null +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerServiceProto.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/workloadmanager/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.workloadmanager.v1; + +@com.google.protobuf.Generated +public final class WorkloadManagerServiceProto extends com.google.protobuf.GeneratedFile { + private WorkloadManagerServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WorkloadManagerServiceProto"); + } + + 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_workloadmanager_v1_Evaluation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_Evaluation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_Evaluation_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_Evaluation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ResourceFilter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ResourceFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ResourceFilter_InclusionLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ResourceFilter_InclusionLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_GceInstanceFilter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_GceInstanceFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ResourceStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ResourceStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_BigQueryDestination_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ListEvaluationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ListEvaluationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ListEvaluationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ListEvaluationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_GetEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_GetEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_CreateEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_CreateEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_UpdateEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_UpdateEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_DeleteEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_DeleteEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_Execution_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_Execution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_Execution_ExternalDataSources_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_Execution_ExternalDataSources_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_Execution_Notice_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_Execution_Notice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_Execution_Summary_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_Execution_Summary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_Execution_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_Execution_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_RuleExecutionResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_RuleExecutionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ListExecutionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ListExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ListExecutionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ListExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_GetExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_GetExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_RunEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_RunEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_DeleteExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_DeleteExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ListExecutionResultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ExecutionResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ExecutionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_Command_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_Command_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_AgentCommand_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_AgentCommand_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_AgentCommand_ParametersEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_AgentCommand_ParametersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ShellCommand_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ShellCommand_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_RuleOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_RuleOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_RuleOutput_DetailsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_RuleOutput_DetailsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ViolationDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ViolationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ViolationDetails_ObservedEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ViolationDetails_ObservedEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_Resource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_Rule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_Rule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ListRulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ListRulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ListRulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ListRulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ListScannedResourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workloadmanager_v1_ScannedResource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_workloadmanager_v1_ScannedResource_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/workloadmanager/v1/service.proto\022\037google.cloud.workloadmanager.v1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032#goo" + + "gle/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\320\007\n\n" + + "Evaluation\022\014\n" + + "\004name\030\001 \001(\t\022\023\n" + + "\013description\030\002 \001(\t\022H\n" + + "\017resource_filter\030\003 " + + "\001(\0132/.google.cloud.workloadmanager.v1.ResourceFilter\022\022\n\n" + + "rule_names\030\004 \003(\t\022M\n" + + "\017resource_status\030\006" + + " \001(\0132/.google.cloud.workloadmanager.v1.ResourceStatusB\003\340A\003\0224\n" + + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022G\n" + + "\006labels\030\t \003(\01327.go" + + "ogle.cloud.workloadmanager.v1.Evaluation.LabelsEntry\022\025\n" + + "\010schedule\030\n" + + " \001(\tH\000\210\001\001\022\033\n" + + "\023custom_rules_bucket\030\013 \001(\t\022S\n" + + "\017evaluation_type\030\014" + + " \001(\0162:.google.cloud.workloadmanager.v1.Evaluation.EvaluationType\022X\n" + + "\025big_query_destination\030\r" + + " \001(\01324.google.cloud.workloadmanager.v1.BigQueryDestinationB\003\340A\001\022:\n" + + "\007kms_key\030\017 \001(\tB)\340A\005\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"U\n" + + "\016EvaluationType\022\037\n" + + "\033EVALUATION_TYPE_UNSPECIFIED\020\000\022\007\n" + + "\003SAP\020\001\022\016\n\n" + + "SQL_SERVER\020\002\022\t\n" + + "\005OTHER\020\003:\212\001\352A\206\001\n" + + ")workloadmanager.googleapis.com/Evaluation\022@projects/{project}/locations/{locat" + + "ion}/evaluations/{evaluation}*\013evaluations2\n" + + "evaluationB\013\n" + + "\t_schedule\"\247\002\n" + + "\016ResourceFilter\022\016\n" + + "\006scopes\030\001 \003(\t\022\034\n" + + "\024resource_id_patterns\030\002 \003(\t\022^\n" + + "\020inclusion_labels\030\003 \003(\0132D" + + ".google.cloud.workloadmanager.v1.ResourceFilter.InclusionLabelsEntry\022O\n" + + "\023gce_instance_filter\030\004" + + " \001(\01322.google.cloud.workloadmanager.v1.GceInstanceFilter\0326\n" + + "\024InclusionLabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"-\n" + + "\021GceInstanceFilter\022\030\n" + + "\020service_accounts\030\004 \003(\t\"\236\001\n" + + "\016ResourceStatus\022D\n" + + "\005state\030\002" + + " \001(\01625.google.cloud.workloadmanager.v1.ResourceStatus.State\"F\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\014\n" + + "\010DELETING\020\003\"^\n" + + "\023BigQueryDestination\022 \n" + + "\023destination_dataset\030\001 \001(\tB\003\340A\001\022%\n" + + "\030create_new_results_table\030\002 \001(\010B\003\340A\001\"\244\001\n" + + "\026ListEvaluationsRequest\022A\n" + + "\006parent\030\001 \001(\tB1\340A\002\372A+" + + "\022)workloadmanager.googleapis.com/Evaluation\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\"\211\001\n" + + "\027ListEvaluationsResponse\022@\n" + + "\013evaluations\030\001" + + " \003(\0132+.google.cloud.workloadmanager.v1.Evaluation\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"W\n" + + "\024GetEvaluationRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")workloadmanager.googleapis.com/Evaluation\"\327\001\n" + + "\027CreateEvaluationRequest\022A\n" + + "\006parent\030\001 \001(\tB1\340A\002\372A+\022)w" + + "orkloadmanager.googleapis.com/Evaluation\022\032\n\r" + + "evaluation_id\030\002 \001(\tB\003\340A\002\022D\n\n" + + "evaluation\030\003" + + " \001(\0132+.google.cloud.workloadmanager.v1.EvaluationB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\"\256\001\n" + + "\027UpdateEvaluationRequest\0224\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022D\n\n" + + "evaluation\030\002" + + " \001(\0132+.google.cloud.workloadmanager.v1.EvaluationB\003\340A\002\022\027\n\n" + + "request_id\030\003 \001(\tB\003\340A\001\"\207\001\n" + + "\027DeleteEvaluationRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")workloadmanager.googleapis.com/Evaluation\022\027\n\n" + + "request_id\030\002 \001(\tB\003\340A\001\022\022\n" + + "\005force\030\003 \001(\010B\003\340A\001\"\245\014\n" + + "\tExecution\022\014\n" + + "\004name\030\001 \001(\t\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\0227\n" + + "\016inventory_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n" + + "\005state\030\005 \001" + + "(\01620.google.cloud.workloadmanager.v1.Execution.StateB\003\340A\003\022\032\n\r" + + "evaluation_id\030\006 \001(\tB\003\340A\003\022F\n" + + "\006labels\030\007" + + " \003(\01326.google.cloud.workloadmanager.v1.Execution.LabelsEntry\022A\n" + + "\010run_type\030\010 \001(\0162/.google.cloud.workloadmanager.v1.Execution.Type\022O\n" + + "\014rule_results\030\t" + + " \003(\01324.google.cloud.workloadmanager.v1.RuleExecutionResultB\003\340A\003\022b\n" + + "\025external_data_sources\030\n" + + " \003(\0132>.google.cloud.workload" + + "manager.v1.Execution.ExternalDataSourcesB\003\340A\001\022G\n" + + "\007notices\030\013 \003(\01321.google.cloud.wo" + + "rkloadmanager.v1.Execution.NoticeB\003\340A\003\022F\n" + + "\006engine\030\014" + + " \001(\01621.google.cloud.workloadmanager.v1.Execution.EngineB\003\340A\001\022O\n" + + "\016result_summary\030\r" + + " \001(\01322.google.cloud.workloadmanager.v1.Execution.SummaryB\003\340A\003\032\336\001\n" + + "\023ExternalDataSources\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\001\022\020\n" + + "\003uri\030\002 \001(\tB\003\340A\002\022V\n" + + "\004type\030\003 \001(\0162C.google.clou" + + "d.workloadmanager.v1.Execution.ExternalDataSources.TypeB\003\340A\002\022\027\n\n" + + "asset_type\030\004 \001(\tB\003\340A\002\"1\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\023\n" + + "\017BIG_QUERY_TABLE\020\001\032\036\n" + + "\006Notice\022\024\n" + + "\007message\030\001 \001(\tB\003\340A\003\032S\n" + + "\007Summary\022\025\n" + + "\010failures\030\001 \001(\003B\003\340A\003\022\031\n" + + "\014new_failures\030\002 \001(\003B\003\340A\003\022\026\n" + + "\tnew_fixes\030\003 \001(\003B\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"F\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007RUNNING\020\001\022\r\n" + + "\tSUCCEEDED\020\002\022\n\n" + + "\006FAILED\020\003\"9\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\014\n" + + "\010ONE_TIME\020\001\022\r\n" + + "\tSCHEDULED\020\002\"<\n" + + "\006Engine\022\026\n" + + "\022ENGINE_UNSPECIFIED\020\000\022\022\n" + + "\016ENGINE_SCANNER\020\001\022\006\n" + + "\002V2\020\002:\236\001\352A\232\001\n" + + "(workloadmanager.googleapis.com/Execution\022Wprojects/{projec" + + "t}/locations/{location}/evaluations/{evaluation}/executions/{execution}*\n" + + "executions2\texecution\"\223\002\n" + + "\023RuleExecutionResult\022\014\n" + + "\004rule\030\001 \001(\t\022N\n" + + "\005state\030\002 \001(\0162:.google.clo" + + "ud.workloadmanager.v1.RuleExecutionResult.StateB\003\340A\003\022\017\n" + + "\007message\030\003 \001(\t\022\024\n" + + "\014result_count\030\004 \001(\003\022\036\n" + + "\026scanned_resource_count\030\005 \001(\003\"W\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\021\n\r" + + "STATE_SUCCESS\020\001\022\021\n\r" + + "STATE_FAILURE\020\002\022\021\n\r" + + "STATE_SKIPPED\020\003\"\242\001\n" + + "\025ListExecutionsRequest\022@\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(workloadmanager.googleapis.com/Execution\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\"\206\001\n" + + "\026ListExecutionsResponse\022>\n\n" + + "executions\030\001 \003(\0132*.google.cloud.workloadmanager.v1.Execution\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"U\n" + + "\023GetExecutionRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(workloadmanager.googleapis.com/Execution\"\317\001\n" + + "\024RunEvaluationRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")workloadmanager.googleapis.com/Evaluation\022\031\n" + + "\014execution_id\030\002 \001(\tB\003\340A\002\022B\n" + + "\texecution\030\003" + + " \001(\0132*.google.cloud.workloadmanager.v1.ExecutionB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\"q\n" + + "\026DeleteExecutionRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(workloadmanager.googleapis.com/Execution\022\027\n\n" + + "request_id\030\002 \001(\tB\003\340A\001\"i\n" + + "\033ListExecutionResultsRequest\022\023\n" + + "\006parent\030\001 \001(\tB\003\340A\002\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\"\204\001\n" + + "\034ListExecutionResultsResponse\022K\n" + + "\021execution_results\030\001" + + " \003(\01320.google.cloud.workloadmanager.v1.ExecutionResult\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\337\003\n" + + "\017ExecutionResult\022\031\n" + + "\021violation_message\030\001 \001(\t\022\020\n" + + "\010severity\030\002 \001(\t\0226\n" + + "\004rule\030\003 \001(\tB(\372A%\n" + + "#workloadmanager.googleapis.com/Rule\022\031\n" + + "\021documentation_url\030\004 \001(\t\022;\n" + + "\010resource\030\005 \001(\0132).google.cloud.workloadmanager.v1.Resource\022L\n" + + "\021violation_details\030\006" + + " \001(\01321.google.cloud.workloadmanager.v1.ViolationDetails\022:\n" + + "\010commands\030\007 \003(\0132(.google.cloud.workloadmanager.v1.Command\022C\n" + + "\004type\030\010 \001(\01625.google.cloud.workloadmanager.v1.ExecutionResult.Type\"@\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013TYPE_PASSED\020\001\022\021\n\r" + + "TYPE_VIOLATED\020\002\"\251\001\n" + + "\007Command\022F\n\r" + + "agent_command\030\001" + + " \001(\0132-.google.cloud.workloadmanager.v1.AgentCommandH\000\022F\n\r" + + "shell_command\030\002 \001(\0132-." + + "google.cloud.workloadmanager.v1.ShellCommandH\000B\016\n" + + "\014command_type\"\245\001\n" + + "\014AgentCommand\022\017\n" + + "\007command\030\001 \001(\t\022Q\n\n" + + "parameters\030\002 \003(\0132=.g" + + "oogle.cloud.workloadmanager.v1.AgentCommand.ParametersEntry\0321\n" + + "\017ParametersEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"F\n" + + "\014ShellCommand\022\017\n" + + "\007command\030\001 \001(\t\022\014\n" + + "\004args\030\002 \001(\t\022\027\n" + + "\017timeout_seconds\030\003 \001(\005\"\242\001\n\n" + + "RuleOutput\022N\n" + + "\007details\030\001" + + " \003(\01328.google.cloud.workloadmanager.v1.RuleOutput.DetailsEntryB\003\340A\003\022\024\n" + + "\007message\030\002 \001(\tB\003\340A\003\032.\n" + + "\014DetailsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\205\002\n" + + "\020ViolationDetails\022\r\n" + + "\005asset\030\001 \001(\t\022\027\n" + + "\017service_account\030\002 \001(\t\022Q\n" + + "\010observed\030\003 \003(\0132?.google.clou" + + "d.workloadmanager.v1.ViolationDetails.ObservedEntry\022E\n" + + "\013rule_output\030\004 \003(\0132+.googl" + + "e.cloud.workloadmanager.v1.RuleOutputB\003\340A\003\032/\n\r" + + "ObservedEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"?\n" + + "\010Resource\022\014\n" + + "\004type\030\001 \001(\t\022\014\n" + + "\004name\030\002 \001(\t\022\027\n" + + "\017service_account\030\003 \001(\t\"\200\002\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" + + "\006target\030\003 \001(\tB\003\340A\003\022\021\n" + + "\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + + "\013api_version\030\007 \001(\tB\003\340A\003\"\355\003\n" + + "\004Rule\022\014\n" + + "\004name\030\001 \001(\t\022\030\n" + + "\013revision_id\030\002 \001(\tB\003\340A\003\022\024\n" + + "\014display_name\030\003 \001(\t\022\023\n" + + "\013description\030\004 \001(\t\022\020\n" + + "\010severity\030\005 \001(\t\022\030\n" + + "\020primary_category\030\006 \001(\t\022\032\n" + + "\022secondary_category\030\007 \001(\t\022\025\n\r" + + "error_message\030\010 \001(\t\022\013\n" + + "\003uri\030\t \001(\t\022\023\n" + + "\013remediation\030\n" + + " \001(\t\022\014\n" + + "\004tags\030\013 \003(\t\022A\n" + + "\trule_type\030\014" + + " \001(\0162..google.cloud.workloadmanager.v1.Rule.RuleType\022\022\n" + + "\n" + + "asset_type\030\r" + + " \001(\t\"?\n" + + "\010RuleType\022\031\n" + + "\025RULE_TYPE_UNSPECIFIED\020\000\022\014\n" + + "\010BASELINE\020\001\022\n\n" + + "\006CUSTOM\020\002:k\352Ah\n" + + "#workloadmanager.googleapis.com/" + + "Rule\0224projects/{project}/locations/{location}/rules/{rule}*\005rules2\004rule\"\375\001\n" + + "\020ListRulesRequest\022;\n" + + "\006parent\030\001 \001(" + + "\tB+\340A\002\372A%\022#workloadmanager.googleapis.com/Rule\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\033\n" + + "\023custom_rules_bucket\030\005 \001(\t\022X\n" + + "\017evaluation_type\030\006 \001(\0162:.google.cloud.wo" + + "rkloadmanager.v1.Evaluation.EvaluationTypeB\003\340A\001\"I\n" + + "\021ListRulesResponse\0224\n" + + "\005rules\030\001 \003(\0132%.google.cloud.workloadmanager.v1.Rule\"\211\001\n" + + "\033ListScannedResourcesRequest\022\023\n" + + "\006parent\030\001 \001(\tB\003\340A\002\022\014\n" + + "\004rule\030\002 \001(\t\022\021\n" + + "\tpage_size\030\003 \001(\005\022\022\n\n" + + "page_token\030\004 \001(\t\022\016\n" + + "\006filter\030\005 \001(\t\022\020\n" + + "\010order_by\030\006 \001(\t\"\204\001\n" + + "\034ListScannedResourcesResponse\022K\n" + + "\021scanned_resources\030\001 \003" + + "(\01320.google.cloud.workloadmanager.v1.ScannedResource\022\027\n" + + "\017next_page_token\030\002 \001(\t\"1\n" + + "\017ScannedResource\022\020\n" + + "\010resource\030\001 \001(\t\022\014\n" + + "\004type\030\002 \001(\t2\265\025\n" + + "\017WorkloadManager\022\306\001\n" + + "\017ListEvaluations\0227.google.cloud.workloadmanager." + + "v1.ListEvaluationsRequest\0328.google.cloud.workloadmanager.v1.ListEvaluationsRespo" + + "nse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/evaluations\022\263\001\n\r" + + "GetEvaluation\0225.google.cloud.workloadmanager.v" + + "1.GetEvaluationRequest\032+.google.cloud.wo" + + "rkloadmanager.v1.Evaluation\">\332A\004name\202\323\344\223" + + "\0021\022//v1/{name=projects/*/locations/*/evaluations/*}\022\365\001\n" + + "\020CreateEvaluation\0228.google.cloud.workloadmanager.v1.CreateEvaluat" + + "ionRequest\032\035.google.longrunning.Operation\"\207\001\312A\037\n\n" + + "Evaluation\022\021OperationMetadata\332A" + + "\037parent,evaluation,evaluation_id\202\323\344\223\002=\"/" + + "/v1/{parent=projects/*/locations/*}/evaluations:\n" + + "evaluation\022\367\001\n" + + "\020UpdateEvaluation\0228.google.cloud.workloadmanager.v1.Updat" + + "eEvaluationRequest\032\035.google.longrunning.Operation\"\211\001\312A\037\n\n" + + "Evaluation\022\021OperationMe" + + "tadata\332A\026evaluation,update_mask\202\323\344\223\002H2:/" + + "v1/{evaluation.name=projects/*/locations/*/evaluations/*}:\n" + + "evaluation\022\330\001\n" + + "\020DeleteEvaluation\0228.google.cloud.workloadmanage" + + "r.v1.DeleteEvaluationRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0021*" + + "//v1/{name=projects/*/locations/*/evaluations/*}\022\320\001\n" + + "\016ListExecutions\0226.google.cloud.workloadmanager.v1.ListExecutionsRequ" + + "est\0327.google.cloud.workloadmanager.v1.Li" + + "stExecutionsResponse\"M\332A\006parent\202\323\344\223\002>\022\022/v1/{name=p" + + "rojects/*/locations/*/evaluations/*}/executions:run:\001*\022\343\001\n" + + "\017DeleteExecution\0227.google.cloud.workloadmanager.v1.DeleteExecu" + + "tionRequest\032\035.google.longrunning.Operation\"x\312A*\n" + + "\025google.protobuf.Empty\022\021Operatio" + + "nMetadata\332A\004name\202\323\344\223\002>* labels = 9; + + // Crontab format schedule for scheduled evaluation, currently only supports + // the following fixed schedules: + // * `0 */1 * * *` # Hourly + // * `0 */6 * * *` # Every 6 hours + // * `0 */12 * * *` # Every 12 hours + // * `0 0 */1 * *` # Daily + // * `0 0 */7 * *` # Weekly + // * `0 0 */14 * *` # Every 14 days + // * `0 0 1 */1 *` # Monthly + optional string schedule = 10; + + // The Cloud Storage bucket name for custom rules. + string custom_rules_bucket = 11; + + // Evaluation type. + EvaluationType evaluation_type = 12; + + // Optional. The BigQuery destination for detailed evaluation results. + // If this field is specified, the results of each evaluation execution are + // exported to BigQuery. + BigQueryDestination big_query_destination = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Immutable. Customer-managed encryption key name, in the format + // projects/*/locations/*/keyRings/*/cryptoKeys/*. + // The key will be used for CMEK encryption of the evaluation resource. + string kms_key = 15 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; +} + +// Resource filter for an evaluation defining the scope of resources to be +// evaluated. +message ResourceFilter { + // The scopes of evaluation resource. + // Format: + // * `projects/{project_id}` + // * `folders/{folder_id}` + // * `organizations/{organization_id}` + repeated string scopes = 1; + + // The pattern to filter resources by their id + // For example, a pattern of ".*prod-cluster.*" will match all resources that + // contain "prod-cluster" in their ID. + repeated string resource_id_patterns = 2; + + // Labels to filter resources by. Each key-value pair in the map must exist + // on the resource for it to be included (e.g. VM instance labels). + // For example, specifying `{ "env": "prod", "database": "nosql" }` will only + // include resources that have labels `env=prod` and `database=nosql`. + map inclusion_labels = 3; + + // Filter compute engine resources. + GceInstanceFilter gce_instance_filter = 4; +} + +// A filter for matching Compute Engine instances. +message GceInstanceFilter { + // If non-empty, only Compute Engine instances associated with at least one of + // the provided service accounts will be included in the evaluation. + repeated string service_accounts = 4; +} + +// The lifecycle status of an Evaluation resource. +message ResourceStatus { + // Possible states of an evaluation, such as CREATING, ACTIVE, and DELETING. + enum State { + // The state has not been populated in this message. + STATE_UNSPECIFIED = 0; + + // Resource has an active Create operation. + CREATING = 1; + + // Resource has no outstanding operations on it or has active Update + // operations. + ACTIVE = 2; + + // Resource has an active Delete operation. + DELETING = 3; + } + + // State of the Evaluation resource. + State state = 2; +} + +// BigQuery destination for evaluation results. +message BigQueryDestination { + // Optional. Destination dataset to save evaluation results. + string destination_dataset = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Determines if a new results table will be created when an + // Execution is created. + bool create_new_results_table = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for the ListEvaluations RPC. +message ListEvaluationsRequest { + // Required. Parent value for ListEvaluationsRequest. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "workloadmanager.googleapis.com/Evaluation" + } + ]; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Filter to be applied when listing the evaluation results. + string filter = 4; + + // Hint for how to order the results. + string order_by = 5; +} + +// Response message for the ListEvaluations RPC. +message ListEvaluationsResponse { + // The list of evaluations. + repeated Evaluation evaluations = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for the GetEvaluation RPC. +message GetEvaluationRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workloadmanager.googleapis.com/Evaluation" + } + ]; +} + +// Request message for the CreateEvaluation RPC. +message CreateEvaluationRequest { + // Required. The resource prefix of the evaluation location using the form: + // `projects/{project_id}/locations/{location_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "workloadmanager.googleapis.com/Evaluation" + } + ]; + + // Required. Id of the requesting object. + string evaluation_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created. + Evaluation evaluation = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional 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 since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for the UpdateEvaluation RPC. +message UpdateEvaluationRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // Evaluation resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being updated. + Evaluation evaluation = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional 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 since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for the DeleteEvaluation RPC. +message DeleteEvaluationRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workloadmanager.googleapis.com/Evaluation" + } + ]; + + // Optional. An optional 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. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Followed the best practice from + // https://aip.dev/135#cascading-delete. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Execution that represents a single run of an Evaluation. +message Execution { + option (google.api.resource) = { + type: "workloadmanager.googleapis.com/Execution" + pattern: "projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}" + plural: "executions" + singular: "execution" + }; + + // The possible states of an execution like RUNNING, SUCCEEDED, FAILED, etc. + enum State { + // State of execution is unspecified. + STATE_UNSPECIFIED = 0; + + // The execution is running in backend service. + RUNNING = 1; + + // The execution run succeeded. + SUCCEEDED = 2; + + // The execution run failed. + FAILED = 3; + } + + // The type of execution, could be on demand execute or scheduled execute. + enum Type { + // Type of execution is unspecified. + TYPE_UNSPECIFIED = 0; + + // Type of execution is one time. + ONE_TIME = 1; + + // Type of execution is scheduled. + SCHEDULED = 2; + } + + // External data sources for an execution. + message ExternalDataSources { + // Possible types of external data sources like BigQuery table, etc. + enum Type { + // Unknown type. + TYPE_UNSPECIFIED = 0; + + // BigQuery table. + BIG_QUERY_TABLE = 1; + } + + // Optional. Name of external data source. The name will be used inside the + // rego/sql to refer the external data. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. URI of external data source. example of bq table + // {project_ID}.{dataset_ID}.{table_ID}. + string uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Type of external data source. + Type type = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The asset type of the external data source. + // This can be a supported Cloud Asset Inventory asset type + // (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) + // to override the default asset type, or it can be a custom type defined by + // the user. + string asset_type = 4 [(google.api.field_behavior) = REQUIRED]; + } + + // Additional information generated by an execution. + message Notice { + // Output only. Message of the notice. + string message = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The engine used for the execution. + enum Engine { + // The original CG. + ENGINE_UNSPECIFIED = 0; + + // SlimCG / Scanner. + ENGINE_SCANNER = 1; + + // Evaluation Engine V2. + V2 = 2; + } + + // Execution summary. + message Summary { + // Output only. Number of failures. + int64 failures = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of new failures compared to the previous execution. + int64 new_failures = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of new fixes compared to the previous execution. + int64 new_fixes = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The name of execution resource. The format is + // projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}. + string name = 1; + + // Output only. [Output only] Start time stamp. + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] End time stamp. + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Inventory time stamp. + google.protobuf.Timestamp inventory_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] State. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Evaluation ID. + string evaluation_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Labels as key value pairs. + map labels = 7; + + // Type which represents whether the execution executed directly by user or + // scheduled according to the `Evaluation.schedule` field. + Type run_type = 8; + + // Output only. Execution result summary per rule. + repeated RuleExecutionResult rule_results = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. External data sources. + repeated ExternalDataSources external_data_sources = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Additional information generated by the execution. + repeated Notice notices = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Engine. + Engine engine = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. [Output only] Result summary for the execution. + Summary result_summary = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Execution result summary per rule. +message RuleExecutionResult { + // Possible states of a rule execution like SUCCESS, FAILURE, etc. + enum State { + // Unknown state + STATE_UNSPECIFIED = 0; + + // Execution completed successfully + STATE_SUCCESS = 1; + + // Execution completed with failures + STATE_FAILURE = 2; + + // Execution was not executed + STATE_SKIPPED = 3; + } + + // Rule name as plain text like `sap-hana-configured`. + string rule = 1; + + // Output only. The execution status. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Execution message, if any. + string message = 3; + + // Number of violations. + int64 result_count = 4; + + // Number of total scanned resources. + int64 scanned_resource_count = 5; +} + +// Request message for the ListExecutions RPC. +message ListExecutionsRequest { + // Required. The resource prefix of the Execution using the form: + // `projects/{project}/locations/{location}/evaluations/{evaluation}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "workloadmanager.googleapis.com/Execution" + } + ]; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Filtering results. + string filter = 4; + + // Field to sort by. See https://google.aip.dev/132#ordering for more details. + string order_by = 5; +} + +// Response message for the ListExecutions RPC. +message ListExecutionsResponse { + // The list of Execution. + repeated Execution executions = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for the GetExecution RPC. +message GetExecutionRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workloadmanager.googleapis.com/Execution" + } + ]; +} + +// Request message for the RunEvaluation RPC. +message RunEvaluationRequest { + // Required. The resource name of the Evaluation using the form: + // `projects/{project}/locations/{location}/evaluations/{evaluation}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workloadmanager.googleapis.com/Evaluation" + } + ]; + + // Required. ID of the execution which will be created. + string execution_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created. + Execution execution = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional 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 since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for the DeleteExecution RPC. +message DeleteExecutionRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workloadmanager.googleapis.com/Execution" + } + ]; + + // Optional. An optional 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. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for the ListExecutionResults RPC. +message ListExecutionResultsRequest { + // Required. The execution results. + // Format: {parent}/evaluations/*/executions/*/results. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Filtering results. + string filter = 4; +} + +// Response message for the ListExecutionResults RPC. +message ListExecutionResultsResponse { + // The versions from the specified publisher. + repeated ExecutionResult execution_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; +} + +// The result of an execution. +message ExecutionResult { + // Enum of execution result type. + enum Type { + // Unknown state. + TYPE_UNSPECIFIED = 0; + + // Resource successfully passed the rule. + TYPE_PASSED = 1; + + // Resource violated the rule. + TYPE_VIOLATED = 2; + } + + // The violation message of an execution. + string violation_message = 1; + + // The severity of violation. + string severity = 2; + + // The rule that is violated in an evaluation. + string rule = 3 [(google.api.resource_reference) = { + type: "workloadmanager.googleapis.com/Rule" + }]; + + // The URL for the documentation of the rule. + string documentation_url = 4; + + // The resource that violates the rule. + Resource resource = 5; + + // The details of violation in an evaluation result. + ViolationDetails violation_details = 6; + + // The commands to remediate the violation. + repeated Command commands = 7; + + // Execution result type of the scanned resource. + Type type = 8; +} + +// Command specifies the type of command to execute. +message Command { + // The type of command. + oneof command_type { + // AgentCommand specifies a one-time executable program for the agent to + // run. + AgentCommand agent_command = 1; + + // ShellCommand is invoked via the agent's command line executor. + ShellCommand shell_command = 2; + } +} + +// An AgentCommand specifies a one-time executable program for the agent to run. +message AgentCommand { + // The name of the agent one-time executable that will be invoked. + string command = 1; + + // A map of key/value pairs that can be used to specify + // additional one-time executable settings. + map parameters = 2; +} + +// A ShellCommand is invoked via the agent's command line executor. +message ShellCommand { + // The name of the command to be executed. + string command = 1; + + // Arguments to be passed to the command. + string args = 2; + + // Optional. If not specified, the default timeout is 60 seconds. + int32 timeout_seconds = 3; +} + +// The rule output of the violation. +message RuleOutput { + // Output only. Violation details generated by rule. + map details = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The message generated by rule. + string message = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The violation in an evaluation result. +message ViolationDetails { + // The name of the asset. + string asset = 1; + + // The service account associated with the resource. + string service_account = 2; + + // Details of the violation. + map observed = 3; + + // Output only. The rule output of the violation. + repeated RuleOutput rule_output = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Resource in execution result. +message Resource { + // The type of resource. + string type = 1; + + // The name of the resource. + string name = 2; + + // The service account associated with the resource. + string service_account = 3; +} + +// 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. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(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 [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A rule to be evaluated. +message Rule { + option (google.api.resource) = { + type: "workloadmanager.googleapis.com/Rule" + pattern: "projects/{project}/locations/{location}/rules/{rule}" + plural: "rules" + singular: "rule" + }; + + // The type of the rule. + enum RuleType { + // Not specified. + RULE_TYPE_UNSPECIFIED = 0; + + // Baseline rules. + BASELINE = 1; + + // Custom rules. + CUSTOM = 2; + } + + // Rule name. + string name = 1; + + // Output only. The version of the rule. + string revision_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name display in UI. + string display_name = 3; + + // Describe rule in plain language. + string description = 4; + + // The severity of the rule. + string severity = 5; + + // The primary category. + string primary_category = 6; + + // The secondary category. + string secondary_category = 7; + + // The message template for rule. + string error_message = 8; + + // The document url for the rule. + string uri = 9; + + // The remediation for the rule. + string remediation = 10; + + // List of user-defined tags. + repeated string tags = 11; + + // The type of the rule. + RuleType rule_type = 12; + + // The CAI asset type of the rule is evaluating, for joined asset types, it + // will be the corresponding primary asset types. + string asset_type = 13; +} + +// Request message for the ListRules RPC. +message ListRulesRequest { + // Required. The [project] on which to execute the request. The format is: + // projects/{project_id}/locations/{location} + // Currently, the pre-defined rules are global available to all projects and + // all regions. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "workloadmanager.googleapis.com/Rule" + } + ]; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Filter based on primary_category, secondary_category. + string filter = 4; + + // The Cloud Storage bucket name for custom rules. + string custom_rules_bucket = 5; + + // Optional. The evaluation type of the rules will be applied to. + // The Cloud Storage bucket name for custom rules. + Evaluation.EvaluationType evaluation_type = 6 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for the ListRules RPC. +message ListRulesResponse { + // All rules in response. + repeated Rule rules = 1; +} + +// Request message for the ListScannedResources RPC. +message ListScannedResourcesRequest { + // Required. Parent for ListScannedResourcesRequest. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Rule name. + string rule = 2; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 3; + + // A token identifying a page of results the server should return. + string page_token = 4; + + // Filtering results. + string filter = 5; + + // Field to sort by. See https://google.aip.dev/132#ordering for more details. + string order_by = 6; +} + +// Response message for the ListScannedResources RPC. +message ListScannedResourcesResponse { + // All scanned resources in response. + repeated ScannedResource scanned_resources = 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; +} + +// A scanned resource. +message ScannedResource { + // Resource name. + string resource = 1; + + // Resource type. + string type = 2; +} diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/stub/workloadmanagerstubsettings/createevaluation/SyncCreateEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/stub/workloadmanagerstubsettings/createevaluation/SyncCreateEvaluation.java new file mode 100644 index 000000000000..8140e76b9d00 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/stub/workloadmanagerstubsettings/createevaluation/SyncCreateEvaluation.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.workloadmanager.v1.stub.samples; + +// [START workloadmanager_v1_generated_WorkloadManagerStubSettings_CreateEvaluation_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.workloadmanager.v1.stub.WorkloadManagerStubSettings; +import java.time.Duration; + +public class SyncCreateEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateEvaluation(); + } + + public static void syncCreateEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkloadManagerStubSettings.Builder workloadManagerSettingsBuilder = + WorkloadManagerStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + workloadManagerSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END workloadmanager_v1_generated_WorkloadManagerStubSettings_CreateEvaluation_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/stub/workloadmanagerstubsettings/getevaluation/SyncGetEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/stub/workloadmanagerstubsettings/getevaluation/SyncGetEvaluation.java new file mode 100644 index 000000000000..9efc3a04fd6e --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/stub/workloadmanagerstubsettings/getevaluation/SyncGetEvaluation.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.workloadmanager.v1.stub.samples; + +// [START workloadmanager_v1_generated_WorkloadManagerStubSettings_GetEvaluation_sync] +import com.google.cloud.workloadmanager.v1.stub.WorkloadManagerStubSettings; +import java.time.Duration; + +public class SyncGetEvaluation { + + public static void main(String[] args) throws Exception { + syncGetEvaluation(); + } + + public static void syncGetEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkloadManagerStubSettings.Builder workloadManagerSettingsBuilder = + WorkloadManagerStubSettings.newBuilder(); + workloadManagerSettingsBuilder + .getEvaluationSettings() + .setRetrySettings( + workloadManagerSettingsBuilder + .getEvaluationSettings() + .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()); + WorkloadManagerStubSettings workloadManagerSettings = workloadManagerSettingsBuilder.build(); + } +} +// [END workloadmanager_v1_generated_WorkloadManagerStubSettings_GetEvaluation_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/create/SyncCreateSetCredentialsProvider.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..e2c136fe9495 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/create/SyncCreateSetCredentialsProvider.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.cloud.workloadmanager.v1.WorkloadManagerSettings; +import com.google.cloud.workloadmanager.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 + WorkloadManagerSettings workloadManagerSettings = + WorkloadManagerSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + WorkloadManagerClient workloadManagerClient = + WorkloadManagerClient.create(workloadManagerSettings); + } +} +// [END workloadmanager_v1_generated_WorkloadManager_Create_SetCredentialsProvider_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/create/SyncCreateSetEndpoint.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..a8d96fd17b3a --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/create/SyncCreateSetEndpoint.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_Create_SetEndpoint_sync] +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.cloud.workloadmanager.v1.WorkloadManagerSettings; +import com.google.cloud.workloadmanager.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 + WorkloadManagerSettings workloadManagerSettings = + WorkloadManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); + WorkloadManagerClient workloadManagerClient = + WorkloadManagerClient.create(workloadManagerSettings); + } +} +// [END workloadmanager_v1_generated_WorkloadManager_Create_SetEndpoint_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/create/SyncCreateUseHttpJsonTransport.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..df197e1ce2a5 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/create/SyncCreateUseHttpJsonTransport.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.cloud.workloadmanager.v1.WorkloadManagerSettings; + +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 + WorkloadManagerSettings workloadManagerSettings = + WorkloadManagerSettings.newHttpJsonBuilder().build(); + WorkloadManagerClient workloadManagerClient = + WorkloadManagerClient.create(workloadManagerSettings); + } +} +// [END workloadmanager_v1_generated_WorkloadManager_Create_UseHttpJsonTransport_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/AsyncCreateEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/AsyncCreateEvaluation.java new file mode 100644 index 000000000000..447151711715 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/AsyncCreateEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.CreateEvaluationRequest; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.longrunning.Operation; + +public class AsyncCreateEvaluation { + + public static void main(String[] args) throws Exception { + asyncCreateEvaluation(); + } + + public static void asyncCreateEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEvaluationId("evaluationId407318903") + .setEvaluation(Evaluation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + workloadManagerClient.createEvaluationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/AsyncCreateEvaluationLRO.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/AsyncCreateEvaluationLRO.java new file mode 100644 index 000000000000..4a88d3e1b060 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/AsyncCreateEvaluationLRO.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workloadmanager.v1.CreateEvaluationRequest; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.OperationMetadata; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class AsyncCreateEvaluationLRO { + + public static void main(String[] args) throws Exception { + asyncCreateEvaluationLRO(); + } + + public static void asyncCreateEvaluationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEvaluationId("evaluationId407318903") + .setEvaluation(Evaluation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + workloadManagerClient.createEvaluationOperationCallable().futureCall(request); + // Do something. + Evaluation response = future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_LRO_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/SyncCreateEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/SyncCreateEvaluation.java new file mode 100644 index 000000000000..d361b953ce7e --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/SyncCreateEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_sync] +import com.google.cloud.workloadmanager.v1.CreateEvaluationRequest; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncCreateEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateEvaluation(); + } + + public static void syncCreateEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + CreateEvaluationRequest request = + CreateEvaluationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEvaluationId("evaluationId407318903") + .setEvaluation(Evaluation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Evaluation response = workloadManagerClient.createEvaluationAsync(request).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/SyncCreateEvaluationLocationnameEvaluationString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/SyncCreateEvaluationLocationnameEvaluationString.java new file mode 100644 index 000000000000..22605d6d3dd0 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/SyncCreateEvaluationLocationnameEvaluationString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_LocationnameEvaluationString_sync] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncCreateEvaluationLocationnameEvaluationString { + + public static void main(String[] args) throws Exception { + syncCreateEvaluationLocationnameEvaluationString(); + } + + public static void syncCreateEvaluationLocationnameEvaluationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Evaluation evaluation = Evaluation.newBuilder().build(); + String evaluationId = "evaluationId407318903"; + Evaluation response = + workloadManagerClient.createEvaluationAsync(parent, evaluation, evaluationId).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_LocationnameEvaluationString_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/SyncCreateEvaluationStringEvaluationString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/SyncCreateEvaluationStringEvaluationString.java new file mode 100644 index 000000000000..12d20c49af8c --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/createevaluation/SyncCreateEvaluationStringEvaluationString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_StringEvaluationString_sync] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncCreateEvaluationStringEvaluationString { + + public static void main(String[] args) throws Exception { + syncCreateEvaluationStringEvaluationString(); + } + + public static void syncCreateEvaluationStringEvaluationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Evaluation evaluation = Evaluation.newBuilder().build(); + String evaluationId = "evaluationId407318903"; + Evaluation response = + workloadManagerClient.createEvaluationAsync(parent, evaluation, evaluationId).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_StringEvaluationString_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/AsyncDeleteEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/AsyncDeleteEvaluation.java new file mode 100644 index 000000000000..09f8eddbee68 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/AsyncDeleteEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest; +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteEvaluation { + + public static void main(String[] args) throws Exception { + asyncDeleteEvaluation(); + } + + public static void asyncDeleteEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + DeleteEvaluationRequest request = + DeleteEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = + workloadManagerClient.deleteEvaluationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/AsyncDeleteEvaluationLRO.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/AsyncDeleteEvaluationLRO.java new file mode 100644 index 000000000000..2d4fd8e300ef --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/AsyncDeleteEvaluationLRO.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest; +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.OperationMetadata; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteEvaluationLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteEvaluationLRO(); + } + + public static void asyncDeleteEvaluationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + DeleteEvaluationRequest request = + DeleteEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + workloadManagerClient.deleteEvaluationOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_LRO_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/SyncDeleteEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/SyncDeleteEvaluation.java new file mode 100644 index 000000000000..752c84469afb --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/SyncDeleteEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_sync] +import com.google.cloud.workloadmanager.v1.DeleteEvaluationRequest; +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEvaluation { + + public static void main(String[] args) throws Exception { + syncDeleteEvaluation(); + } + + public static void syncDeleteEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + DeleteEvaluationRequest request = + DeleteEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + workloadManagerClient.deleteEvaluationAsync(request).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/SyncDeleteEvaluationEvaluationname.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/SyncDeleteEvaluationEvaluationname.java new file mode 100644 index 000000000000..9a32d721d3b9 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/SyncDeleteEvaluationEvaluationname.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_Evaluationname_sync] +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEvaluationEvaluationname { + + public static void main(String[] args) throws Exception { + syncDeleteEvaluationEvaluationname(); + } + + public static void syncDeleteEvaluationEvaluationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + workloadManagerClient.deleteEvaluationAsync(name).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_Evaluationname_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/SyncDeleteEvaluationString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/SyncDeleteEvaluationString.java new file mode 100644 index 000000000000..03447964a4c2 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteevaluation/SyncDeleteEvaluationString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_String_sync] +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEvaluationString { + + public static void main(String[] args) throws Exception { + syncDeleteEvaluationString(); + } + + public static void syncDeleteEvaluationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString(); + workloadManagerClient.deleteEvaluationAsync(name).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_String_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/AsyncDeleteExecution.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/AsyncDeleteExecution.java new file mode 100644 index 000000000000..3398cf07b1af --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/AsyncDeleteExecution.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_DeleteExecution_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.DeleteExecutionRequest; +import com.google.cloud.workloadmanager.v1.ExecutionName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteExecution { + + public static void main(String[] args) throws Exception { + asyncDeleteExecution(); + } + + public static void asyncDeleteExecution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + workloadManagerClient.deleteExecutionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_DeleteExecution_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/AsyncDeleteExecutionLRO.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/AsyncDeleteExecutionLRO.java new file mode 100644 index 000000000000..fa2dc3e87565 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/AsyncDeleteExecutionLRO.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_DeleteExecution_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workloadmanager.v1.DeleteExecutionRequest; +import com.google.cloud.workloadmanager.v1.ExecutionName; +import com.google.cloud.workloadmanager.v1.OperationMetadata; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteExecutionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteExecutionLRO(); + } + + public static void asyncDeleteExecutionLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + workloadManagerClient.deleteExecutionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_DeleteExecution_LRO_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/SyncDeleteExecution.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/SyncDeleteExecution.java new file mode 100644 index 000000000000..f46cf25a5016 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/SyncDeleteExecution.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_DeleteExecution_sync] +import com.google.cloud.workloadmanager.v1.DeleteExecutionRequest; +import com.google.cloud.workloadmanager.v1.ExecutionName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExecution { + + public static void main(String[] args) throws Exception { + syncDeleteExecution(); + } + + public static void syncDeleteExecution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + workloadManagerClient.deleteExecutionAsync(request).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_DeleteExecution_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/SyncDeleteExecutionExecutionname.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/SyncDeleteExecutionExecutionname.java new file mode 100644 index 000000000000..a95ae342538a --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/SyncDeleteExecutionExecutionname.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_DeleteExecution_Executionname_sync] +import com.google.cloud.workloadmanager.v1.ExecutionName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExecutionExecutionname { + + public static void main(String[] args) throws Exception { + syncDeleteExecutionExecutionname(); + } + + public static void syncDeleteExecutionExecutionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ExecutionName name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]"); + workloadManagerClient.deleteExecutionAsync(name).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_DeleteExecution_Executionname_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/SyncDeleteExecutionString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/SyncDeleteExecutionString.java new file mode 100644 index 000000000000..ffdd8c28148b --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/deleteexecution/SyncDeleteExecutionString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_DeleteExecution_String_sync] +import com.google.cloud.workloadmanager.v1.ExecutionName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExecutionString { + + public static void main(String[] args) throws Exception { + syncDeleteExecutionString(); + } + + public static void syncDeleteExecutionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]").toString(); + workloadManagerClient.deleteExecutionAsync(name).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_DeleteExecution_String_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/AsyncGetEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/AsyncGetEvaluation.java new file mode 100644 index 000000000000..dceca2b4c41e --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/AsyncGetEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_GetEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.GetEvaluationRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class AsyncGetEvaluation { + + public static void main(String[] args) throws Exception { + asyncGetEvaluation(); + } + + public static void asyncGetEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + GetEvaluationRequest request = + GetEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .build(); + ApiFuture future = + workloadManagerClient.getEvaluationCallable().futureCall(request); + // Do something. + Evaluation response = future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_GetEvaluation_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/SyncGetEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/SyncGetEvaluation.java new file mode 100644 index 000000000000..8d107f8f56f7 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/SyncGetEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_GetEvaluation_sync] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.GetEvaluationRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncGetEvaluation { + + public static void main(String[] args) throws Exception { + syncGetEvaluation(); + } + + public static void syncGetEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + GetEvaluationRequest request = + GetEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .build(); + Evaluation response = workloadManagerClient.getEvaluation(request); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_GetEvaluation_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/SyncGetEvaluationEvaluationname.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/SyncGetEvaluationEvaluationname.java new file mode 100644 index 000000000000..84cf6d2c989b --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/SyncGetEvaluationEvaluationname.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_GetEvaluation_Evaluationname_sync] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncGetEvaluationEvaluationname { + + public static void main(String[] args) throws Exception { + syncGetEvaluationEvaluationname(); + } + + public static void syncGetEvaluationEvaluationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + Evaluation response = workloadManagerClient.getEvaluation(name); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_GetEvaluation_Evaluationname_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/SyncGetEvaluationString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/SyncGetEvaluationString.java new file mode 100644 index 000000000000..ce667c4149ce --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getevaluation/SyncGetEvaluationString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_GetEvaluation_String_sync] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncGetEvaluationString { + + public static void main(String[] args) throws Exception { + syncGetEvaluationString(); + } + + public static void syncGetEvaluationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString(); + Evaluation response = workloadManagerClient.getEvaluation(name); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_GetEvaluation_String_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/AsyncGetExecution.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/AsyncGetExecution.java new file mode 100644 index 000000000000..5a1fc67e8e80 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/AsyncGetExecution.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_GetExecution_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.ExecutionName; +import com.google.cloud.workloadmanager.v1.GetExecutionRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class AsyncGetExecution { + + public static void main(String[] args) throws Exception { + asyncGetExecution(); + } + + public static void asyncGetExecution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + GetExecutionRequest request = + GetExecutionRequest.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .build(); + ApiFuture future = + workloadManagerClient.getExecutionCallable().futureCall(request); + // Do something. + Execution response = future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_GetExecution_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/SyncGetExecution.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/SyncGetExecution.java new file mode 100644 index 000000000000..715fa8385f87 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/SyncGetExecution.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_GetExecution_sync] +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.ExecutionName; +import com.google.cloud.workloadmanager.v1.GetExecutionRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncGetExecution { + + public static void main(String[] args) throws Exception { + syncGetExecution(); + } + + public static void syncGetExecution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + GetExecutionRequest request = + GetExecutionRequest.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]") + .toString()) + .build(); + Execution response = workloadManagerClient.getExecution(request); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_GetExecution_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/SyncGetExecutionExecutionname.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/SyncGetExecutionExecutionname.java new file mode 100644 index 000000000000..febcfd98fedd --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/SyncGetExecutionExecutionname.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_GetExecution_Executionname_sync] +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.ExecutionName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncGetExecutionExecutionname { + + public static void main(String[] args) throws Exception { + syncGetExecutionExecutionname(); + } + + public static void syncGetExecutionExecutionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ExecutionName name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]"); + Execution response = workloadManagerClient.getExecution(name); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_GetExecution_Executionname_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/SyncGetExecutionString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/SyncGetExecutionString.java new file mode 100644 index 000000000000..a41ce84265cf --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getexecution/SyncGetExecutionString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_GetExecution_String_sync] +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.ExecutionName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncGetExecutionString { + + public static void main(String[] args) throws Exception { + syncGetExecutionString(); + } + + public static void syncGetExecutionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]", "[EXECUTION]").toString(); + Execution response = workloadManagerClient.getExecution(name); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_GetExecution_String_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getlocation/AsyncGetLocation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..2506227d3b66 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = workloadManagerClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_GetLocation_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getlocation/SyncGetLocation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..1d4a4d77600d --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = workloadManagerClient.getLocation(request); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_GetLocation_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/AsyncListEvaluations.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/AsyncListEvaluations.java new file mode 100644 index 000000000000..9d0784d3c60b --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/AsyncListEvaluations.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListEvaluations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.ListEvaluationsRequest; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class AsyncListEvaluations { + + public static void main(String[] args) throws Exception { + asyncListEvaluations(); + } + + public static void asyncListEvaluations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + workloadManagerClient.listEvaluationsPagedCallable().futureCall(request); + // Do something. + for (Evaluation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListEvaluations_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/AsyncListEvaluationsPaged.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/AsyncListEvaluationsPaged.java new file mode 100644 index 000000000000..539e73d0b2b4 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/AsyncListEvaluationsPaged.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListEvaluations_Paged_async] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.ListEvaluationsRequest; +import com.google.cloud.workloadmanager.v1.ListEvaluationsResponse; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.common.base.Strings; + +public class AsyncListEvaluationsPaged { + + public static void main(String[] args) throws Exception { + asyncListEvaluationsPaged(); + } + + public static void asyncListEvaluationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListEvaluationsResponse response = + workloadManagerClient.listEvaluationsCallable().call(request); + for (Evaluation element : response.getEvaluationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListEvaluations_Paged_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/SyncListEvaluations.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/SyncListEvaluations.java new file mode 100644 index 000000000000..3da39a8c92d3 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/SyncListEvaluations.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListEvaluations_sync] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.ListEvaluationsRequest; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListEvaluations { + + public static void main(String[] args) throws Exception { + syncListEvaluations(); + } + + public static void syncListEvaluations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListEvaluationsRequest request = + ListEvaluationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Evaluation element : workloadManagerClient.listEvaluations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListEvaluations_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/SyncListEvaluationsLocationname.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/SyncListEvaluationsLocationname.java new file mode 100644 index 000000000000..5c32aa358221 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/SyncListEvaluationsLocationname.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListEvaluations_Locationname_sync] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListEvaluationsLocationname { + + public static void main(String[] args) throws Exception { + syncListEvaluationsLocationname(); + } + + public static void syncListEvaluationsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Evaluation element : workloadManagerClient.listEvaluations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListEvaluations_Locationname_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/SyncListEvaluationsString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/SyncListEvaluationsString.java new file mode 100644 index 000000000000..c39e7732c3ab --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listevaluations/SyncListEvaluationsString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListEvaluations_String_sync] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListEvaluationsString { + + public static void main(String[] args) throws Exception { + syncListEvaluationsString(); + } + + public static void syncListEvaluationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Evaluation element : workloadManagerClient.listEvaluations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListEvaluations_String_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/AsyncListExecutionResults.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/AsyncListExecutionResults.java new file mode 100644 index 000000000000..34a349e2e333 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/AsyncListExecutionResults.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListExecutionResults_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.ExecutionResult; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class AsyncListExecutionResults { + + public static void main(String[] args) throws Exception { + asyncListExecutionResults(); + } + + public static void asyncListExecutionResults() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListExecutionResultsRequest request = + ListExecutionResultsRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + workloadManagerClient.listExecutionResultsPagedCallable().futureCall(request); + // Do something. + for (ExecutionResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListExecutionResults_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/AsyncListExecutionResultsPaged.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/AsyncListExecutionResultsPaged.java new file mode 100644 index 000000000000..67a71a5a26f0 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/AsyncListExecutionResultsPaged.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListExecutionResults_Paged_async] +import com.google.cloud.workloadmanager.v1.ExecutionResult; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsResponse; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.common.base.Strings; + +public class AsyncListExecutionResultsPaged { + + public static void main(String[] args) throws Exception { + asyncListExecutionResultsPaged(); + } + + public static void asyncListExecutionResultsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListExecutionResultsRequest request = + ListExecutionResultsRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListExecutionResultsResponse response = + workloadManagerClient.listExecutionResultsCallable().call(request); + for (ExecutionResult element : response.getExecutionResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListExecutionResults_Paged_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/SyncListExecutionResults.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/SyncListExecutionResults.java new file mode 100644 index 000000000000..df1e614ca2a4 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/SyncListExecutionResults.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListExecutionResults_sync] +import com.google.cloud.workloadmanager.v1.ExecutionResult; +import com.google.cloud.workloadmanager.v1.ListExecutionResultsRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListExecutionResults { + + public static void main(String[] args) throws Exception { + syncListExecutionResults(); + } + + public static void syncListExecutionResults() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListExecutionResultsRequest request = + ListExecutionResultsRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (ExecutionResult element : + workloadManagerClient.listExecutionResults(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListExecutionResults_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/SyncListExecutionResultsString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/SyncListExecutionResultsString.java new file mode 100644 index 000000000000..1459af050552 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutionresults/SyncListExecutionResultsString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListExecutionResults_String_sync] +import com.google.cloud.workloadmanager.v1.ExecutionResult; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListExecutionResultsString { + + public static void main(String[] args) throws Exception { + syncListExecutionResultsString(); + } + + public static void syncListExecutionResultsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String parent = "parent-995424086"; + for (ExecutionResult element : + workloadManagerClient.listExecutionResults(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListExecutionResults_String_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/AsyncListExecutions.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/AsyncListExecutions.java new file mode 100644 index 000000000000..81c6b9aea64d --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/AsyncListExecutions.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListExecutions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.ListExecutionsRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class AsyncListExecutions { + + public static void main(String[] args) throws Exception { + asyncListExecutions(); + } + + public static void asyncListExecutions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + workloadManagerClient.listExecutionsPagedCallable().futureCall(request); + // Do something. + for (Execution element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListExecutions_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/AsyncListExecutionsPaged.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/AsyncListExecutionsPaged.java new file mode 100644 index 000000000000..ebc007fe3a39 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/AsyncListExecutionsPaged.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListExecutions_Paged_async] +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.ListExecutionsRequest; +import com.google.cloud.workloadmanager.v1.ListExecutionsResponse; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.common.base.Strings; + +public class AsyncListExecutionsPaged { + + public static void main(String[] args) throws Exception { + asyncListExecutionsPaged(); + } + + public static void asyncListExecutionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListExecutionsResponse response = + workloadManagerClient.listExecutionsCallable().call(request); + for (Execution element : response.getExecutionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListExecutions_Paged_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/SyncListExecutions.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/SyncListExecutions.java new file mode 100644 index 000000000000..fd7c6a472800 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/SyncListExecutions.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListExecutions_sync] +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.ListExecutionsRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListExecutions { + + public static void main(String[] args) throws Exception { + syncListExecutions(); + } + + public static void syncListExecutions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Execution element : workloadManagerClient.listExecutions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListExecutions_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/SyncListExecutionsEvaluationname.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/SyncListExecutionsEvaluationname.java new file mode 100644 index 000000000000..db909f486fcf --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/SyncListExecutionsEvaluationname.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListExecutions_Evaluationname_sync] +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListExecutionsEvaluationname { + + public static void main(String[] args) throws Exception { + syncListExecutionsEvaluationname(); + } + + public static void syncListExecutionsEvaluationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + EvaluationName parent = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + for (Execution element : workloadManagerClient.listExecutions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListExecutions_Evaluationname_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/SyncListExecutionsString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/SyncListExecutionsString.java new file mode 100644 index 000000000000..4cd2edbca927 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listexecutions/SyncListExecutionsString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListExecutions_String_sync] +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListExecutionsString { + + public static void main(String[] args) throws Exception { + syncListExecutionsString(); + } + + public static void syncListExecutionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String parent = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString(); + for (Execution element : workloadManagerClient.listExecutions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListExecutions_String_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listlocations/AsyncListLocations.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..3615917871f7 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + workloadManagerClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListLocations_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listlocations/AsyncListLocationsPaged.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..66d0f0755103 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listlocations/AsyncListLocationsPaged.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + workloadManagerClient.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 workloadmanager_v1_generated_WorkloadManager_ListLocations_Paged_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listlocations/SyncListLocations.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..e1db0aa8b82a --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +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 (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : workloadManagerClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListLocations_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/AsyncListRules.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/AsyncListRules.java new file mode 100644 index 000000000000..62036defc58d --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/AsyncListRules.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListRules_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.ListRulesRequest; +import com.google.cloud.workloadmanager.v1.ListRulesResponse; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class AsyncListRules { + + public static void main(String[] args) throws Exception { + asyncListRules(); + } + + public static void asyncListRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListRulesRequest request = + ListRulesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setCustomRulesBucket("customRulesBucket-888019568") + .build(); + ApiFuture future = + workloadManagerClient.listRulesCallable().futureCall(request); + // Do something. + ListRulesResponse response = future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListRules_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/SyncListRules.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/SyncListRules.java new file mode 100644 index 000000000000..f75e6f63b283 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/SyncListRules.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListRules_sync] +import com.google.cloud.workloadmanager.v1.ListRulesRequest; +import com.google.cloud.workloadmanager.v1.ListRulesResponse; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListRules { + + public static void main(String[] args) throws Exception { + syncListRules(); + } + + public static void syncListRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListRulesRequest request = + ListRulesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setCustomRulesBucket("customRulesBucket-888019568") + .build(); + ListRulesResponse response = workloadManagerClient.listRules(request); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListRules_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/SyncListRulesLocationname.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/SyncListRulesLocationname.java new file mode 100644 index 000000000000..15ca7aaa526a --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/SyncListRulesLocationname.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListRules_Locationname_sync] +import com.google.cloud.workloadmanager.v1.ListRulesResponse; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListRulesLocationname { + + public static void main(String[] args) throws Exception { + syncListRulesLocationname(); + } + + public static void syncListRulesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ListRulesResponse response = workloadManagerClient.listRules(parent); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListRules_Locationname_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/SyncListRulesString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/SyncListRulesString.java new file mode 100644 index 000000000000..b56dde3543d5 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listrules/SyncListRulesString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListRules_String_sync] +import com.google.cloud.workloadmanager.v1.ListRulesResponse; +import com.google.cloud.workloadmanager.v1.LocationName; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListRulesString { + + public static void main(String[] args) throws Exception { + syncListRulesString(); + } + + public static void syncListRulesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + ListRulesResponse response = workloadManagerClient.listRules(parent); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListRules_String_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/AsyncListScannedResources.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/AsyncListScannedResources.java new file mode 100644 index 000000000000..e851c7aa3dc9 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/AsyncListScannedResources.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListScannedResources_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest; +import com.google.cloud.workloadmanager.v1.ScannedResource; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class AsyncListScannedResources { + + public static void main(String[] args) throws Exception { + asyncListScannedResources(); + } + + public static void asyncListScannedResources() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListScannedResourcesRequest request = + ListScannedResourcesRequest.newBuilder() + .setParent("parent-995424086") + .setRule("rule3512060") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + workloadManagerClient.listScannedResourcesPagedCallable().futureCall(request); + // Do something. + for (ScannedResource element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListScannedResources_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/AsyncListScannedResourcesPaged.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/AsyncListScannedResourcesPaged.java new file mode 100644 index 000000000000..5e2d1adc2e01 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/AsyncListScannedResourcesPaged.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListScannedResources_Paged_async] +import com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest; +import com.google.cloud.workloadmanager.v1.ListScannedResourcesResponse; +import com.google.cloud.workloadmanager.v1.ScannedResource; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.common.base.Strings; + +public class AsyncListScannedResourcesPaged { + + public static void main(String[] args) throws Exception { + asyncListScannedResourcesPaged(); + } + + public static void asyncListScannedResourcesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListScannedResourcesRequest request = + ListScannedResourcesRequest.newBuilder() + .setParent("parent-995424086") + .setRule("rule3512060") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListScannedResourcesResponse response = + workloadManagerClient.listScannedResourcesCallable().call(request); + for (ScannedResource element : response.getScannedResourcesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListScannedResources_Paged_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/SyncListScannedResources.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/SyncListScannedResources.java new file mode 100644 index 000000000000..45be201090bb --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/SyncListScannedResources.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListScannedResources_sync] +import com.google.cloud.workloadmanager.v1.ListScannedResourcesRequest; +import com.google.cloud.workloadmanager.v1.ScannedResource; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListScannedResources { + + public static void main(String[] args) throws Exception { + syncListScannedResources(); + } + + public static void syncListScannedResources() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + ListScannedResourcesRequest request = + ListScannedResourcesRequest.newBuilder() + .setParent("parent-995424086") + .setRule("rule3512060") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ScannedResource element : + workloadManagerClient.listScannedResources(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListScannedResources_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/SyncListScannedResourcesString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/SyncListScannedResourcesString.java new file mode 100644 index 000000000000..b902771639db --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/listscannedresources/SyncListScannedResourcesString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_ListScannedResources_String_sync] +import com.google.cloud.workloadmanager.v1.ScannedResource; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncListScannedResourcesString { + + public static void main(String[] args) throws Exception { + syncListScannedResourcesString(); + } + + public static void syncListScannedResourcesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String parent = "parent-995424086"; + for (ScannedResource element : + workloadManagerClient.listScannedResources(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_ListScannedResources_String_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/AsyncRunEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/AsyncRunEvaluation.java new file mode 100644 index 000000000000..733f1e5e3e83 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/AsyncRunEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_RunEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.RunEvaluationRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.longrunning.Operation; + +public class AsyncRunEvaluation { + + public static void main(String[] args) throws Exception { + asyncRunEvaluation(); + } + + public static void asyncRunEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + RunEvaluationRequest request = + RunEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setExecutionId("executionId-454906285") + .setExecution(Execution.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + workloadManagerClient.runEvaluationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_RunEvaluation_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/AsyncRunEvaluationLRO.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/AsyncRunEvaluationLRO.java new file mode 100644 index 000000000000..36305967fe17 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/AsyncRunEvaluationLRO.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_RunEvaluation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.OperationMetadata; +import com.google.cloud.workloadmanager.v1.RunEvaluationRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class AsyncRunEvaluationLRO { + + public static void main(String[] args) throws Exception { + asyncRunEvaluationLRO(); + } + + public static void asyncRunEvaluationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + RunEvaluationRequest request = + RunEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setExecutionId("executionId-454906285") + .setExecution(Execution.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + workloadManagerClient.runEvaluationOperationCallable().futureCall(request); + // Do something. + Execution response = future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_RunEvaluation_LRO_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/SyncRunEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/SyncRunEvaluation.java new file mode 100644 index 000000000000..81db93a46e0e --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/SyncRunEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_RunEvaluation_sync] +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.RunEvaluationRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncRunEvaluation { + + public static void main(String[] args) throws Exception { + syncRunEvaluation(); + } + + public static void syncRunEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + RunEvaluationRequest request = + RunEvaluationRequest.newBuilder() + .setName(EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString()) + .setExecutionId("executionId-454906285") + .setExecution(Execution.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Execution response = workloadManagerClient.runEvaluationAsync(request).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_RunEvaluation_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/SyncRunEvaluationEvaluationnameExecutionString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/SyncRunEvaluationEvaluationnameExecutionString.java new file mode 100644 index 000000000000..0c6fe0104e4f --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/SyncRunEvaluationEvaluationnameExecutionString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_RunEvaluation_EvaluationnameExecutionString_sync] +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncRunEvaluationEvaluationnameExecutionString { + + public static void main(String[] args) throws Exception { + syncRunEvaluationEvaluationnameExecutionString(); + } + + public static void syncRunEvaluationEvaluationnameExecutionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + EvaluationName name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]"); + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + Execution response = + workloadManagerClient.runEvaluationAsync(name, execution, executionId).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_RunEvaluation_EvaluationnameExecutionString_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/SyncRunEvaluationStringExecutionString.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/SyncRunEvaluationStringExecutionString.java new file mode 100644 index 000000000000..717a51ccc480 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/runevaluation/SyncRunEvaluationStringExecutionString.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_RunEvaluation_StringExecutionString_sync] +import com.google.cloud.workloadmanager.v1.EvaluationName; +import com.google.cloud.workloadmanager.v1.Execution; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; + +public class SyncRunEvaluationStringExecutionString { + + public static void main(String[] args) throws Exception { + syncRunEvaluationStringExecutionString(); + } + + public static void syncRunEvaluationStringExecutionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + String name = EvaluationName.of("[PROJECT]", "[LOCATION]", "[EVALUATION]").toString(); + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + Execution response = + workloadManagerClient.runEvaluationAsync(name, execution, executionId).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_RunEvaluation_StringExecutionString_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/AsyncUpdateEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/AsyncUpdateEvaluation.java new file mode 100644 index 000000000000..1209ad5cf72b --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/AsyncUpdateEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_UpdateEvaluation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateEvaluation { + + public static void main(String[] args) throws Exception { + asyncUpdateEvaluation(); + } + + public static void asyncUpdateEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + UpdateEvaluationRequest request = + UpdateEvaluationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setEvaluation(Evaluation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + workloadManagerClient.updateEvaluationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_UpdateEvaluation_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/AsyncUpdateEvaluationLRO.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/AsyncUpdateEvaluationLRO.java new file mode 100644 index 000000000000..408f5c87497b --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/AsyncUpdateEvaluationLRO.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_UpdateEvaluation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.OperationMetadata; +import com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateEvaluationLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateEvaluationLRO(); + } + + public static void asyncUpdateEvaluationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + UpdateEvaluationRequest request = + UpdateEvaluationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setEvaluation(Evaluation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + workloadManagerClient.updateEvaluationOperationCallable().futureCall(request); + // Do something. + Evaluation response = future.get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_UpdateEvaluation_LRO_async] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/SyncUpdateEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/SyncUpdateEvaluation.java new file mode 100644 index 000000000000..9b255b259172 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/SyncUpdateEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_UpdateEvaluation_sync] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.UpdateEvaluationRequest; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateEvaluation { + + public static void main(String[] args) throws Exception { + syncUpdateEvaluation(); + } + + public static void syncUpdateEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + UpdateEvaluationRequest request = + UpdateEvaluationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setEvaluation(Evaluation.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Evaluation response = workloadManagerClient.updateEvaluationAsync(request).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_UpdateEvaluation_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/SyncUpdateEvaluationEvaluationFieldmask.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/SyncUpdateEvaluationEvaluationFieldmask.java new file mode 100644 index 000000000000..5cdcf482faae --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanager/updateevaluation/SyncUpdateEvaluationEvaluationFieldmask.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManager_UpdateEvaluation_EvaluationFieldmask_sync] +import com.google.cloud.workloadmanager.v1.Evaluation; +import com.google.cloud.workloadmanager.v1.WorkloadManagerClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateEvaluationEvaluationFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateEvaluationEvaluationFieldmask(); + } + + public static void syncUpdateEvaluationEvaluationFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkloadManagerClient workloadManagerClient = WorkloadManagerClient.create()) { + Evaluation evaluation = Evaluation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Evaluation response = + workloadManagerClient.updateEvaluationAsync(evaluation, updateMask).get(); + } + } +} +// [END workloadmanager_v1_generated_WorkloadManager_UpdateEvaluation_EvaluationFieldmask_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanagersettings/createevaluation/SyncCreateEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanagersettings/createevaluation/SyncCreateEvaluation.java new file mode 100644 index 000000000000..766dee302da1 --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanagersettings/createevaluation/SyncCreateEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManagerSettings_CreateEvaluation_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.workloadmanager.v1.WorkloadManagerSettings; +import java.time.Duration; + +public class SyncCreateEvaluation { + + public static void main(String[] args) throws Exception { + syncCreateEvaluation(); + } + + public static void syncCreateEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkloadManagerSettings.Builder workloadManagerSettingsBuilder = + WorkloadManagerSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + workloadManagerSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END workloadmanager_v1_generated_WorkloadManagerSettings_CreateEvaluation_sync] diff --git a/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanagersettings/getevaluation/SyncGetEvaluation.java b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanagersettings/getevaluation/SyncGetEvaluation.java new file mode 100644 index 000000000000..61a018c5d0dd --- /dev/null +++ b/java-workloadmanager/samples/snippets/generated/com/google/cloud/workloadmanager/v1/workloadmanagersettings/getevaluation/SyncGetEvaluation.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.workloadmanager.v1.samples; + +// [START workloadmanager_v1_generated_WorkloadManagerSettings_GetEvaluation_sync] +import com.google.cloud.workloadmanager.v1.WorkloadManagerSettings; +import java.time.Duration; + +public class SyncGetEvaluation { + + public static void main(String[] args) throws Exception { + syncGetEvaluation(); + } + + public static void syncGetEvaluation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkloadManagerSettings.Builder workloadManagerSettingsBuilder = + WorkloadManagerSettings.newBuilder(); + workloadManagerSettingsBuilder + .getEvaluationSettings() + .setRetrySettings( + workloadManagerSettingsBuilder + .getEvaluationSettings() + .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()); + WorkloadManagerSettings workloadManagerSettings = workloadManagerSettingsBuilder.build(); + } +} +// [END workloadmanager_v1_generated_WorkloadManagerSettings_GetEvaluation_sync] diff --git a/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml b/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml index 9e0104d83fe8..74cb79e44391 100644 --- a/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml +++ b/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workspaceevents-bom - 0.48.0 + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workspaceevents - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1beta - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1beta - 0.48.0 + 0.49.0 diff --git a/java-workspaceevents/google-cloud-workspaceevents/pom.xml b/java-workspaceevents/google-cloud-workspaceevents/pom.xml index 63cf258fb49b..8cb087b8d7b1 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/pom.xml +++ b/java-workspaceevents/google-cloud-workspaceevents/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workspaceevents - 0.48.0 + 0.49.0 jar Google Google Workspace Events API Google Workspace Events API The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications. com.google.cloud google-cloud-workspaceevents-parent - 0.48.0 + 0.49.0 google-cloud-workspaceevents diff --git a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml index d3d54dcc03df..6fbdceb7984a 100644 --- a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml +++ b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.48.0 + 0.49.0 grpc-google-cloud-workspaceevents-v1 GRPC library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.48.0 + 0.49.0 diff --git a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml index aed3bd152979..0ad280cdf31d 100644 --- a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml +++ b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1beta - 0.48.0 + 0.49.0 grpc-google-cloud-workspaceevents-v1beta GRPC library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.48.0 + 0.49.0 diff --git a/java-workspaceevents/pom.xml b/java-workspaceevents/pom.xml index ee714092f0f0..f9caea0962f5 100644 --- a/java-workspaceevents/pom.xml +++ b/java-workspaceevents/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workspaceevents-parent pom - 0.48.0 + 0.49.0 Google Google Workspace Events API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workspaceevents - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1beta - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1beta - 0.48.0 + 0.49.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.48.0 + 0.49.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.48.0 + 0.49.0 diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml index 23becda95e3b..9fffb93b17ae 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.48.0 + 0.49.0 proto-google-cloud-workspaceevents-v1 Proto library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.48.0 + 0.49.0 diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml b/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml index 83a533af4513..0f1e7dad169a 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1beta - 0.48.0 + 0.49.0 proto-google-cloud-workspaceevents-v1beta Proto library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.48.0 + 0.49.0 diff --git a/java-workstations/google-cloud-workstations-bom/pom.xml b/java-workstations/google-cloud-workstations-bom/pom.xml index 00ddb46bec50..b56fbb4e6557 100644 --- a/java-workstations/google-cloud-workstations-bom/pom.xml +++ b/java-workstations/google-cloud-workstations-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workstations-bom - 0.72.0 + 0.73.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0 + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workstations - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.72.0 + 0.73.0 diff --git a/java-workstations/google-cloud-workstations/pom.xml b/java-workstations/google-cloud-workstations/pom.xml index d9063814dad5..aa100dab1d96 100644 --- a/java-workstations/google-cloud-workstations/pom.xml +++ b/java-workstations/google-cloud-workstations/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workstations - 0.72.0 + 0.73.0 jar Google Cloud Workstations Cloud Workstations Fully managed development environments built to meet the needs of security-sensitive enterprises. It enhances the security of development environments while accelerating developer onboarding and productivity. com.google.cloud google-cloud-workstations-parent - 0.72.0 + 0.73.0 google-cloud-workstations diff --git a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml index 87827835fc6b..3696ca7d995b 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.72.0 + 0.73.0 grpc-google-cloud-workstations-v1 GRPC library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.72.0 + 0.73.0 diff --git a/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml index 87c096570781..ee1ca5cc18d5 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.72.0 + 0.73.0 grpc-google-cloud-workstations-v1beta GRPC library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.72.0 + 0.73.0 diff --git a/java-workstations/pom.xml b/java-workstations/pom.xml index db96f47db901..bf74da0fd1f2 100644 --- a/java-workstations/pom.xml +++ b/java-workstations/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workstations-parent pom - 0.72.0 + 0.73.0 Google Cloud Workstations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0 + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workstations - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.72.0 + 0.73.0 diff --git a/java-workstations/proto-google-cloud-workstations-v1/pom.xml b/java-workstations/proto-google-cloud-workstations-v1/pom.xml index cdc62a6ce36d..e3b56c0cacd3 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.72.0 + 0.73.0 proto-google-cloud-workstations-v1 Proto library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.72.0 + 0.73.0 diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml b/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml index 0e51ac42c9ce..f190388f59d6 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.72.0 + 0.73.0 proto-google-cloud-workstations-v1beta Proto library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.72.0 + 0.73.0 diff --git a/pom.xml b/pom.xml index e9a958f3ac1d..ea2c060ff34f 100644 --- a/pom.xml +++ b/pom.xml @@ -57,6 +57,7 @@ java-binary-authorization java-capacityplanner java-certificate-manager + java-ces java-channel java-chat java-chronicle @@ -244,6 +245,7 @@ java-websecurityscanner java-workflow-executions java-workflows + java-workloadmanager java-workspaceevents java-workstations diff --git a/renovate.json b/renovate.json index 8c86753ae468..4077283adf73 100644 --- a/renovate.json +++ b/renovate.json @@ -38,6 +38,7 @@ ".kokoro/nightly/graalvm-native*.cfg", ".kokoro/nightly/graalvm-sub-jobs/native*/common.cfg", ".kokoro/presubmit/graalvm-native*.cfg", + ".kokoro/presubmit/*-graalvm-native-presubmit.cfg", "owl-bot-postprocessor/synthtool/gcp/templates/java-library/.kokoro/presubmit/graalvm-native*.cfg", ".github/workflows/ci.yaml", ".github/workflows/generated_files_sync.yaml", @@ -49,6 +50,7 @@ "managerFilePatterns": [ "/^.kokoro/nightly/graalvm-native.*.cfg$/", "/^.kokoro/presubmit/graalvm-native.*.cfg$/", + "/^.kokoro/presubmit/*-graalvm-native-presubmit.cfg$/", "/^.kokoro/nightly/graalvm-sub-jobs/native.*/common.cfg$/", "/^owl-bot-postprocessor/synthtool/gcp/templates/java-library/.kokoro/presubmit/graalvm-native.*.cfg$/" ], diff --git a/versions.txt b/versions.txt index 72edf11239ac..6920a56cbdb2 100644 --- a/versions.txt +++ b/versions.txt @@ -1,947 +1,953 @@ # Format: # module:released-version:current-version -google-cloud-java:1.78.0:1.78.0 -google-cloud-accessapproval:2.85.0:2.85.0 -grpc-google-cloud-accessapproval-v1:2.85.0:2.85.0 -proto-google-cloud-accessapproval-v1:2.85.0:2.85.0 -google-identity-accesscontextmanager:1.85.0:1.85.0 -grpc-google-identity-accesscontextmanager-v1:1.85.0:1.85.0 -proto-google-identity-accesscontextmanager-v1:1.85.0:1.85.0 -proto-google-identity-accesscontextmanager-type:1.85.0:1.85.0 -google-cloud-aiplatform:3.85.0:3.85.0 -grpc-google-cloud-aiplatform-v1:3.85.0:3.85.0 -grpc-google-cloud-aiplatform-v1beta1:0.101.0:0.101.0 -proto-google-cloud-aiplatform-v1:3.85.0:3.85.0 -proto-google-cloud-aiplatform-v1beta1:0.101.0:0.101.0 -google-analytics-admin:0.94.0:0.94.0 -grpc-google-analytics-admin-v1alpha:0.94.0:0.94.0 -proto-google-analytics-admin-v1alpha:0.94.0:0.94.0 -proto-google-analytics-admin-v1beta:0.94.0:0.94.0 -grpc-google-analytics-admin-v1beta:0.94.0:0.94.0 -google-analytics-data:0.95.0:0.95.0 -grpc-google-analytics-data-v1beta:0.95.0:0.95.0 -proto-google-analytics-data-v1beta:0.95.0:0.95.0 -proto-google-analytics-data-v1alpha:0.95.0:0.95.0 -grpc-google-analytics-data-v1alpha:0.95.0:0.95.0 -google-cloud-analyticshub:0.81.0:0.81.0 -proto-google-cloud-analyticshub-v1:0.81.0:0.81.0 -grpc-google-cloud-analyticshub-v1:0.81.0:0.81.0 -google-shopping-merchant-promotions:1.12.0:1.12.0 -proto-google-shopping-merchant-promotions-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-promotions-v1beta:1.12.0:1.12.0 -google-cloud-api-gateway:2.84.0:2.84.0 -grpc-google-cloud-api-gateway-v1:2.84.0:2.84.0 -proto-google-cloud-api-gateway-v1:2.84.0:2.84.0 -google-cloud-apigee-connect:2.84.0:2.84.0 -grpc-google-cloud-apigee-connect-v1:2.84.0:2.84.0 -proto-google-cloud-apigee-connect-v1:2.84.0:2.84.0 -google-cloud-apigee-registry:0.84.0:0.84.0 -proto-google-cloud-apigee-registry-v1:0.84.0:0.84.0 -grpc-google-cloud-apigee-registry-v1:0.84.0:0.84.0 -google-cloud-apikeys:0.82.0:0.82.0 -proto-google-cloud-apikeys-v2:0.82.0:0.82.0 -grpc-google-cloud-apikeys-v2:0.82.0:0.82.0 -google-cloud-appengine-admin:2.84.0:2.84.0 -grpc-google-cloud-appengine-admin-v1:2.84.0:2.84.0 -proto-google-cloud-appengine-admin-v1:2.84.0:2.84.0 -google-area120-tables:0.88.0:0.88.0 -grpc-google-area120-tables-v1alpha1:0.88.0:0.88.0 -proto-google-area120-tables-v1alpha1:0.88.0:0.88.0 -google-cloud-artifact-registry:1.83.0:1.83.0 -grpc-google-cloud-artifact-registry-v1beta2:0.89.0:0.89.0 -grpc-google-cloud-artifact-registry-v1:1.83.0:1.83.0 -proto-google-cloud-artifact-registry-v1beta2:0.89.0:0.89.0 -proto-google-cloud-artifact-registry-v1:1.83.0:1.83.0 -google-cloud-asset:3.88.0:3.88.0 -grpc-google-cloud-asset-v1:3.88.0:3.88.0 -grpc-google-cloud-asset-v1p1beta1:0.188.0:0.188.0 -grpc-google-cloud-asset-v1p2beta1:0.188.0:0.188.0 -grpc-google-cloud-asset-v1p5beta1:0.188.0:0.188.0 -grpc-google-cloud-asset-v1p7beta1:3.88.0:3.88.0 -proto-google-cloud-asset-v1:3.88.0:3.88.0 -proto-google-cloud-asset-v1p1beta1:0.188.0:0.188.0 -proto-google-cloud-asset-v1p2beta1:0.188.0:0.188.0 -proto-google-cloud-asset-v1p5beta1:0.188.0:0.188.0 -proto-google-cloud-asset-v1p7beta1:3.88.0:3.88.0 -google-cloud-assured-workloads:2.84.0:2.84.0 -grpc-google-cloud-assured-workloads-v1beta1:0.96.0:0.96.0 -grpc-google-cloud-assured-workloads-v1:2.84.0:2.84.0 -proto-google-cloud-assured-workloads-v1beta1:0.96.0:0.96.0 -proto-google-cloud-assured-workloads-v1:2.84.0:2.84.0 -google-cloud-automl:2.84.0:2.84.0 -grpc-google-cloud-automl-v1beta1:0.171.0:0.171.0 -grpc-google-cloud-automl-v1:2.84.0:2.84.0 -proto-google-cloud-automl-v1beta1:0.171.0:0.171.0 -proto-google-cloud-automl-v1:2.84.0:2.84.0 -google-cloud-bare-metal-solution:0.84.0:0.84.0 -proto-google-cloud-bare-metal-solution-v2:0.84.0:0.84.0 -grpc-google-cloud-bare-metal-solution-v2:0.84.0:0.84.0 -google-cloud-batch:0.84.0:0.84.0 -proto-google-cloud-batch-v1:0.84.0:0.84.0 -grpc-google-cloud-batch-v1:0.84.0:0.84.0 -proto-google-cloud-batch-v1alpha:0.84.0:0.84.0 -grpc-google-cloud-batch-v1alpha:0.84.0:0.84.0 -google-cloud-beyondcorp-appconnections:0.82.0:0.82.0 -proto-google-cloud-beyondcorp-appconnections-v1:0.82.0:0.82.0 -grpc-google-cloud-beyondcorp-appconnections-v1:0.82.0:0.82.0 -google-cloud-beyondcorp-appconnectors:0.82.0:0.82.0 -proto-google-cloud-beyondcorp-appconnectors-v1:0.82.0:0.82.0 -grpc-google-cloud-beyondcorp-appconnectors-v1:0.82.0:0.82.0 -google-cloud-beyondcorp-appgateways:0.82.0:0.82.0 -proto-google-cloud-beyondcorp-appgateways-v1:0.82.0:0.82.0 -grpc-google-cloud-beyondcorp-appgateways-v1:0.82.0:0.82.0 -google-cloud-beyondcorp-clientconnectorservices:0.82.0:0.82.0 -proto-google-cloud-beyondcorp-clientconnectorservices-v1:0.82.0:0.82.0 -grpc-google-cloud-beyondcorp-clientconnectorservices-v1:0.82.0:0.82.0 -google-cloud-beyondcorp-clientgateways:0.82.0:0.82.0 -proto-google-cloud-beyondcorp-clientgateways-v1:0.82.0:0.82.0 -grpc-google-cloud-beyondcorp-clientgateways-v1:0.82.0:0.82.0 -google-cloud-bigqueryconnection:2.86.0:2.86.0 -grpc-google-cloud-bigqueryconnection-v1:2.86.0:2.86.0 -grpc-google-cloud-bigqueryconnection-v1beta1:0.94.0:0.94.0 -proto-google-cloud-bigqueryconnection-v1:2.86.0:2.86.0 -proto-google-cloud-bigqueryconnection-v1beta1:0.94.0:0.94.0 -google-cloud-bigquery-data-exchange:2.79.0:2.79.0 -proto-google-cloud-bigquery-data-exchange-v1beta1:2.79.0:2.79.0 -grpc-google-cloud-bigquery-data-exchange-v1beta1:2.79.0:2.79.0 -google-cloud-bigquerydatapolicy:0.81.0:0.81.0 -proto-google-cloud-bigquerydatapolicy-v1beta1:0.81.0:0.81.0 -grpc-google-cloud-bigquerydatapolicy-v1beta1:0.81.0:0.81.0 -google-cloud-bigquerydatatransfer:2.84.0:2.84.0 -grpc-google-cloud-bigquerydatatransfer-v1:2.84.0:2.84.0 -proto-google-cloud-bigquerydatatransfer-v1:2.84.0:2.84.0 -google-cloud-bigquerymigration:0.87.0:0.87.0 -grpc-google-cloud-bigquerymigration-v2alpha:0.87.0:0.87.0 -proto-google-cloud-bigquerymigration-v2alpha:0.87.0:0.87.0 -proto-google-cloud-bigquerymigration-v2:0.87.0:0.87.0 -grpc-google-cloud-bigquerymigration-v2:0.87.0:0.87.0 -google-cloud-bigqueryreservation:2.85.0:2.85.0 -grpc-google-cloud-bigqueryreservation-v1:2.85.0:2.85.0 -proto-google-cloud-bigqueryreservation-v1:2.85.0:2.85.0 -google-cloud-billingbudgets:2.84.0:2.84.0 -grpc-google-cloud-billingbudgets-v1beta1:0.93.0:0.93.0 -grpc-google-cloud-billingbudgets-v1:2.84.0:2.84.0 -proto-google-cloud-billingbudgets-v1beta1:0.93.0:0.93.0 -proto-google-cloud-billingbudgets-v1:2.84.0:2.84.0 -google-cloud-billing:2.84.0:2.84.0 -grpc-google-cloud-billing-v1:2.84.0:2.84.0 -proto-google-cloud-billing-v1:2.84.0:2.84.0 -google-cloud-binary-authorization:1.83.0:1.83.0 -grpc-google-cloud-binary-authorization-v1beta1:0.88.0:0.88.0 -grpc-google-cloud-binary-authorization-v1:1.83.0:1.83.0 -proto-google-cloud-binary-authorization-v1beta1:0.88.0:0.88.0 -proto-google-cloud-binary-authorization-v1:1.83.0:1.83.0 -google-cloud-certificate-manager:0.87.0:0.87.0 -proto-google-cloud-certificate-manager-v1:0.87.0:0.87.0 -grpc-google-cloud-certificate-manager-v1:0.87.0:0.87.0 -google-cloud-channel:3.88.0:3.88.0 -grpc-google-cloud-channel-v1:3.88.0:3.88.0 -proto-google-cloud-channel-v1:3.88.0:3.88.0 -google-cloud-build:3.86.0:3.86.0 -grpc-google-cloud-build-v1:3.86.0:3.86.0 -proto-google-cloud-build-v1:3.86.0:3.86.0 -google-cloud-cloudcommerceconsumerprocurement:0.82.0:0.82.0 -proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.82.0:0.82.0 -grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.82.0:0.82.0 -google-cloud-compute:1.94.0:1.94.0 -proto-google-cloud-compute-v1:1.94.0:1.94.0 -google-cloud-contact-center-insights:2.84.0:2.84.0 -grpc-google-cloud-contact-center-insights-v1:2.84.0:2.84.0 -proto-google-cloud-contact-center-insights-v1:2.84.0:2.84.0 -proto-google-cloud-containeranalysis-v1:2.85.0:2.85.0 -proto-google-cloud-containeranalysis-v1beta1:0.175.0:0.175.0 -grpc-google-cloud-containeranalysis-v1beta1:0.175.0:0.175.0 -grpc-google-cloud-containeranalysis-v1:2.85.0:2.85.0 -google-cloud-containeranalysis:2.85.0:2.85.0 -google-cloud-container:2.87.0:2.87.0 -grpc-google-cloud-container-v1:2.87.0:2.87.0 -grpc-google-cloud-container-v1beta1:2.87.0:2.87.0 -proto-google-cloud-container-v1:2.87.0:2.87.0 -proto-google-cloud-container-v1beta1:2.87.0:2.87.0 -google-cloud-contentwarehouse:0.80.0:0.80.0 -proto-google-cloud-contentwarehouse-v1:0.80.0:0.80.0 -grpc-google-cloud-contentwarehouse-v1:0.80.0:0.80.0 -google-cloud-datacatalog:1.90.0:1.90.0 -grpc-google-cloud-datacatalog-v1:1.90.0:1.90.0 -grpc-google-cloud-datacatalog-v1beta1:0.127.0:0.127.0 -proto-google-cloud-datacatalog-v1:1.90.0:1.90.0 -proto-google-cloud-datacatalog-v1beta1:0.127.0:0.127.0 -google-cloud-dataflow:0.88.0:0.88.0 -grpc-google-cloud-dataflow-v1beta3:0.88.0:0.88.0 -proto-google-cloud-dataflow-v1beta3:0.88.0:0.88.0 -google-cloud-dataform:0.83.0:0.83.0 -proto-google-cloud-dataform-v1beta1:0.83.0:0.83.0 -grpc-google-cloud-dataform-v1beta1:0.83.0:0.83.0 -google-cloud-data-fusion:1.84.0:1.84.0 -grpc-google-cloud-data-fusion-v1beta1:0.88.0:0.88.0 -grpc-google-cloud-data-fusion-v1:1.84.0:1.84.0 -proto-google-cloud-data-fusion-v1beta1:0.88.0:0.88.0 -proto-google-cloud-data-fusion-v1:1.84.0:1.84.0 -google-cloud-datalabeling:0.204.0:0.204.0 -grpc-google-cloud-datalabeling-v1beta1:0.169.0:0.169.0 -proto-google-cloud-datalabeling-v1beta1:0.169.0:0.169.0 -google-cloud-dataplex:1.82.0:1.82.0 -proto-google-cloud-dataplex-v1:1.82.0:1.82.0 -grpc-google-cloud-dataplex-v1:1.82.0:1.82.0 -google-cloud-dataproc-metastore:2.85.0:2.85.0 -grpc-google-cloud-dataproc-metastore-v1beta:0.89.0:0.89.0 -grpc-google-cloud-dataproc-metastore-v1alpha:0.89.0:0.89.0 -grpc-google-cloud-dataproc-metastore-v1:2.85.0:2.85.0 -proto-google-cloud-dataproc-metastore-v1beta:0.89.0:0.89.0 -proto-google-cloud-dataproc-metastore-v1alpha:0.89.0:0.89.0 -proto-google-cloud-dataproc-metastore-v1:2.85.0:2.85.0 -google-cloud-dataproc:4.81.0:4.81.0 -grpc-google-cloud-dataproc-v1:4.81.0:4.81.0 -proto-google-cloud-dataproc-v1:4.81.0:4.81.0 -google-cloud-datastream:1.83.0:1.83.0 -grpc-google-cloud-datastream-v1alpha1:0.88.0:0.88.0 -proto-google-cloud-datastream-v1alpha1:0.88.0:0.88.0 -proto-google-cloud-datastream-v1:1.83.0:1.83.0 -grpc-google-cloud-datastream-v1:1.83.0:1.83.0 -proto-google-devtools-source-protos:1.84.0:1.84.0 -google-cloud-deploy:1.82.0:1.82.0 -grpc-google-cloud-deploy-v1:1.82.0:1.82.0 -proto-google-cloud-deploy-v1:1.82.0:1.82.0 -google-cloud-dialogflow-cx:0.95.0:0.95.0 -grpc-google-cloud-dialogflow-cx-v3beta1:0.95.0:0.95.0 -grpc-google-cloud-dialogflow-cx-v3:0.95.0:0.95.0 -proto-google-cloud-dialogflow-cx-v3beta1:0.95.0:0.95.0 -proto-google-cloud-dialogflow-cx-v3:0.95.0:0.95.0 -google-cloud-dialogflow:4.90.0:4.90.0 -grpc-google-cloud-dialogflow-v2beta1:0.188.0:0.188.0 -grpc-google-cloud-dialogflow-v2:4.90.0:4.90.0 -proto-google-cloud-dialogflow-v2:4.90.0:4.90.0 -proto-google-cloud-dialogflow-v2beta1:0.188.0:0.188.0 -google-cloud-discoveryengine:0.80.0:0.80.0 -proto-google-cloud-discoveryengine-v1beta:0.80.0:0.80.0 -grpc-google-cloud-discoveryengine-v1beta:0.80.0:0.80.0 -google-cloud-distributedcloudedge:0.81.0:0.81.0 -proto-google-cloud-distributedcloudedge-v1:0.81.0:0.81.0 -grpc-google-cloud-distributedcloudedge-v1:0.81.0:0.81.0 -google-cloud-dlp:3.88.0:3.88.0 -grpc-google-cloud-dlp-v2:3.88.0:3.88.0 -proto-google-cloud-dlp-v2:3.88.0:3.88.0 -google-cloud-dms:2.83.0:2.83.0 -grpc-google-cloud-dms-v1:2.83.0:2.83.0 -proto-google-cloud-dms-v1:2.83.0:2.83.0 -google-cloud-document-ai:2.88.0:2.88.0 -grpc-google-cloud-document-ai-v1beta3:0.100.0:0.100.0 -grpc-google-cloud-document-ai-v1:2.88.0:2.88.0 -proto-google-cloud-document-ai-v1beta3:0.100.0:0.100.0 -proto-google-cloud-document-ai-v1:2.88.0:2.88.0 -google-cloud-domains:1.81.0:1.81.0 -grpc-google-cloud-domains-v1beta1:0.89.0:0.89.0 -grpc-google-cloud-domains-v1alpha2:0.89.0:0.89.0 -grpc-google-cloud-domains-v1:1.81.0:1.81.0 -proto-google-cloud-domains-v1beta1:0.89.0:0.89.0 -proto-google-cloud-domains-v1alpha2:0.89.0:0.89.0 -proto-google-cloud-domains-v1:1.81.0:1.81.0 -google-cloud-enterpriseknowledgegraph:0.80.0:0.80.0 -proto-google-cloud-enterpriseknowledgegraph-v1:0.80.0:0.80.0 -grpc-google-cloud-enterpriseknowledgegraph-v1:0.80.0:0.80.0 -google-cloud-errorreporting:0.205.0-beta:0.205.0-beta -grpc-google-cloud-error-reporting-v1beta1:0.171.0:0.171.0 -proto-google-cloud-error-reporting-v1beta1:0.171.0:0.171.0 -google-cloud-essential-contacts:2.84.0:2.84.0 -grpc-google-cloud-essential-contacts-v1:2.84.0:2.84.0 -proto-google-cloud-essential-contacts-v1:2.84.0:2.84.0 -google-cloud-eventarc:1.84.0:1.84.0 -grpc-google-cloud-eventarc-v1:1.84.0:1.84.0 -proto-google-cloud-eventarc-v1:1.84.0:1.84.0 -google-cloud-eventarc-publishing:0.84.0:0.84.0 -proto-google-cloud-eventarc-publishing-v1:0.84.0:0.84.0 -grpc-google-cloud-eventarc-publishing-v1:0.84.0:0.84.0 -google-cloud-filestore:1.85.0:1.85.0 -grpc-google-cloud-filestore-v1beta1:0.87.0:0.87.0 -grpc-google-cloud-filestore-v1:1.85.0:1.85.0 -proto-google-cloud-filestore-v1:1.85.0:1.85.0 -proto-google-cloud-filestore-v1beta1:0.87.0:0.87.0 -google-cloud-functions:2.86.0:2.86.0 -grpc-google-cloud-functions-v1:2.86.0:2.86.0 -proto-google-cloud-functions-v1:2.86.0:2.86.0 -proto-google-cloud-functions-v2beta:2.86.0:2.86.0 -proto-google-cloud-functions-v2alpha:2.86.0:2.86.0 -grpc-google-cloud-functions-v2beta:2.86.0:2.86.0 -grpc-google-cloud-functions-v2alpha:2.86.0:2.86.0 -proto-google-cloud-functions-v2:2.86.0:2.86.0 -grpc-google-cloud-functions-v2:2.86.0:2.86.0 -google-cloud-game-servers:2.84.0:2.84.0 -grpc-google-cloud-game-servers-v1:2.84.0:2.84.0 -grpc-google-cloud-game-servers-v1beta:0.109.0:0.109.0 -proto-google-cloud-game-servers-v1:2.84.0:2.84.0 -proto-google-cloud-game-servers-v1beta:0.109.0:0.109.0 -google-cloud-gke-backup:0.83.0:0.83.0 -proto-google-cloud-gke-backup-v1:0.83.0:0.83.0 -grpc-google-cloud-gke-backup-v1:0.83.0:0.83.0 -google-cloud-gke-connect-gateway:0.85.0:0.85.0 -proto-google-cloud-gke-connect-gateway-v1beta1:0.85.0:0.85.0 -google-cloud-gkehub:1.84.0:1.84.0 -grpc-google-cloud-gkehub-v1beta1:0.90.0:0.90.0 -grpc-google-cloud-gkehub-v1:1.84.0:1.84.0 -grpc-google-cloud-gkehub-v1alpha:0.90.0:0.90.0 -grpc-google-cloud-gkehub-v1beta:0.90.0:0.90.0 -proto-google-cloud-gkehub-v1beta1:0.90.0:0.90.0 -proto-google-cloud-gkehub-v1:1.84.0:1.84.0 -proto-google-cloud-gkehub-v1alpha:0.90.0:0.90.0 -proto-google-cloud-gkehub-v1beta:0.90.0:0.90.0 -google-cloud-gke-multi-cloud:0.83.0:0.83.0 -proto-google-cloud-gke-multi-cloud-v1:0.83.0:0.83.0 -grpc-google-cloud-gke-multi-cloud-v1:0.83.0:0.83.0 -grafeas:2.85.0:2.85.0 -google-cloud-gsuite-addons:2.84.0:2.84.0 -grpc-google-cloud-gsuite-addons-v1:2.84.0:2.84.0 -proto-google-cloud-gsuite-addons-v1:2.84.0:2.84.0 -proto-google-apps-script-type-protos:2.84.0:2.84.0 -google-iam-admin:3.79.0:3.79.0 -grpc-google-iam-admin-v1:3.79.0:3.79.0 -proto-google-iam-admin-v1:3.79.0:3.79.0 -google-cloud-iamcredentials:2.84.0:2.84.0 -grpc-google-cloud-iamcredentials-v1:2.84.0:2.84.0 -proto-google-cloud-iamcredentials-v1:2.84.0:2.84.0 -google-cloud-ids:1.83.0:1.83.0 -grpc-google-cloud-ids-v1:1.83.0:1.83.0 -proto-google-cloud-ids-v1:1.83.0:1.83.0 -google-cloud-iot:2.84.0:2.84.0 -grpc-google-cloud-iot-v1:2.84.0:2.84.0 -proto-google-cloud-iot-v1:2.84.0:2.84.0 -google-cloud-kms:2.87.0:2.87.0 -grpc-google-cloud-kms-v1:0.178.0:0.178.0 -proto-google-cloud-kms-v1:0.178.0:0.178.0 -google-cloud-language:2.85.0:2.85.0 -grpc-google-cloud-language-v1:2.85.0:2.85.0 -grpc-google-cloud-language-v1beta2:0.172.0:0.172.0 -proto-google-cloud-language-v1:2.85.0:2.85.0 -proto-google-cloud-language-v1beta2:0.172.0:0.172.0 -google-cloud-life-sciences:0.86.0:0.86.0 -grpc-google-cloud-life-sciences-v2beta:0.86.0:0.86.0 -proto-google-cloud-life-sciences-v2beta:0.86.0:0.86.0 -google-cloud-managed-identities:1.82.0:1.82.0 -grpc-google-cloud-managed-identities-v1:1.82.0:1.82.0 -proto-google-cloud-managed-identities-v1:1.82.0:1.82.0 -google-cloud-mediatranslation:0.90.0:0.90.0 -grpc-google-cloud-mediatranslation-v1beta1:0.90.0:0.90.0 -proto-google-cloud-mediatranslation-v1beta1:0.90.0:0.90.0 -google-cloud-memcache:2.84.0:2.84.0 -grpc-google-cloud-memcache-v1beta2:0.91.0:0.91.0 -grpc-google-cloud-memcache-v1:2.84.0:2.84.0 -proto-google-cloud-memcache-v1beta2:0.91.0:0.91.0 -proto-google-cloud-memcache-v1:2.84.0:2.84.0 -google-cloud-monitoring-dashboard:2.86.0:2.86.0 -grpc-google-cloud-monitoring-dashboard-v1:2.86.0:2.86.0 -proto-google-cloud-monitoring-dashboard-v1:2.86.0:2.86.0 -google-cloud-monitoring:3.85.0:3.85.0 -grpc-google-cloud-monitoring-v3:3.85.0:3.85.0 -proto-google-cloud-monitoring-v3:3.85.0:3.85.0 -google-cloud-networkconnectivity:1.83.0:1.83.0 -grpc-google-cloud-networkconnectivity-v1alpha1:0.89.0:0.89.0 -grpc-google-cloud-networkconnectivity-v1:1.83.0:1.83.0 -proto-google-cloud-networkconnectivity-v1alpha1:0.89.0:0.89.0 -proto-google-cloud-networkconnectivity-v1:1.83.0:1.83.0 -google-cloud-network-management:1.85.0:1.85.0 -grpc-google-cloud-network-management-v1beta1:0.87.0:0.87.0 -grpc-google-cloud-network-management-v1:1.85.0:1.85.0 -proto-google-cloud-network-management-v1beta1:0.87.0:0.87.0 -proto-google-cloud-network-management-v1:1.85.0:1.85.0 -google-cloud-network-security:0.87.0:0.87.0 -grpc-google-cloud-network-security-v1beta1:0.87.0:0.87.0 -proto-google-cloud-network-security-v1beta1:0.87.0:0.87.0 -proto-google-cloud-network-security-v1:0.87.0:0.87.0 -grpc-google-cloud-network-security-v1:0.87.0:0.87.0 -google-cloud-notebooks:1.82.0:1.82.0 -grpc-google-cloud-notebooks-v1beta1:0.89.0:0.89.0 -grpc-google-cloud-notebooks-v1:1.82.0:1.82.0 -proto-google-cloud-notebooks-v1beta1:0.89.0:0.89.0 -proto-google-cloud-notebooks-v1:1.82.0:1.82.0 -google-cloud-notification:0.202.0-beta:0.202.0-beta -google-cloud-optimization:1.82.0:1.82.0 -proto-google-cloud-optimization-v1:1.82.0:1.82.0 -grpc-google-cloud-optimization-v1:1.82.0:1.82.0 -google-cloud-orchestration-airflow:1.84.0:1.84.0 -grpc-google-cloud-orchestration-airflow-v1:1.84.0:1.84.0 -grpc-google-cloud-orchestration-airflow-v1beta1:0.87.0:0.87.0 -proto-google-cloud-orchestration-airflow-v1:1.84.0:1.84.0 -proto-google-cloud-orchestration-airflow-v1beta1:0.87.0:0.87.0 -google-cloud-orgpolicy:2.84.0:2.84.0 -grpc-google-cloud-orgpolicy-v2:2.84.0:2.84.0 -proto-google-cloud-orgpolicy-v1:2.84.0:2.84.0 -proto-google-cloud-orgpolicy-v2:2.84.0:2.84.0 -google-cloud-os-config:2.86.0:2.86.0 -grpc-google-cloud-os-config-v1:2.86.0:2.86.0 -grpc-google-cloud-os-config-v1beta:2.86.0:2.86.0 -grpc-google-cloud-os-config-v1alpha:2.86.0:2.86.0 -proto-google-cloud-os-config-v1:2.86.0:2.86.0 -proto-google-cloud-os-config-v1alpha:2.86.0:2.86.0 -proto-google-cloud-os-config-v1beta:2.86.0:2.86.0 -google-cloud-os-login:2.83.0:2.83.0 -grpc-google-cloud-os-login-v1:2.83.0:2.83.0 -proto-google-cloud-os-login-v1:2.83.0:2.83.0 -google-cloud-phishingprotection:0.115.0:0.115.0 -grpc-google-cloud-phishingprotection-v1beta1:0.115.0:0.115.0 -proto-google-cloud-phishingprotection-v1beta1:0.115.0:0.115.0 -google-cloud-policy-troubleshooter:1.83.0:1.83.0 -grpc-google-cloud-policy-troubleshooter-v1:1.83.0:1.83.0 -proto-google-cloud-policy-troubleshooter-v1:1.83.0:1.83.0 -google-cloud-private-catalog:0.86.0:0.86.0 -grpc-google-cloud-private-catalog-v1beta1:0.86.0:0.86.0 -proto-google-cloud-private-catalog-v1beta1:0.86.0:0.86.0 -google-cloud-profiler:2.84.0:2.84.0 -grpc-google-cloud-profiler-v2:2.84.0:2.84.0 -proto-google-cloud-profiler-v2:2.84.0:2.84.0 -google-cloud-publicca:0.81.0:0.81.0 -proto-google-cloud-publicca-v1beta1:0.81.0:0.81.0 -grpc-google-cloud-publicca-v1beta1:0.81.0:0.81.0 -google-cloud-recaptchaenterprise:3.81.0:3.81.0 -grpc-google-cloud-recaptchaenterprise-v1:3.81.0:3.81.0 -grpc-google-cloud-recaptchaenterprise-v1beta1:0.123.0:0.123.0 -proto-google-cloud-recaptchaenterprise-v1:3.81.0:3.81.0 -proto-google-cloud-recaptchaenterprise-v1beta1:0.123.0:0.123.0 -google-cloud-recommendations-ai:0.91.0:0.91.0 -grpc-google-cloud-recommendations-ai-v1beta1:0.91.0:0.91.0 -proto-google-cloud-recommendations-ai-v1beta1:0.91.0:0.91.0 -google-cloud-recommender:2.86.0:2.86.0 -grpc-google-cloud-recommender-v1:2.86.0:2.86.0 -grpc-google-cloud-recommender-v1beta1:0.98.0:0.98.0 -proto-google-cloud-recommender-v1:2.86.0:2.86.0 -proto-google-cloud-recommender-v1beta1:0.98.0:0.98.0 -google-cloud-redis:2.87.0:2.87.0 -grpc-google-cloud-redis-v1beta1:0.175.0:0.175.0 -grpc-google-cloud-redis-v1:2.87.0:2.87.0 -proto-google-cloud-redis-v1:2.87.0:2.87.0 -proto-google-cloud-redis-v1beta1:0.175.0:0.175.0 -google-cloud-resourcemanager:1.86.0:1.86.0 -grpc-google-cloud-resourcemanager-v3:1.86.0:1.86.0 -proto-google-cloud-resourcemanager-v3:1.86.0:1.86.0 -google-cloud-retail:2.86.0:2.86.0 -grpc-google-cloud-retail-v2:2.86.0:2.86.0 -proto-google-cloud-retail-v2:2.86.0:2.86.0 -proto-google-cloud-retail-v2alpha:2.86.0:2.86.0 -proto-google-cloud-retail-v2beta:2.86.0:2.86.0 -grpc-google-cloud-retail-v2alpha:2.86.0:2.86.0 -grpc-google-cloud-retail-v2beta:2.86.0:2.86.0 -google-cloud-run:0.84.0:0.84.0 -proto-google-cloud-run-v2:0.84.0:0.84.0 -grpc-google-cloud-run-v2:0.84.0:0.84.0 -google-cloud-scheduler:2.84.0:2.84.0 -grpc-google-cloud-scheduler-v1beta1:0.169.0:0.169.0 -grpc-google-cloud-scheduler-v1:2.84.0:2.84.0 -proto-google-cloud-scheduler-v1beta1:0.169.0:0.169.0 -proto-google-cloud-scheduler-v1:2.84.0:2.84.0 -google-cloud-secretmanager:2.84.0:2.84.0 -grpc-google-cloud-secretmanager-v1:2.84.0:2.84.0 -proto-google-cloud-secretmanager-v1:2.84.0:2.84.0 -google-cloud-securitycenter:2.92.0:2.92.0 -grpc-google-cloud-securitycenter-v1:2.92.0:2.92.0 -grpc-google-cloud-securitycenter-v1beta1:0.187.0:0.187.0 -grpc-google-cloud-securitycenter-v1p1beta1:0.187.0:0.187.0 -proto-google-cloud-securitycenter-v1:2.92.0:2.92.0 -proto-google-cloud-securitycenter-v1beta1:0.187.0:0.187.0 -proto-google-cloud-securitycenter-v1p1beta1:0.187.0:0.187.0 -google-cloud-securitycenter-settings:0.87.0:0.87.0 -grpc-google-cloud-securitycenter-settings-v1beta1:0.87.0:0.87.0 -proto-google-cloud-securitycenter-settings-v1beta1:0.87.0:0.87.0 -google-cloud-security-private-ca:2.86.0:2.86.0 -grpc-google-cloud-security-private-ca-v1beta1:0.93.0:0.93.0 -grpc-google-cloud-security-private-ca-v1:2.86.0:2.86.0 -proto-google-cloud-security-private-ca-v1beta1:0.93.0:0.93.0 -proto-google-cloud-security-private-ca-v1:2.86.0:2.86.0 -google-cloud-service-control:1.84.0:1.84.0 -grpc-google-cloud-service-control-v1:1.84.0:1.84.0 -proto-google-cloud-service-control-v1:1.84.0:1.84.0 -proto-google-cloud-service-control-v2:1.84.0:1.84.0 -grpc-google-cloud-service-control-v2:1.84.0:1.84.0 -google-cloud-servicedirectory:2.85.0:2.85.0 -grpc-google-cloud-servicedirectory-v1beta1:0.93.0:0.93.0 -grpc-google-cloud-servicedirectory-v1:2.85.0:2.85.0 -proto-google-cloud-servicedirectory-v1beta1:0.93.0:0.93.0 -proto-google-cloud-servicedirectory-v1:2.85.0:2.85.0 -google-cloud-service-management:3.82.0:3.82.0 -grpc-google-cloud-service-management-v1:3.82.0:3.82.0 -proto-google-cloud-service-management-v1:3.82.0:3.82.0 -google-cloud-service-usage:2.84.0:2.84.0 -grpc-google-cloud-service-usage-v1beta1:0.88.0:0.88.0 -grpc-google-cloud-service-usage-v1:2.84.0:2.84.0 -proto-google-cloud-service-usage-v1:2.84.0:2.84.0 -proto-google-cloud-service-usage-v1beta1:0.88.0:0.88.0 -google-cloud-shell:2.83.0:2.83.0 -grpc-google-cloud-shell-v1:2.83.0:2.83.0 -proto-google-cloud-shell-v1:2.83.0:2.83.0 -google-cloud-speech:4.79.0:4.79.0 -grpc-google-cloud-speech-v1:4.79.0:4.79.0 -grpc-google-cloud-speech-v1p1beta1:2.79.0:2.79.0 -proto-google-cloud-speech-v1:4.79.0:4.79.0 -proto-google-cloud-speech-v1p1beta1:2.79.0:2.79.0 -proto-google-cloud-speech-v2:4.79.0:4.79.0 -grpc-google-cloud-speech-v2:4.79.0:4.79.0 -google-cloud-storage-transfer:1.84.0:1.84.0 -grpc-google-cloud-storage-transfer-v1:1.84.0:1.84.0 -proto-google-cloud-storage-transfer-v1:1.84.0:1.84.0 -google-cloud-talent:2.85.0:2.85.0 -grpc-google-cloud-talent-v4:2.85.0:2.85.0 -grpc-google-cloud-talent-v4beta1:0.128.0:0.128.0 -proto-google-cloud-talent-v4:2.85.0:2.85.0 -proto-google-cloud-talent-v4beta1:0.128.0:0.128.0 -google-cloud-tasks:2.84.0:2.84.0 -grpc-google-cloud-tasks-v2beta3:0.174.0:0.174.0 -grpc-google-cloud-tasks-v2beta2:0.174.0:0.174.0 -grpc-google-cloud-tasks-v2:2.84.0:2.84.0 -proto-google-cloud-tasks-v2beta3:0.174.0:0.174.0 -proto-google-cloud-tasks-v2beta2:0.174.0:0.174.0 -proto-google-cloud-tasks-v2:2.84.0:2.84.0 -google-cloud-texttospeech:2.85.0:2.85.0 -grpc-google-cloud-texttospeech-v1beta1:0.174.0:0.174.0 -grpc-google-cloud-texttospeech-v1:2.85.0:2.85.0 -proto-google-cloud-texttospeech-v1:2.85.0:2.85.0 -proto-google-cloud-texttospeech-v1beta1:0.174.0:0.174.0 -google-cloud-tpu:2.85.0:2.85.0 -grpc-google-cloud-tpu-v1:2.85.0:2.85.0 -grpc-google-cloud-tpu-v2alpha1:2.85.0:2.85.0 -proto-google-cloud-tpu-v1:2.85.0:2.85.0 -proto-google-cloud-tpu-v2alpha1:2.85.0:2.85.0 -google-cloud-trace:2.84.0:2.84.0 -grpc-google-cloud-trace-v1:2.84.0:2.84.0 -grpc-google-cloud-trace-v2:2.84.0:2.84.0 -proto-google-cloud-trace-v1:2.84.0:2.84.0 -proto-google-cloud-trace-v2:2.84.0:2.84.0 -google-cloud-translate:2.84.0:2.84.0 -grpc-google-cloud-translate-v3beta1:0.166.0:0.166.0 -grpc-google-cloud-translate-v3:2.84.0:2.84.0 -proto-google-cloud-translate-v3beta1:0.166.0:0.166.0 -proto-google-cloud-translate-v3:2.84.0:2.84.0 -google-cloud-video-intelligence:2.83.0:2.83.0 -grpc-google-cloud-video-intelligence-v1p1beta1:0.173.0:0.173.0 -grpc-google-cloud-video-intelligence-v1beta2:0.173.0:0.173.0 -grpc-google-cloud-video-intelligence-v1:2.83.0:2.83.0 -grpc-google-cloud-video-intelligence-v1p2beta1:0.173.0:0.173.0 -grpc-google-cloud-video-intelligence-v1p3beta1:0.173.0:0.173.0 -proto-google-cloud-video-intelligence-v1p3beta1:0.173.0:0.173.0 -proto-google-cloud-video-intelligence-v1beta2:0.173.0:0.173.0 -proto-google-cloud-video-intelligence-v1p1beta1:0.173.0:0.173.0 -proto-google-cloud-video-intelligence-v1:2.83.0:2.83.0 -proto-google-cloud-video-intelligence-v1p2beta1:0.173.0:0.173.0 -google-cloud-live-stream:0.86.0:0.86.0 -proto-google-cloud-live-stream-v1:0.86.0:0.86.0 -grpc-google-cloud-live-stream-v1:0.86.0:0.86.0 -google-cloud-video-stitcher:0.84.0:0.84.0 -proto-google-cloud-video-stitcher-v1:0.84.0:0.84.0 -grpc-google-cloud-video-stitcher-v1:0.84.0:0.84.0 -google-cloud-video-transcoder:1.83.0:1.83.0 -grpc-google-cloud-video-transcoder-v1:1.83.0:1.83.0 -proto-google-cloud-video-transcoder-v1:1.83.0:1.83.0 -google-cloud-vision:3.82.0:3.82.0 -grpc-google-cloud-vision-v1p3beta1:0.171.0:0.171.0 -grpc-google-cloud-vision-v1p1beta1:0.171.0:0.171.0 -grpc-google-cloud-vision-v1p4beta1:0.171.0:0.171.0 -grpc-google-cloud-vision-v1p2beta1:3.82.0:3.82.0 -grpc-google-cloud-vision-v1:3.82.0:3.82.0 -proto-google-cloud-vision-v1p4beta1:0.171.0:0.171.0 -proto-google-cloud-vision-v1:3.82.0:3.82.0 -proto-google-cloud-vision-v1p1beta1:0.171.0:0.171.0 -proto-google-cloud-vision-v1p3beta1:0.171.0:0.171.0 -proto-google-cloud-vision-v1p2beta1:3.82.0:3.82.0 -google-cloud-vmmigration:1.84.0:1.84.0 -grpc-google-cloud-vmmigration-v1:1.84.0:1.84.0 -proto-google-cloud-vmmigration-v1:1.84.0:1.84.0 -google-cloud-vpcaccess:2.85.0:2.85.0 -grpc-google-cloud-vpcaccess-v1:2.85.0:2.85.0 -proto-google-cloud-vpcaccess-v1:2.85.0:2.85.0 -google-cloud-webrisk:2.83.0:2.83.0 -grpc-google-cloud-webrisk-v1:2.83.0:2.83.0 -grpc-google-cloud-webrisk-v1beta1:0.120.0:0.120.0 -proto-google-cloud-webrisk-v1:2.83.0:2.83.0 -proto-google-cloud-webrisk-v1beta1:0.120.0:0.120.0 -google-cloud-websecurityscanner:2.84.0:2.84.0 -grpc-google-cloud-websecurityscanner-v1alpha:0.171.0:0.171.0 -grpc-google-cloud-websecurityscanner-v1beta:0.171.0:0.171.0 -grpc-google-cloud-websecurityscanner-v1:2.84.0:2.84.0 -proto-google-cloud-websecurityscanner-v1alpha:0.171.0:0.171.0 -proto-google-cloud-websecurityscanner-v1beta:0.171.0:0.171.0 -proto-google-cloud-websecurityscanner-v1:2.84.0:2.84.0 -google-cloud-workflow-executions:2.84.0:2.84.0 -grpc-google-cloud-workflow-executions-v1beta:0.88.0:0.88.0 -grpc-google-cloud-workflow-executions-v1:2.84.0:2.84.0 -proto-google-cloud-workflow-executions-v1beta:0.88.0:0.88.0 -proto-google-cloud-workflow-executions-v1:2.84.0:2.84.0 -google-cloud-workflows:2.84.0:2.84.0 -grpc-google-cloud-workflows-v1beta:0.90.0:0.90.0 -grpc-google-cloud-workflows-v1:2.84.0:2.84.0 -proto-google-cloud-workflows-v1beta:0.90.0:0.90.0 -proto-google-cloud-workflows-v1:2.84.0:2.84.0 -google-cloud-dns:2.82.0:2.82.0 -google-maps-routing:1.69.0:1.69.0 -proto-google-maps-routing-v2:1.69.0:1.69.0 -grpc-google-maps-routing-v2:1.69.0:1.69.0 -google-cloud-vmwareengine:0.78.0:0.78.0 -proto-google-cloud-vmwareengine-v1:0.78.0:0.78.0 -grpc-google-cloud-vmwareengine-v1:0.78.0:0.78.0 -google-maps-addressvalidation:0.78.0:0.78.0 -proto-google-maps-addressvalidation-v1:0.78.0:0.78.0 -grpc-google-maps-addressvalidation-v1:0.78.0:0.78.0 -proto-google-cloud-bigquerydatapolicy-v1:0.81.0:0.81.0 -grpc-google-cloud-bigquerydatapolicy-v1:0.81.0:0.81.0 -google-cloud-monitoring-metricsscope:0.78.0:0.78.0 -proto-google-cloud-monitoring-metricsscope-v1:0.78.0:0.78.0 -grpc-google-cloud-monitoring-metricsscope-v1:0.78.0:0.78.0 -proto-google-cloud-tpu-v2:2.85.0:2.85.0 -grpc-google-cloud-tpu-v2:2.85.0:2.85.0 -google-cloud-datalineage:0.76.0:0.76.0 -proto-google-cloud-datalineage-v1:0.76.0:0.76.0 -grpc-google-cloud-datalineage-v1:0.76.0:0.76.0 -google-iam-policy:1.82.0:1.82.0 -proto-google-cloud-build-v2:3.86.0:3.86.0 -grpc-google-cloud-build-v2:3.86.0:3.86.0 -google-cloud-advisorynotifications:0.73.0:0.73.0 -proto-google-cloud-advisorynotifications-v1:0.73.0:0.73.0 -grpc-google-cloud-advisorynotifications-v1:0.73.0:0.73.0 -google-maps-mapsplatformdatasets:0.73.0:0.73.0 -google-cloud-kmsinventory:0.73.0:0.73.0 -proto-google-cloud-kmsinventory-v1:0.73.0:0.73.0 -grpc-google-cloud-kmsinventory-v1:0.73.0:0.73.0 -google-cloud-alloydb:0.73.0:0.73.0 -proto-google-cloud-alloydb-v1:0.73.0:0.73.0 -proto-google-cloud-alloydb-v1beta:0.73.0:0.73.0 -proto-google-cloud-alloydb-v1alpha:0.73.0:0.73.0 -grpc-google-cloud-alloydb-v1beta:0.73.0:0.73.0 -grpc-google-cloud-alloydb-v1:0.73.0:0.73.0 -grpc-google-cloud-alloydb-v1alpha:0.73.0:0.73.0 -google-cloud-biglake:0.72.0:0.72.0 -proto-google-cloud-biglake-v1alpha1:0.72.0:0.72.0 -grpc-google-cloud-biglake-v1alpha1:0.72.0:0.72.0 -google-cloud-workstations:0.72.0:0.72.0 -proto-google-cloud-workstations-v1beta:0.72.0:0.72.0 -grpc-google-cloud-workstations-v1beta:0.72.0:0.72.0 -google-cloud-confidentialcomputing:0.70.0:0.70.0 -proto-google-cloud-confidentialcomputing-v1:0.70.0:0.70.0 -proto-google-cloud-confidentialcomputing-v1alpha1:0.70.0:0.70.0 -grpc-google-cloud-confidentialcomputing-v1:0.70.0:0.70.0 -grpc-google-cloud-confidentialcomputing-v1alpha1:0.70.0:0.70.0 -proto-google-cloud-workstations-v1:0.72.0:0.72.0 -grpc-google-cloud-workstations-v1:0.72.0:0.72.0 -proto-google-cloud-biglake-v1:0.72.0:0.72.0 -grpc-google-cloud-biglake-v1:0.72.0:0.72.0 -google-cloud-storageinsights:0.69.0:0.69.0 -proto-google-cloud-storageinsights-v1:0.69.0:0.69.0 -grpc-google-cloud-storageinsights-v1:0.69.0:0.69.0 -google-cloud-cloudsupport:0.68.0:0.68.0 -proto-google-cloud-cloudsupport-v2:0.68.0:0.68.0 -grpc-google-cloud-cloudsupport-v2:0.68.0:0.68.0 -google-cloud-rapidmigrationassessment:0.67.0:0.67.0 -proto-google-cloud-rapidmigrationassessment-v1:0.67.0:0.67.0 -grpc-google-cloud-rapidmigrationassessment-v1:0.67.0:0.67.0 -proto-google-maps-mapsplatformdatasets-v1:0.73.0:0.73.0 -grpc-google-maps-mapsplatformdatasets-v1:0.73.0:0.73.0 -google-shopping-merchant-accounts:1.12.0:1.12.0 -proto-google-shopping-merchant-accounts-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-accounts-v1beta:1.12.0:1.12.0 -proto-google-cloud-discoveryengine-v1:0.80.0:0.80.0 -grpc-google-cloud-discoveryengine-v1:0.80.0:0.80.0 -google-cloud-migrationcenter:0.66.0:0.66.0 -proto-google-cloud-migrationcenter-v1:0.66.0:0.66.0 -grpc-google-cloud-migrationcenter-v1:0.66.0:0.66.0 -google-cloud-policysimulator:0.63.0:0.63.0 -proto-google-cloud-policysimulator-v1:0.63.0:0.63.0 -grpc-google-cloud-policysimulator-v1:0.63.0:0.63.0 -google-cloud-netapp:0.63.0:0.63.0 -proto-google-cloud-netapp-v1beta1:0.63.0:0.63.0 -grpc-google-cloud-netapp-v1beta1:0.63.0:0.63.0 -proto-google-cloud-netapp-v1:0.63.0:0.63.0 -grpc-google-cloud-netapp-v1:0.63.0:0.63.0 -proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.82.0:0.82.0 -grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.82.0:0.82.0 -google-cloud-java-alloydb-connectors:0.62.0:0.62.0 -proto-google-cloud-java-alloydb-connectors-v1alpha:0.62.0:0.62.0 -google-cloud-alloydb-connectors:0.62.0:0.62.0 -proto-google-cloud-alloydb-connectors-v1alpha:0.62.0:0.62.0 -proto-google-cloud-language-v2:2.85.0:2.85.0 -grpc-google-cloud-language-v2:2.85.0:2.85.0 -google-cloud-infra-manager:0.61.0:0.61.0 -proto-google-cloud-infra-manager-v1:0.61.0:0.61.0 -grpc-google-cloud-infra-manager-v1:0.61.0:0.61.0 -proto-google-cloud-notebooks-v2:1.82.0:1.82.0 -grpc-google-cloud-notebooks-v2:1.82.0:1.82.0 -proto-google-cloud-alloydb-connectors-v1beta:0.62.0:0.62.0 -google-shopping-merchant-inventories:1.12.0:1.12.0 -proto-google-shopping-merchant-inventories-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-inventories-v1beta:1.12.0:1.12.0 -proto-google-cloud-policy-troubleshooter-v3:1.83.0:1.83.0 -grpc-google-cloud-policy-troubleshooter-v3:1.83.0:1.83.0 -google-shopping-merchant-reports:1.12.0:1.12.0 -proto-google-shopping-merchant-reports-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-reports-v1beta:1.12.0:1.12.0 -proto-google-cloud-alloydb-connectors-v1:0.62.0:0.62.0 -proto-google-cloud-discoveryengine-v1alpha:0.80.0:0.80.0 -grpc-google-cloud-discoveryengine-v1alpha:0.80.0:0.80.0 -google-cloud-redis-cluster:0.56.0:0.56.0 -proto-google-cloud-redis-cluster-v1beta1:0.56.0:0.56.0 -proto-google-cloud-redis-cluster-v1:0.56.0:0.56.0 -grpc-google-cloud-redis-cluster-v1:0.56.0:0.56.0 -grpc-google-cloud-redis-cluster-v1beta1:0.56.0:0.56.0 -google-maps-places:0.55.0:0.55.0 -proto-google-maps-places-v1:0.55.0:0.55.0 -grpc-google-maps-places-v1:0.55.0:0.55.0 -google-cloud-telcoautomation:0.54.0:0.54.0 -proto-google-cloud-telcoautomation-v1:0.54.0:0.54.0 -proto-google-cloud-telcoautomation-v1alpha1:0.54.0:0.54.0 -grpc-google-cloud-telcoautomation-v1:0.54.0:0.54.0 -grpc-google-cloud-telcoautomation-v1alpha1:0.54.0:0.54.0 -google-cloud-securesourcemanager:0.54.0:0.54.0 -proto-google-cloud-securesourcemanager-v1:0.54.0:0.54.0 -grpc-google-cloud-securesourcemanager-v1:0.54.0:0.54.0 -google-cloud-vertexai:1.44.0:1.44.0 -proto-google-cloud-vertexai-v1:1.44.0:1.44.0 -proto-google-cloud-vertexai-v1beta1:1.44.0:1.44.0 -grpc-google-cloud-vertexai-v1:1.44.0:1.44.0 -grpc-google-cloud-vertexai-v1beta1:1.44.0:1.44.0 -google-cloud-edgenetwork:0.52.0:0.52.0 -proto-google-cloud-edgenetwork-v1:0.52.0:0.52.0 -grpc-google-cloud-edgenetwork-v1:0.52.0:0.52.0 -google-cloud-cloudquotas:0.52.0:0.52.0 -proto-google-cloud-cloudquotas-v1:0.52.0:0.52.0 -grpc-google-cloud-cloudquotas-v1:0.52.0:0.52.0 -google-cloud-securitycentermanagement:0.52.0:0.52.0 -proto-google-cloud-securitycentermanagement-v1:0.52.0:0.52.0 -grpc-google-cloud-securitycentermanagement-v1:0.52.0:0.52.0 -google-shopping-css:0.52.0:0.52.0 -proto-google-shopping-css-v1:0.52.0:0.52.0 -grpc-google-shopping-css-v1:0.52.0:0.52.0 -google-cloud-meet:0.51.0:0.51.0 -proto-google-cloud-meet-v2beta:0.51.0:0.51.0 -grpc-google-cloud-meet-v2beta:0.51.0:0.51.0 -google-cloud-servicehealth:0.51.0:0.51.0 -proto-google-cloud-servicehealth-v1:0.51.0:0.51.0 -grpc-google-cloud-servicehealth-v1:0.51.0:0.51.0 -proto-google-cloud-meet-v2:0.51.0:0.51.0 -grpc-google-cloud-meet-v2:0.51.0:0.51.0 -google-cloud-securityposture:0.49.0:0.49.0 -proto-google-cloud-securityposture-v1:0.49.0:0.49.0 -grpc-google-cloud-securityposture-v1:0.49.0:0.49.0 -proto-google-cloud-securitycenter-v2:2.92.0:2.92.0 -grpc-google-cloud-securitycenter-v2:2.92.0:2.92.0 -google-cloud-cloudcontrolspartner:0.48.0:0.48.0 -proto-google-cloud-cloudcontrolspartner-v1beta:0.48.0:0.48.0 -proto-google-cloud-cloudcontrolspartner-v1:0.48.0:0.48.0 -grpc-google-cloud-cloudcontrolspartner-v1:0.48.0:0.48.0 -grpc-google-cloud-cloudcontrolspartner-v1beta:0.48.0:0.48.0 -google-cloud-workspaceevents:0.48.0:0.48.0 -proto-google-cloud-workspaceevents-v1:0.48.0:0.48.0 -grpc-google-cloud-workspaceevents-v1:0.48.0:0.48.0 -google-cloud-apphub:0.48.0:0.48.0 -proto-google-cloud-apphub-v1:0.48.0:0.48.0 -grpc-google-cloud-apphub-v1:0.48.0:0.48.0 -google-cloud-chat:0.48.0:0.48.0 -proto-google-cloud-chat-v1:0.48.0:0.48.0 -grpc-google-cloud-chat-v1:0.48.0:0.48.0 -google-shopping-merchant-quota:1.12.0:1.12.0 -proto-google-shopping-merchant-quota-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-quota-v1beta:1.12.0:1.12.0 -proto-google-cloud-secretmanager-v1beta2:2.84.0:2.84.0 -grpc-google-cloud-secretmanager-v1beta2:2.84.0:2.84.0 -google-cloud-parallelstore:0.47.0:0.47.0 -proto-google-cloud-parallelstore-v1beta:0.47.0:0.47.0 -grpc-google-cloud-parallelstore-v1beta:0.47.0:0.47.0 -google-cloud-backupdr:0.43.0:0.43.0 -proto-google-cloud-backupdr-v1:0.43.0:0.43.0 -grpc-google-cloud-backupdr-v1:0.43.0:0.43.0 -google-maps-solar:0.43.0:0.43.0 -proto-google-maps-solar-v1:0.43.0:0.43.0 -grpc-google-maps-solar-v1:0.43.0:0.43.0 -google-shopping-merchant-datasources:1.12.0:1.12.0 -proto-google-shopping-merchant-datasources-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-datasources-v1beta:1.12.0:1.12.0 -google-shopping-merchant-conversions:1.12.0:1.12.0 -proto-google-shopping-merchant-conversions-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-conversions-v1beta:1.12.0:1.12.0 -google-shopping-merchant-lfp:1.12.0:1.12.0 -proto-google-shopping-merchant-lfp-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-lfp-v1beta:1.12.0:1.12.0 -google-shopping-merchant-notifications:1.12.0:1.12.0 -proto-google-shopping-merchant-notifications-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-notifications-v1beta:1.12.0:1.12.0 -ad-manager:0.43.0:0.43.0 -proto-ad-manager-v1:0.43.0:0.43.0 -google-maps-routeoptimization:0.42.0:0.42.0 -proto-google-maps-routeoptimization-v1:0.42.0:0.42.0 -grpc-google-maps-routeoptimization-v1:0.42.0:0.42.0 -proto-google-cloud-publicca-v1:0.81.0:0.81.0 -grpc-google-cloud-publicca-v1:0.81.0:0.81.0 -google-cloud-visionai:0.41.0:0.41.0 -proto-google-cloud-visionai-v1:0.41.0:0.41.0 -grpc-google-cloud-visionai-v1:0.41.0:0.41.0 -google-cloud-developerconnect:0.41.0:0.41.0 -proto-google-cloud-developerconnect-v1:0.41.0:0.41.0 -grpc-google-cloud-developerconnect-v1:0.41.0:0.41.0 -google-cloud-iap:0.40.0:0.40.0 -proto-google-cloud-iap-v1:0.40.0:0.40.0 -grpc-google-cloud-iap-v1:0.40.0:0.40.0 -google-cloud-managedkafka:0.40.0:0.40.0 -proto-google-cloud-managedkafka-v1:0.40.0:0.40.0 -grpc-google-cloud-managedkafka-v1:0.40.0:0.40.0 -google-cloud-networkservices:0.40.0:0.40.0 -proto-google-cloud-networkservices-v1:0.40.0:0.40.0 -grpc-google-cloud-networkservices-v1:0.40.0:0.40.0 -google-shopping-merchant-products:1.12.0:1.12.0 -proto-google-shopping-merchant-products-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-products-v1beta:1.12.0:1.12.0 -google-cloud-gdchardwaremanagement:0.39.0:0.39.0 -proto-google-cloud-gdchardwaremanagement-v1alpha:0.39.0:0.39.0 -grpc-google-cloud-gdchardwaremanagement-v1alpha:0.39.0:0.39.0 -google-cloud-privilegedaccessmanager:0.38.0:0.38.0 -proto-google-cloud-privilegedaccessmanager-v1:0.38.0:0.38.0 -grpc-google-cloud-privilegedaccessmanager-v1:0.38.0:0.38.0 -google-cloud-apihub:0.37.0:0.37.0 -proto-google-cloud-apihub-v1:0.37.0:0.37.0 -grpc-google-cloud-apihub-v1:0.37.0:0.37.0 -google-cloud-connectgateway:0.36.0:0.36.0 -proto-google-cloud-connectgateway-v1:0.36.0:0.36.0 -google-maps-area-insights:0.35.0:0.35.0 -proto-google-maps-area-insights-v1:0.35.0:0.35.0 -grpc-google-maps-area-insights-v1:0.35.0:0.35.0 -admin:0.33.0:0.33.0 -proto-admin-v1alpha:0.33.0:0.33.0 -grpc-admin-v1alpha:0.33.0:0.33.0 -google-cloud-oracledatabase:0.33.0:0.33.0 -proto-google-cloud-oracledatabase-v1:0.33.0:0.33.0 -proto-google-cloud-parallelstore-v1:0.47.0:0.47.0 -grpc-google-cloud-parallelstore-v1:0.47.0:0.47.0 -google-maps-fleetengine:0.31.0:0.31.0 -proto-google-maps-fleetengine-v1:0.31.0:0.31.0 -grpc-google-maps-fleetengine-v1:0.31.0:0.31.0 -google-maps-fleetengine-delivery:0.31.0:0.31.0 -proto-google-maps-fleetengine-delivery-v1:0.31.0:0.31.0 -grpc-google-maps-fleetengine-delivery-v1:0.31.0:0.31.0 -google-shopping-merchant-reviews:0.30.0:0.30.0 -proto-google-shopping-merchant-reviews-v1beta:0.30.0:0.30.0 -grpc-google-shopping-merchant-reviews-v1beta:0.30.0:0.30.0 -google-cloud-valkey:0.30.0:0.30.0 -proto-google-cloud-valkey-v1:0.30.0:0.30.0 -proto-google-cloud-valkey-v1beta:0.30.0:0.30.0 -proto-google-cloud-cloudquotas-v1beta:0.52.0:0.52.0 -grpc-google-cloud-cloudquotas-v1beta:0.52.0:0.52.0 -proto-google-cloud-secretmanager-v1beta1:2.84.0:2.84.0 -grpc-google-cloud-secretmanager-v1beta1:2.84.0:2.84.0 -google-cloud-parametermanager:0.28.0:0.28.0 -proto-google-cloud-parametermanager-v1:0.28.0:0.28.0 -grpc-google-cloud-parametermanager-v1:0.28.0:0.28.0 -google-cloud-modelarmor:0.25.0:0.25.0 -proto-google-cloud-modelarmor-v1:0.25.0:0.25.0 -grpc-google-cloud-modelarmor-v1:0.25.0:0.25.0 -google-cloud-financialservices:0.25.0:0.25.0 -proto-google-cloud-financialservices-v1:0.25.0:0.25.0 -grpc-google-cloud-financialservices-v1:0.25.0:0.25.0 -google-cloud-devicestreaming:0.24.0:0.24.0 -proto-google-cloud-devicestreaming-v1:0.24.0:0.24.0 -grpc-google-cloud-devicestreaming-v1:0.24.0:0.24.0 -google-shopping-merchant-productstudio:0.24.0:0.24.0 -proto-google-shopping-merchant-productstudio-v1alpha:0.24.0:0.24.0 -grpc-google-shopping-merchant-productstudio-v1alpha:0.24.0:0.24.0 -google-cloud-storagebatchoperations:0.24.0:0.24.0 -proto-google-cloud-storagebatchoperations-v1:0.24.0:0.24.0 -grpc-google-cloud-storagebatchoperations-v1:0.24.0:0.24.0 -google-shopping-merchant-issue-resolution:1.12.0:1.12.0 -proto-google-shopping-merchant-issue-resolution-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-issue-resolution-v1beta:1.12.0:1.12.0 -google-cloud-lustre:0.24.0:0.24.0 -proto-google-cloud-lustre-v1:0.24.0:0.24.0 -grpc-google-cloud-lustre-v1:0.24.0:0.24.0 -google-shopping-merchant-order-tracking:1.12.0:1.12.0 -proto-google-shopping-merchant-order-tracking-v1beta:1.12.0:1.12.0 -grpc-google-shopping-merchant-order-tracking-v1beta:1.12.0:1.12.0 -grpc-google-cloud-oracledatabase-v1:0.33.0:0.33.0 -google-cloud-chronicle:0.22.0:0.22.0 -proto-google-cloud-chronicle-v1:0.22.0:0.22.0 -grpc-google-cloud-chronicle-v1:0.22.0:0.22.0 -proto-google-cloud-cloudsupport-v2beta:0.68.0:0.68.0 -grpc-google-cloud-cloudsupport-v2beta:0.68.0:0.68.0 -proto-google-cloud-modelarmor-v1beta:0.25.0:0.25.0 -grpc-google-cloud-modelarmor-v1beta:0.25.0:0.25.0 -proto-google-cloud-dataform-v1:0.83.0:0.83.0 -grpc-google-cloud-dataform-v1:0.83.0:0.83.0 -google-cloud-spanneradapter:0.20.0:0.20.0 -proto-google-cloud-spanneradapter-v1:0.20.0:0.20.0 -grpc-google-cloud-spanneradapter-v1:0.20.0:0.20.0 -proto-google-cloud-workspaceevents-v1beta:0.48.0:0.48.0 -grpc-google-cloud-workspaceevents-v1beta:0.48.0:0.48.0 -google-cloud-maintenance:0.18.0:0.18.0 -proto-google-cloud-maintenance-v1beta:0.18.0:0.18.0 -grpc-google-cloud-maintenance-v1beta:0.18.0:0.18.0 -google-cloud-configdelivery:0.18.0:0.18.0 -proto-google-cloud-configdelivery-v1beta:0.18.0:0.18.0 -grpc-google-cloud-configdelivery-v1beta:0.18.0:0.18.0 -proto-google-cloud-bigquerydatapolicy-v2beta1:0.81.0:0.81.0 -grpc-google-cloud-bigquerydatapolicy-v2beta1:0.81.0:0.81.0 -google-cloud-licensemanager:0.17.0:0.17.0 -proto-google-cloud-licensemanager-v1:0.17.0:0.17.0 -grpc-google-cloud-licensemanager-v1:0.17.0:0.17.0 -proto-google-shopping-merchant-reports-v1alpha:1.12.0:1.12.0 -grpc-google-shopping-merchant-reports-v1alpha:1.12.0:1.12.0 -proto-google-cloud-bigquerydatapolicy-v2:0.81.0:0.81.0 -grpc-google-cloud-bigquerydatapolicy-v2:0.81.0:0.81.0 -proto-google-cloud-configdelivery-v1:0.18.0:0.18.0 -grpc-google-cloud-configdelivery-v1:0.18.0:0.18.0 -proto-google-shopping-merchant-datasources-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-datasources-v1:1.12.0:1.12.0 -proto-google-shopping-merchant-inventories-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-inventories-v1:1.12.0:1.12.0 -proto-google-shopping-merchant-conversions-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-conversions-v1:1.12.0:1.12.0 -proto-google-shopping-merchant-issue-resolution-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-issue-resolution-v1:1.12.0:1.12.0 -proto-google-shopping-merchant-order-tracking-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-order-tracking-v1:1.12.0:1.12.0 -proto-google-shopping-merchant-accounts-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-accounts-v1:1.12.0:1.12.0 -proto-google-shopping-merchant-lfp-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-lfp-v1:1.12.0:1.12.0 -proto-google-shopping-merchant-products-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-products-v1:1.12.0:1.12.0 -proto-google-shopping-merchant-promotions-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-promotions-v1:1.12.0:1.12.0 -proto-google-shopping-merchant-quota-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-quota-v1:1.12.0:1.12.0 -proto-google-shopping-merchant-reports-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-reports-v1:1.12.0:1.12.0 -google-cloud-saasservicemgmt:0.14.0:0.14.0 -proto-google-cloud-saasservicemgmt-v1beta1:0.14.0:0.14.0 -grpc-google-cloud-saasservicemgmt-v1beta1:0.14.0:0.14.0 -proto-google-shopping-merchant-notifications-v1:1.12.0:1.12.0 -grpc-google-shopping-merchant-notifications-v1:1.12.0:1.12.0 -google-cloud-geminidataanalytics:0.12.0:0.12.0 -proto-google-cloud-geminidataanalytics-v1beta:0.12.0:0.12.0 -grpc-google-cloud-geminidataanalytics-v1beta:0.12.0:0.12.0 -google-cloud-cloudsecuritycompliance:0.11.0:0.11.0 -proto-google-cloud-cloudsecuritycompliance-v1:0.11.0:0.11.0 -grpc-google-cloud-cloudsecuritycompliance-v1:0.11.0:0.11.0 -google-cloud-locationfinder:0.9.0:0.9.0 -proto-google-cloud-locationfinder-v1:0.9.0:0.9.0 -grpc-google-cloud-locationfinder-v1:0.9.0:0.9.0 -google-cloud-capacityplanner:0.7.0:0.7.0 -proto-google-cloud-capacityplanner-v1beta:0.7.0:0.7.0 -grpc-google-cloud-capacityplanner-v1beta:0.7.0:0.7.0 -data-manager:0.5.0:0.5.0 -proto-data-manager-v1:0.5.0:0.5.0 -grpc-data-manager-v1:0.5.0:0.5.0 -google-cloud-vectorsearch:0.5.0:0.5.0 -proto-google-cloud-vectorsearch-v1beta:0.5.0:0.5.0 -grpc-google-cloud-vectorsearch-v1beta:0.5.0:0.5.0 -google-cloud-databasecenter:0.5.0:0.5.0 -proto-google-cloud-databasecenter-v1beta:0.5.0:0.5.0 -grpc-google-cloud-databasecenter-v1beta:0.5.0:0.5.0 -google-cloud-hypercomputecluster:0.4.0:0.4.0 -proto-google-cloud-hypercomputecluster-v1beta:0.4.0:0.4.0 -grpc-google-cloud-hypercomputecluster-v1beta:0.4.0:0.4.0 -proto-google-cloud-maintenance-v1:0.18.0:0.18.0 -grpc-google-cloud-maintenance-v1:0.18.0:0.18.0 -google-cloud-gkerecommender:0.4.0:0.4.0 -proto-google-cloud-gkerecommender-v1:0.4.0:0.4.0 -grpc-google-cloud-gkerecommender-v1:0.4.0:0.4.0 -google-cloud-cloudapiregistry:0.3.0:0.3.0 -proto-google-cloud-cloudapiregistry-v1beta:0.3.0:0.3.0 -grpc-google-cloud-cloudapiregistry-v1beta:0.3.0:0.3.0 -google-cloud-auditmanager:0.2.0:0.2.0 -proto-google-cloud-auditmanager-v1:0.2.0:0.2.0 -grpc-google-cloud-auditmanager-v1:0.2.0:0.2.0 -proto-google-cloud-cloudapiregistry-v1:0.3.0:0.3.0 -grpc-google-cloud-cloudapiregistry-v1:0.3.0:0.3.0 -google-cloud-logging:3.25.0:3.25.0 -grpc-google-cloud-logging-v2:0.114.0:0.114.0 -proto-google-cloud-logging-v2:0.114.0:0.114.0 +google-cloud-java:1.79.0:1.79.0 +google-cloud-accessapproval:2.86.0:2.86.0 +grpc-google-cloud-accessapproval-v1:2.86.0:2.86.0 +proto-google-cloud-accessapproval-v1:2.86.0:2.86.0 +google-identity-accesscontextmanager:1.86.0:1.86.0 +grpc-google-identity-accesscontextmanager-v1:1.86.0:1.86.0 +proto-google-identity-accesscontextmanager-v1:1.86.0:1.86.0 +proto-google-identity-accesscontextmanager-type:1.86.0:1.86.0 +google-cloud-aiplatform:3.86.0:3.86.0 +grpc-google-cloud-aiplatform-v1:3.86.0:3.86.0 +grpc-google-cloud-aiplatform-v1beta1:0.102.0:0.102.0 +proto-google-cloud-aiplatform-v1:3.86.0:3.86.0 +proto-google-cloud-aiplatform-v1beta1:0.102.0:0.102.0 +google-analytics-admin:0.95.0:0.95.0 +grpc-google-analytics-admin-v1alpha:0.95.0:0.95.0 +proto-google-analytics-admin-v1alpha:0.95.0:0.95.0 +proto-google-analytics-admin-v1beta:0.95.0:0.95.0 +grpc-google-analytics-admin-v1beta:0.95.0:0.95.0 +google-analytics-data:0.96.0:0.96.0 +grpc-google-analytics-data-v1beta:0.96.0:0.96.0 +proto-google-analytics-data-v1beta:0.96.0:0.96.0 +proto-google-analytics-data-v1alpha:0.96.0:0.96.0 +grpc-google-analytics-data-v1alpha:0.96.0:0.96.0 +google-cloud-analyticshub:0.82.0:0.82.0 +proto-google-cloud-analyticshub-v1:0.82.0:0.82.0 +grpc-google-cloud-analyticshub-v1:0.82.0:0.82.0 +google-shopping-merchant-promotions:1.13.0:1.13.0 +proto-google-shopping-merchant-promotions-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-promotions-v1beta:1.13.0:1.13.0 +google-cloud-api-gateway:2.85.0:2.85.0 +grpc-google-cloud-api-gateway-v1:2.85.0:2.85.0 +proto-google-cloud-api-gateway-v1:2.85.0:2.85.0 +google-cloud-apigee-connect:2.85.0:2.85.0 +grpc-google-cloud-apigee-connect-v1:2.85.0:2.85.0 +proto-google-cloud-apigee-connect-v1:2.85.0:2.85.0 +google-cloud-apigee-registry:0.85.0:0.85.0 +proto-google-cloud-apigee-registry-v1:0.85.0:0.85.0 +grpc-google-cloud-apigee-registry-v1:0.85.0:0.85.0 +google-cloud-apikeys:0.83.0:0.83.0 +proto-google-cloud-apikeys-v2:0.83.0:0.83.0 +grpc-google-cloud-apikeys-v2:0.83.0:0.83.0 +google-cloud-appengine-admin:2.85.0:2.85.0 +grpc-google-cloud-appengine-admin-v1:2.85.0:2.85.0 +proto-google-cloud-appengine-admin-v1:2.85.0:2.85.0 +google-area120-tables:0.89.0:0.89.0 +grpc-google-area120-tables-v1alpha1:0.89.0:0.89.0 +proto-google-area120-tables-v1alpha1:0.89.0:0.89.0 +google-cloud-artifact-registry:1.84.0:1.84.0 +grpc-google-cloud-artifact-registry-v1beta2:0.90.0:0.90.0 +grpc-google-cloud-artifact-registry-v1:1.84.0:1.84.0 +proto-google-cloud-artifact-registry-v1beta2:0.90.0:0.90.0 +proto-google-cloud-artifact-registry-v1:1.84.0:1.84.0 +google-cloud-asset:3.89.0:3.89.0 +grpc-google-cloud-asset-v1:3.89.0:3.89.0 +grpc-google-cloud-asset-v1p1beta1:0.189.0:0.189.0 +grpc-google-cloud-asset-v1p2beta1:0.189.0:0.189.0 +grpc-google-cloud-asset-v1p5beta1:0.189.0:0.189.0 +grpc-google-cloud-asset-v1p7beta1:3.89.0:3.89.0 +proto-google-cloud-asset-v1:3.89.0:3.89.0 +proto-google-cloud-asset-v1p1beta1:0.189.0:0.189.0 +proto-google-cloud-asset-v1p2beta1:0.189.0:0.189.0 +proto-google-cloud-asset-v1p5beta1:0.189.0:0.189.0 +proto-google-cloud-asset-v1p7beta1:3.89.0:3.89.0 +google-cloud-assured-workloads:2.85.0:2.85.0 +grpc-google-cloud-assured-workloads-v1beta1:0.97.0:0.97.0 +grpc-google-cloud-assured-workloads-v1:2.85.0:2.85.0 +proto-google-cloud-assured-workloads-v1beta1:0.97.0:0.97.0 +proto-google-cloud-assured-workloads-v1:2.85.0:2.85.0 +google-cloud-automl:2.85.0:2.85.0 +grpc-google-cloud-automl-v1beta1:0.172.0:0.172.0 +grpc-google-cloud-automl-v1:2.85.0:2.85.0 +proto-google-cloud-automl-v1beta1:0.172.0:0.172.0 +proto-google-cloud-automl-v1:2.85.0:2.85.0 +google-cloud-bare-metal-solution:0.85.0:0.85.0 +proto-google-cloud-bare-metal-solution-v2:0.85.0:0.85.0 +grpc-google-cloud-bare-metal-solution-v2:0.85.0:0.85.0 +google-cloud-batch:0.85.0:0.85.0 +proto-google-cloud-batch-v1:0.85.0:0.85.0 +grpc-google-cloud-batch-v1:0.85.0:0.85.0 +proto-google-cloud-batch-v1alpha:0.85.0:0.85.0 +grpc-google-cloud-batch-v1alpha:0.85.0:0.85.0 +google-cloud-beyondcorp-appconnections:0.83.0:0.83.0 +proto-google-cloud-beyondcorp-appconnections-v1:0.83.0:0.83.0 +grpc-google-cloud-beyondcorp-appconnections-v1:0.83.0:0.83.0 +google-cloud-beyondcorp-appconnectors:0.83.0:0.83.0 +proto-google-cloud-beyondcorp-appconnectors-v1:0.83.0:0.83.0 +grpc-google-cloud-beyondcorp-appconnectors-v1:0.83.0:0.83.0 +google-cloud-beyondcorp-appgateways:0.83.0:0.83.0 +proto-google-cloud-beyondcorp-appgateways-v1:0.83.0:0.83.0 +grpc-google-cloud-beyondcorp-appgateways-v1:0.83.0:0.83.0 +google-cloud-beyondcorp-clientconnectorservices:0.83.0:0.83.0 +proto-google-cloud-beyondcorp-clientconnectorservices-v1:0.83.0:0.83.0 +grpc-google-cloud-beyondcorp-clientconnectorservices-v1:0.83.0:0.83.0 +google-cloud-beyondcorp-clientgateways:0.83.0:0.83.0 +proto-google-cloud-beyondcorp-clientgateways-v1:0.83.0:0.83.0 +grpc-google-cloud-beyondcorp-clientgateways-v1:0.83.0:0.83.0 +google-cloud-bigqueryconnection:2.87.0:2.87.0 +grpc-google-cloud-bigqueryconnection-v1:2.87.0:2.87.0 +grpc-google-cloud-bigqueryconnection-v1beta1:0.95.0:0.95.0 +proto-google-cloud-bigqueryconnection-v1:2.87.0:2.87.0 +proto-google-cloud-bigqueryconnection-v1beta1:0.95.0:0.95.0 +google-cloud-bigquery-data-exchange:2.80.0:2.80.0 +proto-google-cloud-bigquery-data-exchange-v1beta1:2.80.0:2.80.0 +grpc-google-cloud-bigquery-data-exchange-v1beta1:2.80.0:2.80.0 +google-cloud-bigquerydatapolicy:0.82.0:0.82.0 +proto-google-cloud-bigquerydatapolicy-v1beta1:0.82.0:0.82.0 +grpc-google-cloud-bigquerydatapolicy-v1beta1:0.82.0:0.82.0 +google-cloud-bigquerydatatransfer:2.85.0:2.85.0 +grpc-google-cloud-bigquerydatatransfer-v1:2.85.0:2.85.0 +proto-google-cloud-bigquerydatatransfer-v1:2.85.0:2.85.0 +google-cloud-bigquerymigration:0.88.0:0.88.0 +grpc-google-cloud-bigquerymigration-v2alpha:0.88.0:0.88.0 +proto-google-cloud-bigquerymigration-v2alpha:0.88.0:0.88.0 +proto-google-cloud-bigquerymigration-v2:0.88.0:0.88.0 +grpc-google-cloud-bigquerymigration-v2:0.88.0:0.88.0 +google-cloud-bigqueryreservation:2.86.0:2.86.0 +grpc-google-cloud-bigqueryreservation-v1:2.86.0:2.86.0 +proto-google-cloud-bigqueryreservation-v1:2.86.0:2.86.0 +google-cloud-billingbudgets:2.85.0:2.85.0 +grpc-google-cloud-billingbudgets-v1beta1:0.94.0:0.94.0 +grpc-google-cloud-billingbudgets-v1:2.85.0:2.85.0 +proto-google-cloud-billingbudgets-v1beta1:0.94.0:0.94.0 +proto-google-cloud-billingbudgets-v1:2.85.0:2.85.0 +google-cloud-billing:2.85.0:2.85.0 +grpc-google-cloud-billing-v1:2.85.0:2.85.0 +proto-google-cloud-billing-v1:2.85.0:2.85.0 +google-cloud-binary-authorization:1.84.0:1.84.0 +grpc-google-cloud-binary-authorization-v1beta1:0.89.0:0.89.0 +grpc-google-cloud-binary-authorization-v1:1.84.0:1.84.0 +proto-google-cloud-binary-authorization-v1beta1:0.89.0:0.89.0 +proto-google-cloud-binary-authorization-v1:1.84.0:1.84.0 +google-cloud-certificate-manager:0.88.0:0.88.0 +proto-google-cloud-certificate-manager-v1:0.88.0:0.88.0 +grpc-google-cloud-certificate-manager-v1:0.88.0:0.88.0 +google-cloud-channel:3.89.0:3.89.0 +grpc-google-cloud-channel-v1:3.89.0:3.89.0 +proto-google-cloud-channel-v1:3.89.0:3.89.0 +google-cloud-build:3.87.0:3.87.0 +grpc-google-cloud-build-v1:3.87.0:3.87.0 +proto-google-cloud-build-v1:3.87.0:3.87.0 +google-cloud-cloudcommerceconsumerprocurement:0.83.0:0.83.0 +proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.83.0:0.83.0 +grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.83.0:0.83.0 +google-cloud-compute:1.95.0:1.95.0 +proto-google-cloud-compute-v1:1.95.0:1.95.0 +google-cloud-contact-center-insights:2.85.0:2.85.0 +grpc-google-cloud-contact-center-insights-v1:2.85.0:2.85.0 +proto-google-cloud-contact-center-insights-v1:2.85.0:2.85.0 +proto-google-cloud-containeranalysis-v1:2.86.0:2.86.0 +proto-google-cloud-containeranalysis-v1beta1:0.176.0:0.176.0 +grpc-google-cloud-containeranalysis-v1beta1:0.176.0:0.176.0 +grpc-google-cloud-containeranalysis-v1:2.86.0:2.86.0 +google-cloud-containeranalysis:2.86.0:2.86.0 +google-cloud-container:2.88.0:2.88.0 +grpc-google-cloud-container-v1:2.88.0:2.88.0 +grpc-google-cloud-container-v1beta1:2.88.0:2.88.0 +proto-google-cloud-container-v1:2.88.0:2.88.0 +proto-google-cloud-container-v1beta1:2.88.0:2.88.0 +google-cloud-contentwarehouse:0.81.0:0.81.0 +proto-google-cloud-contentwarehouse-v1:0.81.0:0.81.0 +grpc-google-cloud-contentwarehouse-v1:0.81.0:0.81.0 +google-cloud-datacatalog:1.91.0:1.91.0 +grpc-google-cloud-datacatalog-v1:1.91.0:1.91.0 +grpc-google-cloud-datacatalog-v1beta1:0.128.0:0.128.0 +proto-google-cloud-datacatalog-v1:1.91.0:1.91.0 +proto-google-cloud-datacatalog-v1beta1:0.128.0:0.128.0 +google-cloud-dataflow:0.89.0:0.89.0 +grpc-google-cloud-dataflow-v1beta3:0.89.0:0.89.0 +proto-google-cloud-dataflow-v1beta3:0.89.0:0.89.0 +google-cloud-dataform:0.84.0:0.84.0 +proto-google-cloud-dataform-v1beta1:0.84.0:0.84.0 +grpc-google-cloud-dataform-v1beta1:0.84.0:0.84.0 +google-cloud-data-fusion:1.85.0:1.85.0 +grpc-google-cloud-data-fusion-v1beta1:0.89.0:0.89.0 +grpc-google-cloud-data-fusion-v1:1.85.0:1.85.0 +proto-google-cloud-data-fusion-v1beta1:0.89.0:0.89.0 +proto-google-cloud-data-fusion-v1:1.85.0:1.85.0 +google-cloud-datalabeling:0.205.0:0.205.0 +grpc-google-cloud-datalabeling-v1beta1:0.170.0:0.170.0 +proto-google-cloud-datalabeling-v1beta1:0.170.0:0.170.0 +google-cloud-dataplex:1.83.0:1.83.0 +proto-google-cloud-dataplex-v1:1.83.0:1.83.0 +grpc-google-cloud-dataplex-v1:1.83.0:1.83.0 +google-cloud-dataproc-metastore:2.86.0:2.86.0 +grpc-google-cloud-dataproc-metastore-v1beta:0.90.0:0.90.0 +grpc-google-cloud-dataproc-metastore-v1alpha:0.90.0:0.90.0 +grpc-google-cloud-dataproc-metastore-v1:2.86.0:2.86.0 +proto-google-cloud-dataproc-metastore-v1beta:0.90.0:0.90.0 +proto-google-cloud-dataproc-metastore-v1alpha:0.90.0:0.90.0 +proto-google-cloud-dataproc-metastore-v1:2.86.0:2.86.0 +google-cloud-dataproc:4.82.0:4.82.0 +grpc-google-cloud-dataproc-v1:4.82.0:4.82.0 +proto-google-cloud-dataproc-v1:4.82.0:4.82.0 +google-cloud-datastream:1.84.0:1.84.0 +grpc-google-cloud-datastream-v1alpha1:0.89.0:0.89.0 +proto-google-cloud-datastream-v1alpha1:0.89.0:0.89.0 +proto-google-cloud-datastream-v1:1.84.0:1.84.0 +grpc-google-cloud-datastream-v1:1.84.0:1.84.0 +proto-google-devtools-source-protos:1.85.0:1.85.0 +google-cloud-deploy:1.83.0:1.83.0 +grpc-google-cloud-deploy-v1:1.83.0:1.83.0 +proto-google-cloud-deploy-v1:1.83.0:1.83.0 +google-cloud-dialogflow-cx:0.96.0:0.96.0 +grpc-google-cloud-dialogflow-cx-v3beta1:0.96.0:0.96.0 +grpc-google-cloud-dialogflow-cx-v3:0.96.0:0.96.0 +proto-google-cloud-dialogflow-cx-v3beta1:0.96.0:0.96.0 +proto-google-cloud-dialogflow-cx-v3:0.96.0:0.96.0 +google-cloud-dialogflow:4.91.0:4.91.0 +grpc-google-cloud-dialogflow-v2beta1:0.189.0:0.189.0 +grpc-google-cloud-dialogflow-v2:4.91.0:4.91.0 +proto-google-cloud-dialogflow-v2:4.91.0:4.91.0 +proto-google-cloud-dialogflow-v2beta1:0.189.0:0.189.0 +google-cloud-discoveryengine:0.81.0:0.81.0 +proto-google-cloud-discoveryengine-v1beta:0.81.0:0.81.0 +grpc-google-cloud-discoveryengine-v1beta:0.81.0:0.81.0 +google-cloud-distributedcloudedge:0.82.0:0.82.0 +proto-google-cloud-distributedcloudedge-v1:0.82.0:0.82.0 +grpc-google-cloud-distributedcloudedge-v1:0.82.0:0.82.0 +google-cloud-dlp:3.89.0:3.89.0 +grpc-google-cloud-dlp-v2:3.89.0:3.89.0 +proto-google-cloud-dlp-v2:3.89.0:3.89.0 +google-cloud-dms:2.84.0:2.84.0 +grpc-google-cloud-dms-v1:2.84.0:2.84.0 +proto-google-cloud-dms-v1:2.84.0:2.84.0 +google-cloud-document-ai:2.89.0:2.89.0 +grpc-google-cloud-document-ai-v1beta3:0.101.0:0.101.0 +grpc-google-cloud-document-ai-v1:2.89.0:2.89.0 +proto-google-cloud-document-ai-v1beta3:0.101.0:0.101.0 +proto-google-cloud-document-ai-v1:2.89.0:2.89.0 +google-cloud-domains:1.82.0:1.82.0 +grpc-google-cloud-domains-v1beta1:0.90.0:0.90.0 +grpc-google-cloud-domains-v1alpha2:0.90.0:0.90.0 +grpc-google-cloud-domains-v1:1.82.0:1.82.0 +proto-google-cloud-domains-v1beta1:0.90.0:0.90.0 +proto-google-cloud-domains-v1alpha2:0.90.0:0.90.0 +proto-google-cloud-domains-v1:1.82.0:1.82.0 +google-cloud-enterpriseknowledgegraph:0.81.0:0.81.0 +proto-google-cloud-enterpriseknowledgegraph-v1:0.81.0:0.81.0 +grpc-google-cloud-enterpriseknowledgegraph-v1:0.81.0:0.81.0 +google-cloud-errorreporting:0.206.0-beta:0.206.0-beta +grpc-google-cloud-error-reporting-v1beta1:0.172.0:0.172.0 +proto-google-cloud-error-reporting-v1beta1:0.172.0:0.172.0 +google-cloud-essential-contacts:2.85.0:2.85.0 +grpc-google-cloud-essential-contacts-v1:2.85.0:2.85.0 +proto-google-cloud-essential-contacts-v1:2.85.0:2.85.0 +google-cloud-eventarc:1.85.0:1.85.0 +grpc-google-cloud-eventarc-v1:1.85.0:1.85.0 +proto-google-cloud-eventarc-v1:1.85.0:1.85.0 +google-cloud-eventarc-publishing:0.85.0:0.85.0 +proto-google-cloud-eventarc-publishing-v1:0.85.0:0.85.0 +grpc-google-cloud-eventarc-publishing-v1:0.85.0:0.85.0 +google-cloud-filestore:1.86.0:1.86.0 +grpc-google-cloud-filestore-v1beta1:0.88.0:0.88.0 +grpc-google-cloud-filestore-v1:1.86.0:1.86.0 +proto-google-cloud-filestore-v1:1.86.0:1.86.0 +proto-google-cloud-filestore-v1beta1:0.88.0:0.88.0 +google-cloud-functions:2.87.0:2.87.0 +grpc-google-cloud-functions-v1:2.87.0:2.87.0 +proto-google-cloud-functions-v1:2.87.0:2.87.0 +proto-google-cloud-functions-v2beta:2.87.0:2.87.0 +proto-google-cloud-functions-v2alpha:2.87.0:2.87.0 +grpc-google-cloud-functions-v2beta:2.87.0:2.87.0 +grpc-google-cloud-functions-v2alpha:2.87.0:2.87.0 +proto-google-cloud-functions-v2:2.87.0:2.87.0 +grpc-google-cloud-functions-v2:2.87.0:2.87.0 +google-cloud-game-servers:2.85.0:2.85.0 +grpc-google-cloud-game-servers-v1:2.85.0:2.85.0 +grpc-google-cloud-game-servers-v1beta:0.110.0:0.110.0 +proto-google-cloud-game-servers-v1:2.85.0:2.85.0 +proto-google-cloud-game-servers-v1beta:0.110.0:0.110.0 +google-cloud-gke-backup:0.84.0:0.84.0 +proto-google-cloud-gke-backup-v1:0.84.0:0.84.0 +grpc-google-cloud-gke-backup-v1:0.84.0:0.84.0 +google-cloud-gke-connect-gateway:0.86.0:0.86.0 +proto-google-cloud-gke-connect-gateway-v1beta1:0.86.0:0.86.0 +google-cloud-gkehub:1.85.0:1.85.0 +grpc-google-cloud-gkehub-v1beta1:0.91.0:0.91.0 +grpc-google-cloud-gkehub-v1:1.85.0:1.85.0 +grpc-google-cloud-gkehub-v1alpha:0.91.0:0.91.0 +grpc-google-cloud-gkehub-v1beta:0.91.0:0.91.0 +proto-google-cloud-gkehub-v1beta1:0.91.0:0.91.0 +proto-google-cloud-gkehub-v1:1.85.0:1.85.0 +proto-google-cloud-gkehub-v1alpha:0.91.0:0.91.0 +proto-google-cloud-gkehub-v1beta:0.91.0:0.91.0 +google-cloud-gke-multi-cloud:0.84.0:0.84.0 +proto-google-cloud-gke-multi-cloud-v1:0.84.0:0.84.0 +grpc-google-cloud-gke-multi-cloud-v1:0.84.0:0.84.0 +grafeas:2.86.0:2.86.0 +google-cloud-gsuite-addons:2.85.0:2.85.0 +grpc-google-cloud-gsuite-addons-v1:2.85.0:2.85.0 +proto-google-cloud-gsuite-addons-v1:2.85.0:2.85.0 +proto-google-apps-script-type-protos:2.85.0:2.85.0 +google-iam-admin:3.80.0:3.80.0 +grpc-google-iam-admin-v1:3.80.0:3.80.0 +proto-google-iam-admin-v1:3.80.0:3.80.0 +google-cloud-iamcredentials:2.85.0:2.85.0 +grpc-google-cloud-iamcredentials-v1:2.85.0:2.85.0 +proto-google-cloud-iamcredentials-v1:2.85.0:2.85.0 +google-cloud-ids:1.84.0:1.84.0 +grpc-google-cloud-ids-v1:1.84.0:1.84.0 +proto-google-cloud-ids-v1:1.84.0:1.84.0 +google-cloud-iot:2.85.0:2.85.0 +grpc-google-cloud-iot-v1:2.85.0:2.85.0 +proto-google-cloud-iot-v1:2.85.0:2.85.0 +google-cloud-kms:2.88.0:2.88.0 +grpc-google-cloud-kms-v1:0.179.0:0.179.0 +proto-google-cloud-kms-v1:0.179.0:0.179.0 +google-cloud-language:2.86.0:2.86.0 +grpc-google-cloud-language-v1:2.86.0:2.86.0 +grpc-google-cloud-language-v1beta2:0.173.0:0.173.0 +proto-google-cloud-language-v1:2.86.0:2.86.0 +proto-google-cloud-language-v1beta2:0.173.0:0.173.0 +google-cloud-life-sciences:0.87.0:0.87.0 +grpc-google-cloud-life-sciences-v2beta:0.87.0:0.87.0 +proto-google-cloud-life-sciences-v2beta:0.87.0:0.87.0 +google-cloud-managed-identities:1.83.0:1.83.0 +grpc-google-cloud-managed-identities-v1:1.83.0:1.83.0 +proto-google-cloud-managed-identities-v1:1.83.0:1.83.0 +google-cloud-mediatranslation:0.91.0:0.91.0 +grpc-google-cloud-mediatranslation-v1beta1:0.91.0:0.91.0 +proto-google-cloud-mediatranslation-v1beta1:0.91.0:0.91.0 +google-cloud-memcache:2.85.0:2.85.0 +grpc-google-cloud-memcache-v1beta2:0.92.0:0.92.0 +grpc-google-cloud-memcache-v1:2.85.0:2.85.0 +proto-google-cloud-memcache-v1beta2:0.92.0:0.92.0 +proto-google-cloud-memcache-v1:2.85.0:2.85.0 +google-cloud-monitoring-dashboard:2.87.0:2.87.0 +grpc-google-cloud-monitoring-dashboard-v1:2.87.0:2.87.0 +proto-google-cloud-monitoring-dashboard-v1:2.87.0:2.87.0 +google-cloud-monitoring:3.86.0:3.86.0 +grpc-google-cloud-monitoring-v3:3.86.0:3.86.0 +proto-google-cloud-monitoring-v3:3.86.0:3.86.0 +google-cloud-networkconnectivity:1.84.0:1.84.0 +grpc-google-cloud-networkconnectivity-v1alpha1:0.90.0:0.90.0 +grpc-google-cloud-networkconnectivity-v1:1.84.0:1.84.0 +proto-google-cloud-networkconnectivity-v1alpha1:0.90.0:0.90.0 +proto-google-cloud-networkconnectivity-v1:1.84.0:1.84.0 +google-cloud-network-management:1.86.0:1.86.0 +grpc-google-cloud-network-management-v1beta1:0.88.0:0.88.0 +grpc-google-cloud-network-management-v1:1.86.0:1.86.0 +proto-google-cloud-network-management-v1beta1:0.88.0:0.88.0 +proto-google-cloud-network-management-v1:1.86.0:1.86.0 +google-cloud-network-security:0.88.0:0.88.0 +grpc-google-cloud-network-security-v1beta1:0.88.0:0.88.0 +proto-google-cloud-network-security-v1beta1:0.88.0:0.88.0 +proto-google-cloud-network-security-v1:0.88.0:0.88.0 +grpc-google-cloud-network-security-v1:0.88.0:0.88.0 +google-cloud-notebooks:1.83.0:1.83.0 +grpc-google-cloud-notebooks-v1beta1:0.90.0:0.90.0 +grpc-google-cloud-notebooks-v1:1.83.0:1.83.0 +proto-google-cloud-notebooks-v1beta1:0.90.0:0.90.0 +proto-google-cloud-notebooks-v1:1.83.0:1.83.0 +google-cloud-notification:0.203.0-beta:0.203.0-beta +google-cloud-optimization:1.83.0:1.83.0 +proto-google-cloud-optimization-v1:1.83.0:1.83.0 +grpc-google-cloud-optimization-v1:1.83.0:1.83.0 +google-cloud-orchestration-airflow:1.85.0:1.85.0 +grpc-google-cloud-orchestration-airflow-v1:1.85.0:1.85.0 +grpc-google-cloud-orchestration-airflow-v1beta1:0.88.0:0.88.0 +proto-google-cloud-orchestration-airflow-v1:1.85.0:1.85.0 +proto-google-cloud-orchestration-airflow-v1beta1:0.88.0:0.88.0 +google-cloud-orgpolicy:2.85.0:2.85.0 +grpc-google-cloud-orgpolicy-v2:2.85.0:2.85.0 +proto-google-cloud-orgpolicy-v1:2.85.0:2.85.0 +proto-google-cloud-orgpolicy-v2:2.85.0:2.85.0 +google-cloud-os-config:2.87.0:2.87.0 +grpc-google-cloud-os-config-v1:2.87.0:2.87.0 +grpc-google-cloud-os-config-v1beta:2.87.0:2.87.0 +grpc-google-cloud-os-config-v1alpha:2.87.0:2.87.0 +proto-google-cloud-os-config-v1:2.87.0:2.87.0 +proto-google-cloud-os-config-v1alpha:2.87.0:2.87.0 +proto-google-cloud-os-config-v1beta:2.87.0:2.87.0 +google-cloud-os-login:2.84.0:2.84.0 +grpc-google-cloud-os-login-v1:2.84.0:2.84.0 +proto-google-cloud-os-login-v1:2.84.0:2.84.0 +google-cloud-phishingprotection:0.116.0:0.116.0 +grpc-google-cloud-phishingprotection-v1beta1:0.116.0:0.116.0 +proto-google-cloud-phishingprotection-v1beta1:0.116.0:0.116.0 +google-cloud-policy-troubleshooter:1.84.0:1.84.0 +grpc-google-cloud-policy-troubleshooter-v1:1.84.0:1.84.0 +proto-google-cloud-policy-troubleshooter-v1:1.84.0:1.84.0 +google-cloud-private-catalog:0.87.0:0.87.0 +grpc-google-cloud-private-catalog-v1beta1:0.87.0:0.87.0 +proto-google-cloud-private-catalog-v1beta1:0.87.0:0.87.0 +google-cloud-profiler:2.85.0:2.85.0 +grpc-google-cloud-profiler-v2:2.85.0:2.85.0 +proto-google-cloud-profiler-v2:2.85.0:2.85.0 +google-cloud-publicca:0.82.0:0.82.0 +proto-google-cloud-publicca-v1beta1:0.82.0:0.82.0 +grpc-google-cloud-publicca-v1beta1:0.82.0:0.82.0 +google-cloud-recaptchaenterprise:3.82.0:3.82.0 +grpc-google-cloud-recaptchaenterprise-v1:3.82.0:3.82.0 +grpc-google-cloud-recaptchaenterprise-v1beta1:0.124.0:0.124.0 +proto-google-cloud-recaptchaenterprise-v1:3.82.0:3.82.0 +proto-google-cloud-recaptchaenterprise-v1beta1:0.124.0:0.124.0 +google-cloud-recommendations-ai:0.92.0:0.92.0 +grpc-google-cloud-recommendations-ai-v1beta1:0.92.0:0.92.0 +proto-google-cloud-recommendations-ai-v1beta1:0.92.0:0.92.0 +google-cloud-recommender:2.87.0:2.87.0 +grpc-google-cloud-recommender-v1:2.87.0:2.87.0 +grpc-google-cloud-recommender-v1beta1:0.99.0:0.99.0 +proto-google-cloud-recommender-v1:2.87.0:2.87.0 +proto-google-cloud-recommender-v1beta1:0.99.0:0.99.0 +google-cloud-redis:2.88.0:2.88.0 +grpc-google-cloud-redis-v1beta1:0.176.0:0.176.0 +grpc-google-cloud-redis-v1:2.88.0:2.88.0 +proto-google-cloud-redis-v1:2.88.0:2.88.0 +proto-google-cloud-redis-v1beta1:0.176.0:0.176.0 +google-cloud-resourcemanager:1.87.0:1.87.0 +grpc-google-cloud-resourcemanager-v3:1.87.0:1.87.0 +proto-google-cloud-resourcemanager-v3:1.87.0:1.87.0 +google-cloud-retail:2.87.0:2.87.0 +grpc-google-cloud-retail-v2:2.87.0:2.87.0 +proto-google-cloud-retail-v2:2.87.0:2.87.0 +proto-google-cloud-retail-v2alpha:2.87.0:2.87.0 +proto-google-cloud-retail-v2beta:2.87.0:2.87.0 +grpc-google-cloud-retail-v2alpha:2.87.0:2.87.0 +grpc-google-cloud-retail-v2beta:2.87.0:2.87.0 +google-cloud-run:0.85.0:0.85.0 +proto-google-cloud-run-v2:0.85.0:0.85.0 +grpc-google-cloud-run-v2:0.85.0:0.85.0 +google-cloud-scheduler:2.85.0:2.85.0 +grpc-google-cloud-scheduler-v1beta1:0.170.0:0.170.0 +grpc-google-cloud-scheduler-v1:2.85.0:2.85.0 +proto-google-cloud-scheduler-v1beta1:0.170.0:0.170.0 +proto-google-cloud-scheduler-v1:2.85.0:2.85.0 +google-cloud-secretmanager:2.85.0:2.85.0 +grpc-google-cloud-secretmanager-v1:2.85.0:2.85.0 +proto-google-cloud-secretmanager-v1:2.85.0:2.85.0 +google-cloud-securitycenter:2.93.0:2.93.0 +grpc-google-cloud-securitycenter-v1:2.93.0:2.93.0 +grpc-google-cloud-securitycenter-v1beta1:0.188.0:0.188.0 +grpc-google-cloud-securitycenter-v1p1beta1:0.188.0:0.188.0 +proto-google-cloud-securitycenter-v1:2.93.0:2.93.0 +proto-google-cloud-securitycenter-v1beta1:0.188.0:0.188.0 +proto-google-cloud-securitycenter-v1p1beta1:0.188.0:0.188.0 +google-cloud-securitycenter-settings:0.88.0:0.88.0 +grpc-google-cloud-securitycenter-settings-v1beta1:0.88.0:0.88.0 +proto-google-cloud-securitycenter-settings-v1beta1:0.88.0:0.88.0 +google-cloud-security-private-ca:2.87.0:2.87.0 +grpc-google-cloud-security-private-ca-v1beta1:0.94.0:0.94.0 +grpc-google-cloud-security-private-ca-v1:2.87.0:2.87.0 +proto-google-cloud-security-private-ca-v1beta1:0.94.0:0.94.0 +proto-google-cloud-security-private-ca-v1:2.87.0:2.87.0 +google-cloud-service-control:1.85.0:1.85.0 +grpc-google-cloud-service-control-v1:1.85.0:1.85.0 +proto-google-cloud-service-control-v1:1.85.0:1.85.0 +proto-google-cloud-service-control-v2:1.85.0:1.85.0 +grpc-google-cloud-service-control-v2:1.85.0:1.85.0 +google-cloud-servicedirectory:2.86.0:2.86.0 +grpc-google-cloud-servicedirectory-v1beta1:0.94.0:0.94.0 +grpc-google-cloud-servicedirectory-v1:2.86.0:2.86.0 +proto-google-cloud-servicedirectory-v1beta1:0.94.0:0.94.0 +proto-google-cloud-servicedirectory-v1:2.86.0:2.86.0 +google-cloud-service-management:3.83.0:3.83.0 +grpc-google-cloud-service-management-v1:3.83.0:3.83.0 +proto-google-cloud-service-management-v1:3.83.0:3.83.0 +google-cloud-service-usage:2.85.0:2.85.0 +grpc-google-cloud-service-usage-v1beta1:0.89.0:0.89.0 +grpc-google-cloud-service-usage-v1:2.85.0:2.85.0 +proto-google-cloud-service-usage-v1:2.85.0:2.85.0 +proto-google-cloud-service-usage-v1beta1:0.89.0:0.89.0 +google-cloud-shell:2.84.0:2.84.0 +grpc-google-cloud-shell-v1:2.84.0:2.84.0 +proto-google-cloud-shell-v1:2.84.0:2.84.0 +google-cloud-speech:4.80.0:4.80.0 +grpc-google-cloud-speech-v1:4.80.0:4.80.0 +grpc-google-cloud-speech-v1p1beta1:2.80.0:2.80.0 +proto-google-cloud-speech-v1:4.80.0:4.80.0 +proto-google-cloud-speech-v1p1beta1:2.80.0:2.80.0 +proto-google-cloud-speech-v2:4.80.0:4.80.0 +grpc-google-cloud-speech-v2:4.80.0:4.80.0 +google-cloud-storage-transfer:1.85.0:1.85.0 +grpc-google-cloud-storage-transfer-v1:1.85.0:1.85.0 +proto-google-cloud-storage-transfer-v1:1.85.0:1.85.0 +google-cloud-talent:2.86.0:2.86.0 +grpc-google-cloud-talent-v4:2.86.0:2.86.0 +grpc-google-cloud-talent-v4beta1:0.129.0:0.129.0 +proto-google-cloud-talent-v4:2.86.0:2.86.0 +proto-google-cloud-talent-v4beta1:0.129.0:0.129.0 +google-cloud-tasks:2.85.0:2.85.0 +grpc-google-cloud-tasks-v2beta3:0.175.0:0.175.0 +grpc-google-cloud-tasks-v2beta2:0.175.0:0.175.0 +grpc-google-cloud-tasks-v2:2.85.0:2.85.0 +proto-google-cloud-tasks-v2beta3:0.175.0:0.175.0 +proto-google-cloud-tasks-v2beta2:0.175.0:0.175.0 +proto-google-cloud-tasks-v2:2.85.0:2.85.0 +google-cloud-texttospeech:2.86.0:2.86.0 +grpc-google-cloud-texttospeech-v1beta1:0.175.0:0.175.0 +grpc-google-cloud-texttospeech-v1:2.86.0:2.86.0 +proto-google-cloud-texttospeech-v1:2.86.0:2.86.0 +proto-google-cloud-texttospeech-v1beta1:0.175.0:0.175.0 +google-cloud-tpu:2.86.0:2.86.0 +grpc-google-cloud-tpu-v1:2.86.0:2.86.0 +grpc-google-cloud-tpu-v2alpha1:2.86.0:2.86.0 +proto-google-cloud-tpu-v1:2.86.0:2.86.0 +proto-google-cloud-tpu-v2alpha1:2.86.0:2.86.0 +google-cloud-trace:2.85.0:2.85.0 +grpc-google-cloud-trace-v1:2.85.0:2.85.0 +grpc-google-cloud-trace-v2:2.85.0:2.85.0 +proto-google-cloud-trace-v1:2.85.0:2.85.0 +proto-google-cloud-trace-v2:2.85.0:2.85.0 +google-cloud-translate:2.85.0:2.85.0 +grpc-google-cloud-translate-v3beta1:0.167.0:0.167.0 +grpc-google-cloud-translate-v3:2.85.0:2.85.0 +proto-google-cloud-translate-v3beta1:0.167.0:0.167.0 +proto-google-cloud-translate-v3:2.85.0:2.85.0 +google-cloud-video-intelligence:2.84.0:2.84.0 +grpc-google-cloud-video-intelligence-v1p1beta1:0.174.0:0.174.0 +grpc-google-cloud-video-intelligence-v1beta2:0.174.0:0.174.0 +grpc-google-cloud-video-intelligence-v1:2.84.0:2.84.0 +grpc-google-cloud-video-intelligence-v1p2beta1:0.174.0:0.174.0 +grpc-google-cloud-video-intelligence-v1p3beta1:0.174.0:0.174.0 +proto-google-cloud-video-intelligence-v1p3beta1:0.174.0:0.174.0 +proto-google-cloud-video-intelligence-v1beta2:0.174.0:0.174.0 +proto-google-cloud-video-intelligence-v1p1beta1:0.174.0:0.174.0 +proto-google-cloud-video-intelligence-v1:2.84.0:2.84.0 +proto-google-cloud-video-intelligence-v1p2beta1:0.174.0:0.174.0 +google-cloud-live-stream:0.87.0:0.87.0 +proto-google-cloud-live-stream-v1:0.87.0:0.87.0 +grpc-google-cloud-live-stream-v1:0.87.0:0.87.0 +google-cloud-video-stitcher:0.85.0:0.85.0 +proto-google-cloud-video-stitcher-v1:0.85.0:0.85.0 +grpc-google-cloud-video-stitcher-v1:0.85.0:0.85.0 +google-cloud-video-transcoder:1.84.0:1.84.0 +grpc-google-cloud-video-transcoder-v1:1.84.0:1.84.0 +proto-google-cloud-video-transcoder-v1:1.84.0:1.84.0 +google-cloud-vision:3.83.0:3.83.0 +grpc-google-cloud-vision-v1p3beta1:0.172.0:0.172.0 +grpc-google-cloud-vision-v1p1beta1:0.172.0:0.172.0 +grpc-google-cloud-vision-v1p4beta1:0.172.0:0.172.0 +grpc-google-cloud-vision-v1p2beta1:3.83.0:3.83.0 +grpc-google-cloud-vision-v1:3.83.0:3.83.0 +proto-google-cloud-vision-v1p4beta1:0.172.0:0.172.0 +proto-google-cloud-vision-v1:3.83.0:3.83.0 +proto-google-cloud-vision-v1p1beta1:0.172.0:0.172.0 +proto-google-cloud-vision-v1p3beta1:0.172.0:0.172.0 +proto-google-cloud-vision-v1p2beta1:3.83.0:3.83.0 +google-cloud-vmmigration:1.85.0:1.85.0 +grpc-google-cloud-vmmigration-v1:1.85.0:1.85.0 +proto-google-cloud-vmmigration-v1:1.85.0:1.85.0 +google-cloud-vpcaccess:2.86.0:2.86.0 +grpc-google-cloud-vpcaccess-v1:2.86.0:2.86.0 +proto-google-cloud-vpcaccess-v1:2.86.0:2.86.0 +google-cloud-webrisk:2.84.0:2.84.0 +grpc-google-cloud-webrisk-v1:2.84.0:2.84.0 +grpc-google-cloud-webrisk-v1beta1:0.121.0:0.121.0 +proto-google-cloud-webrisk-v1:2.84.0:2.84.0 +proto-google-cloud-webrisk-v1beta1:0.121.0:0.121.0 +google-cloud-websecurityscanner:2.85.0:2.85.0 +grpc-google-cloud-websecurityscanner-v1alpha:0.172.0:0.172.0 +grpc-google-cloud-websecurityscanner-v1beta:0.172.0:0.172.0 +grpc-google-cloud-websecurityscanner-v1:2.85.0:2.85.0 +proto-google-cloud-websecurityscanner-v1alpha:0.172.0:0.172.0 +proto-google-cloud-websecurityscanner-v1beta:0.172.0:0.172.0 +proto-google-cloud-websecurityscanner-v1:2.85.0:2.85.0 +google-cloud-workflow-executions:2.85.0:2.85.0 +grpc-google-cloud-workflow-executions-v1beta:0.89.0:0.89.0 +grpc-google-cloud-workflow-executions-v1:2.85.0:2.85.0 +proto-google-cloud-workflow-executions-v1beta:0.89.0:0.89.0 +proto-google-cloud-workflow-executions-v1:2.85.0:2.85.0 +google-cloud-workflows:2.85.0:2.85.0 +grpc-google-cloud-workflows-v1beta:0.91.0:0.91.0 +grpc-google-cloud-workflows-v1:2.85.0:2.85.0 +proto-google-cloud-workflows-v1beta:0.91.0:0.91.0 +proto-google-cloud-workflows-v1:2.85.0:2.85.0 +google-cloud-dns:2.83.0:2.83.0 +google-maps-routing:1.70.0:1.70.0 +proto-google-maps-routing-v2:1.70.0:1.70.0 +grpc-google-maps-routing-v2:1.70.0:1.70.0 +google-cloud-vmwareengine:0.79.0:0.79.0 +proto-google-cloud-vmwareengine-v1:0.79.0:0.79.0 +grpc-google-cloud-vmwareengine-v1:0.79.0:0.79.0 +google-maps-addressvalidation:0.79.0:0.79.0 +proto-google-maps-addressvalidation-v1:0.79.0:0.79.0 +grpc-google-maps-addressvalidation-v1:0.79.0:0.79.0 +proto-google-cloud-bigquerydatapolicy-v1:0.82.0:0.82.0 +grpc-google-cloud-bigquerydatapolicy-v1:0.82.0:0.82.0 +google-cloud-monitoring-metricsscope:0.79.0:0.79.0 +proto-google-cloud-monitoring-metricsscope-v1:0.79.0:0.79.0 +grpc-google-cloud-monitoring-metricsscope-v1:0.79.0:0.79.0 +proto-google-cloud-tpu-v2:2.86.0:2.86.0 +grpc-google-cloud-tpu-v2:2.86.0:2.86.0 +google-cloud-datalineage:0.77.0:0.77.0 +proto-google-cloud-datalineage-v1:0.77.0:0.77.0 +grpc-google-cloud-datalineage-v1:0.77.0:0.77.0 +google-iam-policy:1.83.0:1.83.0 +proto-google-cloud-build-v2:3.87.0:3.87.0 +grpc-google-cloud-build-v2:3.87.0:3.87.0 +google-cloud-advisorynotifications:0.74.0:0.74.0 +proto-google-cloud-advisorynotifications-v1:0.74.0:0.74.0 +grpc-google-cloud-advisorynotifications-v1:0.74.0:0.74.0 +google-maps-mapsplatformdatasets:0.74.0:0.74.0 +google-cloud-kmsinventory:0.74.0:0.74.0 +proto-google-cloud-kmsinventory-v1:0.74.0:0.74.0 +grpc-google-cloud-kmsinventory-v1:0.74.0:0.74.0 +google-cloud-alloydb:0.74.0:0.74.0 +proto-google-cloud-alloydb-v1:0.74.0:0.74.0 +proto-google-cloud-alloydb-v1beta:0.74.0:0.74.0 +proto-google-cloud-alloydb-v1alpha:0.74.0:0.74.0 +grpc-google-cloud-alloydb-v1beta:0.74.0:0.74.0 +grpc-google-cloud-alloydb-v1:0.74.0:0.74.0 +grpc-google-cloud-alloydb-v1alpha:0.74.0:0.74.0 +google-cloud-biglake:0.73.0:0.73.0 +proto-google-cloud-biglake-v1alpha1:0.73.0:0.73.0 +grpc-google-cloud-biglake-v1alpha1:0.73.0:0.73.0 +google-cloud-workstations:0.73.0:0.73.0 +proto-google-cloud-workstations-v1beta:0.73.0:0.73.0 +grpc-google-cloud-workstations-v1beta:0.73.0:0.73.0 +google-cloud-confidentialcomputing:0.71.0:0.71.0 +proto-google-cloud-confidentialcomputing-v1:0.71.0:0.71.0 +proto-google-cloud-confidentialcomputing-v1alpha1:0.71.0:0.71.0 +grpc-google-cloud-confidentialcomputing-v1:0.71.0:0.71.0 +grpc-google-cloud-confidentialcomputing-v1alpha1:0.71.0:0.71.0 +proto-google-cloud-workstations-v1:0.73.0:0.73.0 +grpc-google-cloud-workstations-v1:0.73.0:0.73.0 +proto-google-cloud-biglake-v1:0.73.0:0.73.0 +grpc-google-cloud-biglake-v1:0.73.0:0.73.0 +google-cloud-storageinsights:0.70.0:0.70.0 +proto-google-cloud-storageinsights-v1:0.70.0:0.70.0 +grpc-google-cloud-storageinsights-v1:0.70.0:0.70.0 +google-cloud-cloudsupport:0.69.0:0.69.0 +proto-google-cloud-cloudsupport-v2:0.69.0:0.69.0 +grpc-google-cloud-cloudsupport-v2:0.69.0:0.69.0 +google-cloud-rapidmigrationassessment:0.68.0:0.68.0 +proto-google-cloud-rapidmigrationassessment-v1:0.68.0:0.68.0 +grpc-google-cloud-rapidmigrationassessment-v1:0.68.0:0.68.0 +proto-google-maps-mapsplatformdatasets-v1:0.74.0:0.74.0 +grpc-google-maps-mapsplatformdatasets-v1:0.74.0:0.74.0 +google-shopping-merchant-accounts:1.13.0:1.13.0 +proto-google-shopping-merchant-accounts-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-accounts-v1beta:1.13.0:1.13.0 +proto-google-cloud-discoveryengine-v1:0.81.0:0.81.0 +grpc-google-cloud-discoveryengine-v1:0.81.0:0.81.0 +google-cloud-migrationcenter:0.67.0:0.67.0 +proto-google-cloud-migrationcenter-v1:0.67.0:0.67.0 +grpc-google-cloud-migrationcenter-v1:0.67.0:0.67.0 +google-cloud-policysimulator:0.64.0:0.64.0 +proto-google-cloud-policysimulator-v1:0.64.0:0.64.0 +grpc-google-cloud-policysimulator-v1:0.64.0:0.64.0 +google-cloud-netapp:0.64.0:0.64.0 +proto-google-cloud-netapp-v1beta1:0.64.0:0.64.0 +grpc-google-cloud-netapp-v1beta1:0.64.0:0.64.0 +proto-google-cloud-netapp-v1:0.64.0:0.64.0 +grpc-google-cloud-netapp-v1:0.64.0:0.64.0 +proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.83.0:0.83.0 +grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.83.0:0.83.0 +google-cloud-java-alloydb-connectors:0.63.0:0.63.0 +proto-google-cloud-java-alloydb-connectors-v1alpha:0.63.0:0.63.0 +google-cloud-alloydb-connectors:0.63.0:0.63.0 +proto-google-cloud-alloydb-connectors-v1alpha:0.63.0:0.63.0 +proto-google-cloud-language-v2:2.86.0:2.86.0 +grpc-google-cloud-language-v2:2.86.0:2.86.0 +google-cloud-infra-manager:0.62.0:0.62.0 +proto-google-cloud-infra-manager-v1:0.62.0:0.62.0 +grpc-google-cloud-infra-manager-v1:0.62.0:0.62.0 +proto-google-cloud-notebooks-v2:1.83.0:1.83.0 +grpc-google-cloud-notebooks-v2:1.83.0:1.83.0 +proto-google-cloud-alloydb-connectors-v1beta:0.63.0:0.63.0 +google-shopping-merchant-inventories:1.13.0:1.13.0 +proto-google-shopping-merchant-inventories-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-inventories-v1beta:1.13.0:1.13.0 +proto-google-cloud-policy-troubleshooter-v3:1.84.0:1.84.0 +grpc-google-cloud-policy-troubleshooter-v3:1.84.0:1.84.0 +google-shopping-merchant-reports:1.13.0:1.13.0 +proto-google-shopping-merchant-reports-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-reports-v1beta:1.13.0:1.13.0 +proto-google-cloud-alloydb-connectors-v1:0.63.0:0.63.0 +proto-google-cloud-discoveryengine-v1alpha:0.81.0:0.81.0 +grpc-google-cloud-discoveryengine-v1alpha:0.81.0:0.81.0 +google-cloud-redis-cluster:0.57.0:0.57.0 +proto-google-cloud-redis-cluster-v1beta1:0.57.0:0.57.0 +proto-google-cloud-redis-cluster-v1:0.57.0:0.57.0 +grpc-google-cloud-redis-cluster-v1:0.57.0:0.57.0 +grpc-google-cloud-redis-cluster-v1beta1:0.57.0:0.57.0 +google-maps-places:0.56.0:0.56.0 +proto-google-maps-places-v1:0.56.0:0.56.0 +grpc-google-maps-places-v1:0.56.0:0.56.0 +google-cloud-telcoautomation:0.55.0:0.55.0 +proto-google-cloud-telcoautomation-v1:0.55.0:0.55.0 +proto-google-cloud-telcoautomation-v1alpha1:0.55.0:0.55.0 +grpc-google-cloud-telcoautomation-v1:0.55.0:0.55.0 +grpc-google-cloud-telcoautomation-v1alpha1:0.55.0:0.55.0 +google-cloud-securesourcemanager:0.55.0:0.55.0 +proto-google-cloud-securesourcemanager-v1:0.55.0:0.55.0 +grpc-google-cloud-securesourcemanager-v1:0.55.0:0.55.0 +google-cloud-vertexai:1.45.0:1.45.0 +proto-google-cloud-vertexai-v1:1.45.0:1.45.0 +proto-google-cloud-vertexai-v1beta1:1.45.0:1.45.0 +grpc-google-cloud-vertexai-v1:1.45.0:1.45.0 +grpc-google-cloud-vertexai-v1beta1:1.45.0:1.45.0 +google-cloud-edgenetwork:0.53.0:0.53.0 +proto-google-cloud-edgenetwork-v1:0.53.0:0.53.0 +grpc-google-cloud-edgenetwork-v1:0.53.0:0.53.0 +google-cloud-cloudquotas:0.53.0:0.53.0 +proto-google-cloud-cloudquotas-v1:0.53.0:0.53.0 +grpc-google-cloud-cloudquotas-v1:0.53.0:0.53.0 +google-cloud-securitycentermanagement:0.53.0:0.53.0 +proto-google-cloud-securitycentermanagement-v1:0.53.0:0.53.0 +grpc-google-cloud-securitycentermanagement-v1:0.53.0:0.53.0 +google-shopping-css:0.53.0:0.53.0 +proto-google-shopping-css-v1:0.53.0:0.53.0 +grpc-google-shopping-css-v1:0.53.0:0.53.0 +google-cloud-meet:0.52.0:0.52.0 +proto-google-cloud-meet-v2beta:0.52.0:0.52.0 +grpc-google-cloud-meet-v2beta:0.52.0:0.52.0 +google-cloud-servicehealth:0.52.0:0.52.0 +proto-google-cloud-servicehealth-v1:0.52.0:0.52.0 +grpc-google-cloud-servicehealth-v1:0.52.0:0.52.0 +proto-google-cloud-meet-v2:0.52.0:0.52.0 +grpc-google-cloud-meet-v2:0.52.0:0.52.0 +google-cloud-securityposture:0.50.0:0.50.0 +proto-google-cloud-securityposture-v1:0.50.0:0.50.0 +grpc-google-cloud-securityposture-v1:0.50.0:0.50.0 +proto-google-cloud-securitycenter-v2:2.93.0:2.93.0 +grpc-google-cloud-securitycenter-v2:2.93.0:2.93.0 +google-cloud-cloudcontrolspartner:0.49.0:0.49.0 +proto-google-cloud-cloudcontrolspartner-v1beta:0.49.0:0.49.0 +proto-google-cloud-cloudcontrolspartner-v1:0.49.0:0.49.0 +grpc-google-cloud-cloudcontrolspartner-v1:0.49.0:0.49.0 +grpc-google-cloud-cloudcontrolspartner-v1beta:0.49.0:0.49.0 +google-cloud-workspaceevents:0.49.0:0.49.0 +proto-google-cloud-workspaceevents-v1:0.49.0:0.49.0 +grpc-google-cloud-workspaceevents-v1:0.49.0:0.49.0 +google-cloud-apphub:0.49.0:0.49.0 +proto-google-cloud-apphub-v1:0.49.0:0.49.0 +grpc-google-cloud-apphub-v1:0.49.0:0.49.0 +google-cloud-chat:0.49.0:0.49.0 +proto-google-cloud-chat-v1:0.49.0:0.49.0 +grpc-google-cloud-chat-v1:0.49.0:0.49.0 +google-shopping-merchant-quota:1.13.0:1.13.0 +proto-google-shopping-merchant-quota-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-quota-v1beta:1.13.0:1.13.0 +proto-google-cloud-secretmanager-v1beta2:2.85.0:2.85.0 +grpc-google-cloud-secretmanager-v1beta2:2.85.0:2.85.0 +google-cloud-parallelstore:0.48.0:0.48.0 +proto-google-cloud-parallelstore-v1beta:0.48.0:0.48.0 +grpc-google-cloud-parallelstore-v1beta:0.48.0:0.48.0 +google-cloud-backupdr:0.44.0:0.44.0 +proto-google-cloud-backupdr-v1:0.44.0:0.44.0 +grpc-google-cloud-backupdr-v1:0.44.0:0.44.0 +google-maps-solar:0.44.0:0.44.0 +proto-google-maps-solar-v1:0.44.0:0.44.0 +grpc-google-maps-solar-v1:0.44.0:0.44.0 +google-shopping-merchant-datasources:1.13.0:1.13.0 +proto-google-shopping-merchant-datasources-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-datasources-v1beta:1.13.0:1.13.0 +google-shopping-merchant-conversions:1.13.0:1.13.0 +proto-google-shopping-merchant-conversions-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-conversions-v1beta:1.13.0:1.13.0 +google-shopping-merchant-lfp:1.13.0:1.13.0 +proto-google-shopping-merchant-lfp-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-lfp-v1beta:1.13.0:1.13.0 +google-shopping-merchant-notifications:1.13.0:1.13.0 +proto-google-shopping-merchant-notifications-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-notifications-v1beta:1.13.0:1.13.0 +ad-manager:0.44.0:0.44.0 +proto-ad-manager-v1:0.44.0:0.44.0 +google-maps-routeoptimization:0.43.0:0.43.0 +proto-google-maps-routeoptimization-v1:0.43.0:0.43.0 +grpc-google-maps-routeoptimization-v1:0.43.0:0.43.0 +proto-google-cloud-publicca-v1:0.82.0:0.82.0 +grpc-google-cloud-publicca-v1:0.82.0:0.82.0 +google-cloud-visionai:0.42.0:0.42.0 +proto-google-cloud-visionai-v1:0.42.0:0.42.0 +grpc-google-cloud-visionai-v1:0.42.0:0.42.0 +google-cloud-developerconnect:0.42.0:0.42.0 +proto-google-cloud-developerconnect-v1:0.42.0:0.42.0 +grpc-google-cloud-developerconnect-v1:0.42.0:0.42.0 +google-cloud-iap:0.41.0:0.41.0 +proto-google-cloud-iap-v1:0.41.0:0.41.0 +grpc-google-cloud-iap-v1:0.41.0:0.41.0 +google-cloud-managedkafka:0.41.0:0.41.0 +proto-google-cloud-managedkafka-v1:0.41.0:0.41.0 +grpc-google-cloud-managedkafka-v1:0.41.0:0.41.0 +google-cloud-networkservices:0.41.0:0.41.0 +proto-google-cloud-networkservices-v1:0.41.0:0.41.0 +grpc-google-cloud-networkservices-v1:0.41.0:0.41.0 +google-shopping-merchant-products:1.13.0:1.13.0 +proto-google-shopping-merchant-products-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-products-v1beta:1.13.0:1.13.0 +google-cloud-gdchardwaremanagement:0.40.0:0.40.0 +proto-google-cloud-gdchardwaremanagement-v1alpha:0.40.0:0.40.0 +grpc-google-cloud-gdchardwaremanagement-v1alpha:0.40.0:0.40.0 +google-cloud-privilegedaccessmanager:0.39.0:0.39.0 +proto-google-cloud-privilegedaccessmanager-v1:0.39.0:0.39.0 +grpc-google-cloud-privilegedaccessmanager-v1:0.39.0:0.39.0 +google-cloud-apihub:0.38.0:0.38.0 +proto-google-cloud-apihub-v1:0.38.0:0.38.0 +grpc-google-cloud-apihub-v1:0.38.0:0.38.0 +google-cloud-connectgateway:0.37.0:0.37.0 +proto-google-cloud-connectgateway-v1:0.37.0:0.37.0 +google-maps-area-insights:0.36.0:0.36.0 +proto-google-maps-area-insights-v1:0.36.0:0.36.0 +grpc-google-maps-area-insights-v1:0.36.0:0.36.0 +admin:0.34.0:0.34.0 +proto-admin-v1alpha:0.34.0:0.34.0 +grpc-admin-v1alpha:0.34.0:0.34.0 +google-cloud-oracledatabase:0.34.0:0.34.0 +proto-google-cloud-oracledatabase-v1:0.34.0:0.34.0 +proto-google-cloud-parallelstore-v1:0.48.0:0.48.0 +grpc-google-cloud-parallelstore-v1:0.48.0:0.48.0 +google-maps-fleetengine:0.32.0:0.32.0 +proto-google-maps-fleetengine-v1:0.32.0:0.32.0 +grpc-google-maps-fleetengine-v1:0.32.0:0.32.0 +google-maps-fleetengine-delivery:0.32.0:0.32.0 +proto-google-maps-fleetengine-delivery-v1:0.32.0:0.32.0 +grpc-google-maps-fleetengine-delivery-v1:0.32.0:0.32.0 +google-shopping-merchant-reviews:0.31.0:0.31.0 +proto-google-shopping-merchant-reviews-v1beta:0.31.0:0.31.0 +grpc-google-shopping-merchant-reviews-v1beta:0.31.0:0.31.0 +google-cloud-valkey:0.31.0:0.31.0 +proto-google-cloud-valkey-v1:0.31.0:0.31.0 +proto-google-cloud-valkey-v1beta:0.31.0:0.31.0 +proto-google-cloud-cloudquotas-v1beta:0.53.0:0.53.0 +grpc-google-cloud-cloudquotas-v1beta:0.53.0:0.53.0 +proto-google-cloud-secretmanager-v1beta1:2.85.0:2.85.0 +grpc-google-cloud-secretmanager-v1beta1:2.85.0:2.85.0 +google-cloud-parametermanager:0.29.0:0.29.0 +proto-google-cloud-parametermanager-v1:0.29.0:0.29.0 +grpc-google-cloud-parametermanager-v1:0.29.0:0.29.0 +google-cloud-modelarmor:0.26.0:0.26.0 +proto-google-cloud-modelarmor-v1:0.26.0:0.26.0 +grpc-google-cloud-modelarmor-v1:0.26.0:0.26.0 +google-cloud-financialservices:0.26.0:0.26.0 +proto-google-cloud-financialservices-v1:0.26.0:0.26.0 +grpc-google-cloud-financialservices-v1:0.26.0:0.26.0 +google-cloud-devicestreaming:0.25.0:0.25.0 +proto-google-cloud-devicestreaming-v1:0.25.0:0.25.0 +grpc-google-cloud-devicestreaming-v1:0.25.0:0.25.0 +google-shopping-merchant-productstudio:0.25.0:0.25.0 +proto-google-shopping-merchant-productstudio-v1alpha:0.25.0:0.25.0 +grpc-google-shopping-merchant-productstudio-v1alpha:0.25.0:0.25.0 +google-cloud-storagebatchoperations:0.25.0:0.25.0 +proto-google-cloud-storagebatchoperations-v1:0.25.0:0.25.0 +grpc-google-cloud-storagebatchoperations-v1:0.25.0:0.25.0 +google-shopping-merchant-issue-resolution:1.13.0:1.13.0 +proto-google-shopping-merchant-issue-resolution-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-issue-resolution-v1beta:1.13.0:1.13.0 +google-cloud-lustre:0.25.0:0.25.0 +proto-google-cloud-lustre-v1:0.25.0:0.25.0 +grpc-google-cloud-lustre-v1:0.25.0:0.25.0 +google-shopping-merchant-order-tracking:1.13.0:1.13.0 +proto-google-shopping-merchant-order-tracking-v1beta:1.13.0:1.13.0 +grpc-google-shopping-merchant-order-tracking-v1beta:1.13.0:1.13.0 +grpc-google-cloud-oracledatabase-v1:0.34.0:0.34.0 +google-cloud-chronicle:0.23.0:0.23.0 +proto-google-cloud-chronicle-v1:0.23.0:0.23.0 +grpc-google-cloud-chronicle-v1:0.23.0:0.23.0 +proto-google-cloud-cloudsupport-v2beta:0.69.0:0.69.0 +grpc-google-cloud-cloudsupport-v2beta:0.69.0:0.69.0 +proto-google-cloud-modelarmor-v1beta:0.26.0:0.26.0 +grpc-google-cloud-modelarmor-v1beta:0.26.0:0.26.0 +proto-google-cloud-dataform-v1:0.84.0:0.84.0 +grpc-google-cloud-dataform-v1:0.84.0:0.84.0 +google-cloud-spanneradapter:0.21.0:0.21.0 +proto-google-cloud-spanneradapter-v1:0.21.0:0.21.0 +grpc-google-cloud-spanneradapter-v1:0.21.0:0.21.0 +proto-google-cloud-workspaceevents-v1beta:0.49.0:0.49.0 +grpc-google-cloud-workspaceevents-v1beta:0.49.0:0.49.0 +google-cloud-maintenance:0.19.0:0.19.0 +proto-google-cloud-maintenance-v1beta:0.19.0:0.19.0 +grpc-google-cloud-maintenance-v1beta:0.19.0:0.19.0 +google-cloud-configdelivery:0.19.0:0.19.0 +proto-google-cloud-configdelivery-v1beta:0.19.0:0.19.0 +grpc-google-cloud-configdelivery-v1beta:0.19.0:0.19.0 +proto-google-cloud-bigquerydatapolicy-v2beta1:0.82.0:0.82.0 +grpc-google-cloud-bigquerydatapolicy-v2beta1:0.82.0:0.82.0 +google-cloud-licensemanager:0.18.0:0.18.0 +proto-google-cloud-licensemanager-v1:0.18.0:0.18.0 +grpc-google-cloud-licensemanager-v1:0.18.0:0.18.0 +proto-google-shopping-merchant-reports-v1alpha:1.13.0:1.13.0 +grpc-google-shopping-merchant-reports-v1alpha:1.13.0:1.13.0 +proto-google-cloud-bigquerydatapolicy-v2:0.82.0:0.82.0 +grpc-google-cloud-bigquerydatapolicy-v2:0.82.0:0.82.0 +proto-google-cloud-configdelivery-v1:0.19.0:0.19.0 +grpc-google-cloud-configdelivery-v1:0.19.0:0.19.0 +proto-google-shopping-merchant-datasources-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-datasources-v1:1.13.0:1.13.0 +proto-google-shopping-merchant-inventories-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-inventories-v1:1.13.0:1.13.0 +proto-google-shopping-merchant-conversions-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-conversions-v1:1.13.0:1.13.0 +proto-google-shopping-merchant-issue-resolution-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-issue-resolution-v1:1.13.0:1.13.0 +proto-google-shopping-merchant-order-tracking-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-order-tracking-v1:1.13.0:1.13.0 +proto-google-shopping-merchant-accounts-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-accounts-v1:1.13.0:1.13.0 +proto-google-shopping-merchant-lfp-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-lfp-v1:1.13.0:1.13.0 +proto-google-shopping-merchant-products-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-products-v1:1.13.0:1.13.0 +proto-google-shopping-merchant-promotions-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-promotions-v1:1.13.0:1.13.0 +proto-google-shopping-merchant-quota-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-quota-v1:1.13.0:1.13.0 +proto-google-shopping-merchant-reports-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-reports-v1:1.13.0:1.13.0 +google-cloud-saasservicemgmt:0.15.0:0.15.0 +proto-google-cloud-saasservicemgmt-v1beta1:0.15.0:0.15.0 +grpc-google-cloud-saasservicemgmt-v1beta1:0.15.0:0.15.0 +proto-google-shopping-merchant-notifications-v1:1.13.0:1.13.0 +grpc-google-shopping-merchant-notifications-v1:1.13.0:1.13.0 +google-cloud-geminidataanalytics:0.13.0:0.13.0 +proto-google-cloud-geminidataanalytics-v1beta:0.13.0:0.13.0 +grpc-google-cloud-geminidataanalytics-v1beta:0.13.0:0.13.0 +google-cloud-cloudsecuritycompliance:0.12.0:0.12.0 +proto-google-cloud-cloudsecuritycompliance-v1:0.12.0:0.12.0 +grpc-google-cloud-cloudsecuritycompliance-v1:0.12.0:0.12.0 +google-cloud-locationfinder:0.10.0:0.10.0 +proto-google-cloud-locationfinder-v1:0.10.0:0.10.0 +grpc-google-cloud-locationfinder-v1:0.10.0:0.10.0 +google-cloud-capacityplanner:0.8.0:0.8.0 +proto-google-cloud-capacityplanner-v1beta:0.8.0:0.8.0 +grpc-google-cloud-capacityplanner-v1beta:0.8.0:0.8.0 +data-manager:0.6.0:0.6.0 +proto-data-manager-v1:0.6.0:0.6.0 +grpc-data-manager-v1:0.6.0:0.6.0 +google-cloud-vectorsearch:0.6.0:0.6.0 +proto-google-cloud-vectorsearch-v1beta:0.6.0:0.6.0 +grpc-google-cloud-vectorsearch-v1beta:0.6.0:0.6.0 +google-cloud-databasecenter:0.6.0:0.6.0 +proto-google-cloud-databasecenter-v1beta:0.6.0:0.6.0 +grpc-google-cloud-databasecenter-v1beta:0.6.0:0.6.0 +google-cloud-hypercomputecluster:0.5.0:0.5.0 +proto-google-cloud-hypercomputecluster-v1beta:0.5.0:0.5.0 +grpc-google-cloud-hypercomputecluster-v1beta:0.5.0:0.5.0 +proto-google-cloud-maintenance-v1:0.19.0:0.19.0 +grpc-google-cloud-maintenance-v1:0.19.0:0.19.0 +google-cloud-gkerecommender:0.5.0:0.5.0 +proto-google-cloud-gkerecommender-v1:0.5.0:0.5.0 +grpc-google-cloud-gkerecommender-v1:0.5.0:0.5.0 +google-cloud-cloudapiregistry:0.4.0:0.4.0 +proto-google-cloud-cloudapiregistry-v1beta:0.4.0:0.4.0 +grpc-google-cloud-cloudapiregistry-v1beta:0.4.0:0.4.0 +google-cloud-auditmanager:0.3.0:0.3.0 +proto-google-cloud-auditmanager-v1:0.3.0:0.3.0 +grpc-google-cloud-auditmanager-v1:0.3.0:0.3.0 +proto-google-cloud-cloudapiregistry-v1:0.4.0:0.4.0 +grpc-google-cloud-cloudapiregistry-v1:0.4.0:0.4.0 +google-cloud-logging:3.26.0:3.26.0 +grpc-google-cloud-logging-v2:0.115.0:0.115.0 +proto-google-cloud-logging-v2:0.115.0:0.115.0 +google-cloud-workloadmanager:0.1.0:0.1.0 +proto-google-cloud-workloadmanager-v1:0.1.0:0.1.0 +grpc-google-cloud-workloadmanager-v1:0.1.0:0.1.0 +google-cloud-ces:0.1.0:0.1.0 +proto-google-cloud-ces-v1:0.1.0:0.1.0 +grpc-google-cloud-ces-v1:0.1.0:0.1.0