diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index b67212769..731a0eb4a 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: - image: gcr.io/repo-automation-bots/owlbot-java:latest - digest: sha256:8c50e7bab0ae5ad41ee29420b558542637104500f6256b8fe74282b0cf6144db + image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest + digest: sha256:491a007c6bd6e77f9e9b1bebcd6cdf08a4a4ef2c228c123d9696845204cb685d diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml index 96aa68081..6719f160d 100644 --- a/.github/.OwlBot.yaml +++ b/.github/.OwlBot.yaml @@ -13,7 +13,7 @@ # limitations under the License. docker: - image: "gcr.io/repo-automation-bots/owlbot-java:latest" + image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" deep-remove-regex: - "/grpc-google-.*/src" diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml index 1a23ea42b..2176b0543 100644 --- a/.github/blunderbuss.yml +++ b/.github/blunderbuss.yml @@ -1,5 +1,5 @@ # Configuration for the Blunderbuss GitHub app. For more info see -# https://github.com/googleapis/repo-automation-bots/tree/master/packages/blunderbuss +# https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss assign_prs_by: - labels: - samples diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index f5ed30693..e4395c83d 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -2,7 +2,7 @@ rebaseMergeAllowed: false squashMergeAllowed: true mergeCommitAllowed: false branchProtectionRules: -- pattern: master +- pattern: main isAdminEnforced: true requiredApprovingReviewCount: 1 requiresCodeOwnerReviews: true diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3becb5c02..05de1f60d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,22 +1,21 @@ on: push: branches: - - master + - main pull_request: name: ci jobs: units: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - java: [8, 11] + java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: ${{matrix.java}} - run: java -version - run: .kokoro/build.sh @@ -26,11 +25,9 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: 8 - run: java -version - run: .kokoro/build.bat @@ -40,14 +37,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [8, 11] + java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: ${{matrix.java}} - run: java -version - run: .kokoro/dependencies.sh @@ -55,12 +50,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 + - uses: actions/setup-java@v2 with: - maven-version: 3.8.1 - - uses: actions/setup-java@v1 - with: - java-version: 8 + distribution: zulu + java-version: 11 - run: java -version - run: .kokoro/build.sh env: @@ -69,11 +62,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: 8 - run: java -version - run: .kokoro/build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh index d450fa962..8c31e367a 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -47,15 +47,15 @@ set +e case ${JOB_TYPE} in test) - mvn test -B -Dclirr.skip=true -Denforcer.skip=true + mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true RETURN_CODE=$? ;; lint) - mvn com.coveo:fmt-maven-plugin:check + mvn com.coveo:fmt-maven-plugin:check -B -ntp RETURN_CODE=$? ;; javadoc) - mvn javadoc:javadoc javadoc:test-javadoc + mvn javadoc:javadoc javadoc:test-javadoc -B -ntp RETURN_CODE=$? ;; integration) @@ -69,6 +69,11 @@ integration) verify RETURN_CODE=$? ;; +graalvm) + # Run Unit and Integration Tests with Native Image + mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test + RETURN_CODE=$? + ;; samples) SAMPLES_DIR=samples # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. @@ -86,7 +91,6 @@ samples) pushd ${SAMPLES_DIR} mvn -B \ - -Penable-samples \ -ntp \ -DtrimStackTrace=false \ -Dclirr.skip=true \ @@ -100,7 +104,7 @@ samples) fi ;; clirr) - mvn -B -Denforcer.skip=true clirr:check + mvn -B -ntp -Denforcer.skip=true clirr:check RETURN_CODE=$? ;; *) diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 9030ba8f9..d7476cfe9 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -28,7 +28,26 @@ source ${scriptDir}/common.sh java -version echo $JOB_TYPE -export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" +function determineMavenOpts() { + local javaVersion=$( + # filter down to the version line, then pull out the version between quotes, + # then trim the version number down to its minimal number (removing any + # update or suffix number). + java -version 2>&1 | grep "version" \ + | sed -E 's/^.*"(.*?)".*$/\1/g' \ + | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' + ) + + if [[ $javaVersion == 17* ]] + then + # MaxPermSize is no longer supported as of jdk 17 + echo -n "-Xmx1024m" + else + echo -n "-Xmx1024m -XX:MaxPermSize=128m" + fi +} + +export MAVEN_OPTS=$(determineMavenOpts) # this should run maven enforcer retry_with_backoff 3 10 \ diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg new file mode 100644 index 000000000..4c7225ec9 --- /dev/null +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -0,0 +1,33 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 9b5fb5c76..ca15d81e8 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -36,13 +36,9 @@ mvn clean install -B -q -DskipTests=true export NAME=google-cloud-dialogflow-cx export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) -# V3 generates docfx yml from javadoc -# generate yml -mvn clean site -B -q -P docFX - -# copy README to docfx-yml dir and rename index.md -cp README.md target/docfx-yml/index.md -# copy CHANGELOG to docfx-yml dir and rename history.md +# cloud RAD generation +mvn clean javadoc:aggregate -B -q -P docFX +# include CHANGELOG cp CHANGELOG.md target/docfx-yml/history.md pushd target/docfx-yml diff --git a/.repo-metadata.json b/.repo-metadata.json index e748655de..cd14e6650 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -3,7 +3,7 @@ "name_pretty": "Dialogflow CX", "product_documentation": "https://cloud.google.com/dialogflow/cx/docs", "api_description": "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.", - "client_documentation": "https://googleapis.dev/java/google-cloud-dialogflow-cx/latest/index.html", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/history", "release_level": "beta", "transport": "grpc", "language": "java", diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f822d289..277675b94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,49 @@ # Changelog +## [0.11.0](https://www.github.com/googleapis/java-dialogflow-cx/compare/v0.10.1...v0.11.0) (2022-01-07) + + +### Features + +* added `TelephonyTransferCall` in response message ([#376](https://www.github.com/googleapis/java-dialogflow-cx/issues/376)) ([d7345a8](https://www.github.com/googleapis/java-dialogflow-cx/commit/d7345a81820c125be231afdd23d9d4203e904bfe)) +* added API for changelogs ([#342](https://www.github.com/googleapis/java-dialogflow-cx/issues/342)) ([67198cb](https://www.github.com/googleapis/java-dialogflow-cx/commit/67198cb851833bcb1aacb63d037a30522732ade4)) +* added API for changelogs ([#343](https://www.github.com/googleapis/java-dialogflow-cx/issues/343)) ([ff46df6](https://www.github.com/googleapis/java-dialogflow-cx/commit/ff46df6f537c8173bca42335403505cd014583c3)) +* added deployment API ([#330](https://www.github.com/googleapis/java-dialogflow-cx/issues/330)) ([a68fde8](https://www.github.com/googleapis/java-dialogflow-cx/commit/a68fde8ec9db92185d71abb399cbc3cfae5f94d2)) +* added support for comparing between versions docs: clarified security settings API reference ([#347](https://www.github.com/googleapis/java-dialogflow-cx/issues/347)) ([68c3471](https://www.github.com/googleapis/java-dialogflow-cx/commit/68c34714905a783e2979f5a616bb4f5ce1e1a67c)) +* added support for custom content types docs: reformat comments ([#375](https://www.github.com/googleapis/java-dialogflow-cx/issues/375)) ([b1affa6](https://www.github.com/googleapis/java-dialogflow-cx/commit/b1affa660f9d88dcc9e54b4f950d80a16eb61c03)) +* added support for Deployments with ListDeployments and GetDeployment apis ([#327](https://www.github.com/googleapis/java-dialogflow-cx/issues/327)) ([9000ad2](https://www.github.com/googleapis/java-dialogflow-cx/commit/9000ad2e5183f6e8156382b7a87519823c630d90)) +* added the display name of the current page in webhook requests ([#380](https://www.github.com/googleapis/java-dialogflow-cx/issues/380)) ([cbd425f](https://www.github.com/googleapis/java-dialogflow-cx/commit/cbd425f624139064f4b7700a2d7502a42f8dc92f)) +* added the display name of the current page in webhook requests ([#381](https://www.github.com/googleapis/java-dialogflow-cx/issues/381)) ([e65c733](https://www.github.com/googleapis/java-dialogflow-cx/commit/e65c7333f2f272137d5dfe4ec4cdaab1e7dbe0f8)) +* allow setting custom CA for generic webhooks ([#355](https://www.github.com/googleapis/java-dialogflow-cx/issues/355)) ([66a8c4a](https://www.github.com/googleapis/java-dialogflow-cx/commit/66a8c4ab01c5ec91f6e2d431eff779ceb4b57c41)) +* allow setting custom CA for generic webhooks and release CompareVersions API docs: clarify DLP template reader usage ([#362](https://www.github.com/googleapis/java-dialogflow-cx/issues/362)) ([1d581ad](https://www.github.com/googleapis/java-dialogflow-cx/commit/1d581ad83fbd373087bbbcee3cbe55c204a553f3)) +* expose dtmf input info in the query result ([#329](https://www.github.com/googleapis/java-dialogflow-cx/issues/329)) ([1c25f27](https://www.github.com/googleapis/java-dialogflow-cx/commit/1c25f2752427d92f169fb7b9bfede3fdda00ba8e)) +* exposed DTMF input info in the query result ([a68fde8](https://www.github.com/googleapis/java-dialogflow-cx/commit/a68fde8ec9db92185d71abb399cbc3cfae5f94d2)) + + +### Bug Fixes + +* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-dialogflow-cx/issues/1299)) ([#377](https://www.github.com/googleapis/java-dialogflow-cx/issues/377)) ([41651be](https://www.github.com/googleapis/java-dialogflow-cx/commit/41651be08f9f8b3f9d13295cea8b7f264f58b00e)) +* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-dialogflow-cx/issues/1266)) ([#345](https://www.github.com/googleapis/java-dialogflow-cx/issues/345)) ([8cbd520](https://www.github.com/googleapis/java-dialogflow-cx/commit/8cbd52027091460f1bf4b39ed1a0849f1ca8bad3)) +* **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-dialogflow-cx/issues/1301)) ([#384](https://www.github.com/googleapis/java-dialogflow-cx/issues/384)) ([331bf72](https://www.github.com/googleapis/java-dialogflow-cx/commit/331bf72103b8fca89d24cf599fcaa43b282be8e3)) + + +### Documentation + +* added notes on long running operation ([a68fde8](https://www.github.com/googleapis/java-dialogflow-cx/commit/a68fde8ec9db92185d71abb399cbc3cfae5f94d2)) +* clarified semantic of the streaming APIs ([ff46df6](https://www.github.com/googleapis/java-dialogflow-cx/commit/ff46df6f537c8173bca42335403505cd014583c3)) +* clarified semantic of the streaming APIs ([67198cb](https://www.github.com/googleapis/java-dialogflow-cx/commit/67198cb851833bcb1aacb63d037a30522732ade4)) +* **samples:** adds list training phrases sample ([#336](https://www.github.com/googleapis/java-dialogflow-cx/issues/336)) ([2810eb2](https://www.github.com/googleapis/java-dialogflow-cx/commit/2810eb29af292fd91cd622757510e44d0560e1eb)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#340](https://www.github.com/googleapis/java-dialogflow-cx/issues/340)) ([fa55873](https://www.github.com/googleapis/java-dialogflow-cx/commit/fa55873d9e046f351392c285206e5e324c0fd608)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#360](https://www.github.com/googleapis/java-dialogflow-cx/issues/360)) ([d0319e4](https://www.github.com/googleapis/java-dialogflow-cx/commit/d0319e432c787c711bc91343ba49789c84ea23a9)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#374](https://www.github.com/googleapis/java-dialogflow-cx/issues/374)) ([5c970ff](https://www.github.com/googleapis/java-dialogflow-cx/commit/5c970ffe34d4378232da42b9eb2b0dc8b7987100)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#388](https://www.github.com/googleapis/java-dialogflow-cx/issues/388)) ([3bdb3fc](https://www.github.com/googleapis/java-dialogflow-cx/commit/3bdb3fc91327ad2f84e0d236aee2fc63d9bad7ac)) +* update dependency com.google.cloud.functions:function-maven-plugin to v0.10.0 ([#358](https://www.github.com/googleapis/java-dialogflow-cx/issues/358)) ([ee7d1af](https://www.github.com/googleapis/java-dialogflow-cx/commit/ee7d1af400e483b4ce87c8f6bcd5369970af5706)) +* update dependency com.google.code.gson:gson to v2.8.9 ([#357](https://www.github.com/googleapis/java-dialogflow-cx/issues/357)) ([0cfc996](https://www.github.com/googleapis/java-dialogflow-cx/commit/0cfc996c1bd321e4b1f845d8c56197cd97faef4d)) + ### [0.10.1](https://www.github.com/googleapis/java-dialogflow-cx/compare/v0.10.0...v0.10.1) (2021-09-22) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f2dbdee06..b65dd279c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,12 +53,12 @@ mvn -Penable-integration-tests clean verify ## Code Samples -Code Samples must be bundled in separate Maven modules, and guarded by a -Maven profile with the name `enable-samples`. +All code samples must be in compliance with the [java sample formatting guide][3]. +Code Samples must be bundled in separate Maven modules. The samples must be separate from the primary project for a few reasons: -1. Primary projects have a minimum Java version of Java 7 whereas samples have - a minimum Java version of Java 8. Due to this we need the ability to +1. Primary projects have a minimum Java version of Java 8 whereas samples can have + Java version of Java 11. Due to this we need the ability to selectively exclude samples from a build run. 2. Many code samples depend on external GCP services and need credentials to access the service. @@ -68,39 +68,16 @@ The samples must be separate from the primary project for a few reasons: ### Building ```bash -mvn -Penable-samples clean verify +mvn clean verify ``` Some samples require access to GCP services and require a service account: ```bash export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json -mvn -Penable-samples clean verify +mvn clean verify ``` -### Profile Config - -1. To add samples in a profile to your Maven project, add the following to your -`pom.xml` - - ```xml - - [...] - - - enable-samples - - sample - - - - [...] - - ``` - -2. [Activate](#profile-activation) the profile. -3. Define your samples in a normal Maven project in the `samples/` directory. - ### Code Formatting Code in this repo is formatted with @@ -110,30 +87,6 @@ To run formatting on your project, you can run: mvn com.coveo:fmt-maven-plugin:format ``` -### Profile Activation - -To include code samples when building and testing the project, enable the -`enable-samples` Maven profile. - -#### Command line - -To activate the Maven profile on the command line add `-Penable-samples` to your -Maven command. - -#### Maven `settings.xml` - -To activate the Maven profile in your `~/.m2/settings.xml` add an entry of -`enable-samples` following the instructions in [Active Profiles][2]. - -This method has the benefit of applying to all projects you build (and is -respected by IntelliJ IDEA) and is recommended if you are going to be -contributing samples to several projects. - -#### IntelliJ IDEA - -To activate the Maven Profile inside IntelliJ IDEA, follow the instructions in -[Activate Maven profiles][3] to activate `enable-samples`. - [1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account [2]: https://maven.apache.org/settings.html#Active_Profiles -[3]: https://www.jetbrains.com/help/idea/work-with-maven-profiles.html#activate_maven_profiles +[3]: https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md \ No newline at end of file diff --git a/README.md b/README.md index 6511f87cb..6162fc035 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-dialogflow-cx - 0.10.0 + 0.10.1 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.10.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.10.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.10.1" ``` ## Authentication @@ -75,20 +75,23 @@ use this Dialogflow CX Client Library. ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/java-dialogflow-cx/tree/master/samples) directory. +Samples are in the [`samples/`](https://github.com/googleapis/java-dialogflow-cx/tree/main/samples) directory. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Create Agent | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/master/samples/snippets/src/main/java/dialogflow/cx/CreateAgent.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/CreateAgent.java) | -| Create Flow | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/master/samples/snippets/src/main/java/dialogflow/cx/CreateFlow.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/CreateFlow.java) | -| Create Intent | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/master/samples/snippets/src/main/java/dialogflow/cx/CreateIntent.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/CreateIntent.java) | -| Create Page | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/master/samples/snippets/src/main/java/dialogflow/cx/CreatePage.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/CreatePage.java) | -| Create Simple Page | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/master/samples/snippets/src/main/java/dialogflow/cx/CreateSimplePage.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/CreateSimplePage.java) | -| Delete Page | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/master/samples/snippets/src/main/java/dialogflow/cx/DeletePage.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/DeletePage.java) | -| Detect Intent | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/master/samples/snippets/src/main/java/dialogflow/cx/DetectIntent.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/DetectIntent.java) | -| Detect Intent Stream | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/master/samples/snippets/src/main/java/dialogflow/cx/DetectIntentStream.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/DetectIntentStream.java) | -| List Pages | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/master/samples/snippets/src/main/java/dialogflow/cx/ListPages.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/ListPages.java) | -| Update Intent | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/master/samples/snippets/src/main/java/dialogflow/cx/UpdateIntent.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/UpdateIntent.java) | +| Create Agent | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/CreateAgent.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/CreateAgent.java) | +| Create Flow | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/CreateFlow.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/CreateFlow.java) | +| Create Intent | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/CreateIntent.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/CreateIntent.java) | +| Create Page | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/CreatePage.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/CreatePage.java) | +| Create Simple Page | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/CreateSimplePage.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/CreateSimplePage.java) | +| Delete Page | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/DeletePage.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/DeletePage.java) | +| Detect Intent | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/DetectIntent.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/DetectIntent.java) | +| Detect Intent Stream | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/DetectIntentStream.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/DetectIntentStream.java) | +| Example | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/Example.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/Example.java) | +| List Pages | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/ListPages.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/ListPages.java) | +| List Test Case Results | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/ListTestCaseResults.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/ListTestCaseResults.java) | +| List Training Phrases | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/ListTrainingPhrases.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/ListTrainingPhrases.java) | +| Update Intent | [source code](https://github.com/googleapis/java-dialogflow-cx/blob/main/samples/snippets/src/main/java/dialogflow/cx/UpdateIntent.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dialogflow-cx&page=editor&open_in_editor=samples/snippets/src/main/java/dialogflow/cx/UpdateIntent.java) | @@ -102,7 +105,7 @@ Dialogflow CX uses gRPC for the transport layer. ## Supported Java Versions -Java 7 or above is required for using this client. +Java 8 or above is required for using this client. Google's Java client libraries, [Google Cloud Client Libraries][cloudlibs] @@ -174,7 +177,6 @@ Apache 2.0 - See [LICENSE][license] for more information. Java Version | Status ------------ | ------ -Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1] Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] @@ -183,7 +185,7 @@ Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://cloud.google.com/dialogflow/cx/docs -[javadocs]: https://googleapis.dev/java/google-cloud-dialogflow-cx/latest/index.html +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/history [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-dialogflow-cx/java7.svg [kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-dialogflow-cx/java7.html [kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-dialogflow-cx/java8.svg @@ -204,10 +206,10 @@ Java is a registered trademark of Oracle and/or its affiliates. [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ -[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting -[contributing]: https://github.com/googleapis/java-dialogflow-cx/blob/master/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-dialogflow-cx/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-dialogflow-cx/blob/master/LICENSE +[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting +[contributing]: https://github.com/googleapis/java-dialogflow-cx/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/java-dialogflow-cx/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/java-dialogflow-cx/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=dialogflow-cx.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM diff --git a/google-cloud-dialogflow-cx-bom/pom.xml b/google-cloud-dialogflow-cx-bom/pom.xml index 23c461aff..8e0be5060 100644 --- a/google-cloud-dialogflow-cx-bom/pom.xml +++ b/google-cloud-dialogflow-cx-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx-bom - 0.10.1 + 0.11.0 pom com.google.cloud google-cloud-shared-config - 1.0.2 + 1.2.4 Google Dialogflow CX BOM @@ -56,27 +56,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.10.1 + 0.11.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.10.1 + 0.11.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.10.1 + 0.11.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.10.1 + 0.11.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.10.1 + 0.11.0 diff --git a/google-cloud-dialogflow-cx/pom.xml b/google-cloud-dialogflow-cx/pom.xml index 37fa299d4..9ccbb7b64 100644 --- a/google-cloud-dialogflow-cx/pom.xml +++ b/google-cloud-dialogflow-cx/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx - 0.10.1 + 0.11.0 jar Google Dialogflow CX https://github.com/googleapis/java-dialogflow-cx @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dialogflow-cx-parent - 0.10.1 + 0.11.0 google-cloud-dialogflow-cx diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java index 878f1383d..961b0b94f 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java @@ -194,7 +194,7 @@ public final ListAgentsPagedResponse listAgents(LocationName parent) { * *
{@code
    * try (AgentsClient agentsClient = AgentsClient.create()) {
-   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Agent element : agentsClient.listAgents(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -220,7 +220,7 @@ public final ListAgentsPagedResponse listAgents(String parent) {
    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   ListAgentsRequest request =
    *       ListAgentsRequest.newBuilder()
-   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -247,7 +247,7 @@ public final ListAgentsPagedResponse listAgents(ListAgentsRequest request) {
    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   ListAgentsRequest request =
    *       ListAgentsRequest.newBuilder()
-   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -273,7 +273,7 @@ public final UnaryCallable listAgent
    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   ListAgentsRequest request =
    *       ListAgentsRequest.newBuilder()
-   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -428,7 +428,7 @@ public final Agent createAgent(LocationName parent, Agent agent) {
    *
    * 
{@code
    * try (AgentsClient agentsClient = AgentsClient.create()) {
-   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Agent agent = Agent.newBuilder().build();
    *   Agent response = agentsClient.createAgent(parent, agent);
    * }
@@ -458,7 +458,7 @@ public final Agent createAgent(String parent, Agent agent) {
    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   CreateAgentRequest request =
    *       CreateAgentRequest.newBuilder()
-   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setAgent(Agent.newBuilder().build())
    *           .build();
    *   Agent response = agentsClient.createAgent(request);
@@ -485,7 +485,7 @@ public final Agent createAgent(CreateAgentRequest request) {
    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   CreateAgentRequest request =
    *       CreateAgentRequest.newBuilder()
-   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setAgent(Agent.newBuilder().build())
    *           .build();
    *   ApiFuture future = agentsClient.createAgentCallable().futureCall(request);
@@ -671,7 +671,9 @@ public final UnaryCallable deleteAgentCallable() {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Exports the specified agent to a binary file. This method is a [long-running
+   * Exports the specified agent to a binary file.
+   *
+   * 

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -705,7 +707,9 @@ public final OperationFuture exportAgentAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports the specified agent to a binary file. This method is a [long-running + * Exports the specified agent to a binary file. + * + *

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -739,7 +743,9 @@ public final OperationFuture exportAgentAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports the specified agent to a binary file. This method is a [long-running + * Exports the specified agent to a binary file. + * + *

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -776,6 +782,15 @@ public final UnaryCallable exportAgentCallable() *

Replaces the current agent with a new one. Note that all existing resources in agent (e.g. * intents, entity types, flows) will be removed. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train flows prior to sending them queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -805,6 +820,15 @@ public final OperationFuture restoreAgentAsync(RestoreAgentReques *

Replaces the current agent with a new one. Note that all existing resources in agent (e.g. * intents, entity types, flows) will be removed. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train flows prior to sending them queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -835,6 +859,15 @@ public final OperationFuture restoreAgentAsync(RestoreAgentReques *

Replaces the current agent with a new one. Note that all existing resources in agent (e.g. * intents, entity types, flows) will be removed. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train flows prior to sending them queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java new file mode 100644 index 000000000..59e5b251a --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java @@ -0,0 +1,490 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +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.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.dialogflow.cx.v3.stub.ChangelogsStub; +import com.google.cloud.dialogflow.cx.v3.stub.ChangelogsStubSettings; +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: Service for managing [Changelogs][google.cloud.dialogflow.cx.v3.Changelog]. + * + *

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
+ * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+ *   ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]");
+ *   Changelog response = changelogsClient.getChangelog(name);
+ * }
+ * }
+ * + *

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

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

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 ChangelogsSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * ChangelogsSettings changelogsSettings =
+ *     ChangelogsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ChangelogsClient changelogsClient = ChangelogsClient.create(changelogsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * ChangelogsSettings changelogsSettings =
+ *     ChangelogsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ChangelogsClient changelogsClient = ChangelogsClient.create(changelogsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ChangelogsClient implements BackgroundResource { + private final ChangelogsSettings settings; + private final ChangelogsStub stub; + + /** Constructs an instance of ChangelogsClient with default settings. */ + public static final ChangelogsClient create() throws IOException { + return create(ChangelogsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ChangelogsClient, 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 ChangelogsClient create(ChangelogsSettings settings) throws IOException { + return new ChangelogsClient(settings); + } + + /** + * Constructs an instance of ChangelogsClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(ChangelogsSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final ChangelogsClient create(ChangelogsStub stub) { + return new ChangelogsClient(stub); + } + + /** + * Constructs an instance of ChangelogsClient, 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 ChangelogsClient(ChangelogsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ChangelogsStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected ChangelogsClient(ChangelogsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ChangelogsSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ChangelogsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the list of Changelogs. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
+   *   for (Changelog element : changelogsClient.listChangelogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The agent containing the changelogs. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListChangelogsPagedResponse listChangelogs(AgentName parent) { + ListChangelogsRequest request = + ListChangelogsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listChangelogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the list of Changelogs. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+   *   for (Changelog element : changelogsClient.listChangelogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The agent containing the changelogs. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>`. + * @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. + /** + * Returns the list of Changelogs. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   ListChangelogsRequest request =
+   *       ListChangelogsRequest.newBuilder()
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Changelog element : changelogsClient.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. + /** + * Returns the list of Changelogs. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   ListChangelogsRequest request =
+   *       ListChangelogsRequest.newBuilder()
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       changelogsClient.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. + /** + * Returns the list of Changelogs. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   ListChangelogsRequest request =
+   *       ListChangelogsRequest.newBuilder()
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListChangelogsResponse response = changelogsClient.listChangelogsCallable().call(request);
+   *     for (Changelog element : response.getResponsesList()) {
+   *       // 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. + /** + * Retrieves the specified Changelog. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]");
+   *   Changelog response = changelogsClient.getChangelog(name);
+   * }
+   * }
+ * + * @param name Required. The name of the changelog to get. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/changelogs/<Changelog + * ID>`. + * @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. + /** + * Retrieves the specified Changelog. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   String name =
+   *       ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]").toString();
+   *   Changelog response = changelogsClient.getChangelog(name);
+   * }
+   * }
+ * + * @param name Required. The name of the changelog to get. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/changelogs/<Changelog + * ID>`. + * @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. + /** + * Retrieves the specified Changelog. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   GetChangelogRequest request =
+   *       GetChangelogRequest.newBuilder()
+   *           .setName(
+   *               ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]").toString())
+   *           .build();
+   *   Changelog response = changelogsClient.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. + /** + * Retrieves the specified Changelog. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   GetChangelogRequest request =
+   *       GetChangelogRequest.newBuilder()
+   *           .setName(
+   *               ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]").toString())
+   *           .build();
+   *   ApiFuture future = changelogsClient.getChangelogCallable().futureCall(request);
+   *   // Do something.
+   *   Changelog response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getChangelogCallable() { + return stub.getChangelogCallable(); + } + + @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 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); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java new file mode 100644 index 000000000..33bd0f8c0 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java @@ -0,0 +1,196 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +import static com.google.cloud.dialogflow.cx.v3.ChangelogsClient.ListChangelogsPagedResponse; + +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.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.dialogflow.cx.v3.stub.ChangelogsStubSettings; +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 ChangelogsClient}. + * + *

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

    + *
  • The default service address (dialogflow.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 total timeout of getChangelog to 30 seconds: + * + *

{@code
+ * ChangelogsSettings.Builder changelogsSettingsBuilder = ChangelogsSettings.newBuilder();
+ * changelogsSettingsBuilder
+ *     .getChangelogSettings()
+ *     .setRetrySettings(
+ *         changelogsSettingsBuilder
+ *             .getChangelogSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ChangelogsSettings changelogsSettings = changelogsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ChangelogsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listChangelogs. */ + public PagedCallSettings< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings() { + return ((ChangelogsStubSettings) getStubSettings()).listChangelogsSettings(); + } + + /** Returns the object with the settings used for calls to getChangelog. */ + public UnaryCallSettings getChangelogSettings() { + return ((ChangelogsStubSettings) getStubSettings()).getChangelogSettings(); + } + + public static final ChangelogsSettings create(ChangelogsStubSettings stub) throws IOException { + return new ChangelogsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ChangelogsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ChangelogsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ChangelogsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ChangelogsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ChangelogsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ChangelogsStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ChangelogsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 ChangelogsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ChangelogsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ChangelogsStubSettings.newBuilder(clientContext)); + } + + protected Builder(ChangelogsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ChangelogsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ChangelogsStubSettings.newBuilder()); + } + + public ChangelogsStubSettings.Builder getStubSettingsBuilder() { + return ((ChangelogsStubSettings.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 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(); + } + + @Override + public ChangelogsSettings build() throws IOException { + return new ChangelogsSettings(this); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java new file mode 100644 index 000000000..1bd280af1 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java @@ -0,0 +1,513 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +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.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.dialogflow.cx.v3.stub.DeploymentsStub; +import com.google.cloud.dialogflow.cx.v3.stub.DeploymentsStubSettings; +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: Service for managing + * [Deployments][google.cloud.dialogflow.cx.v3.Deployment]. + * + *

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
+ * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+ *   DeploymentName name =
+ *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]");
+ *   Deployment response = deploymentsClient.getDeployment(name);
+ * }
+ * }
+ * + *

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

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

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 DeploymentsSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * DeploymentsSettings deploymentsSettings =
+ *     DeploymentsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DeploymentsClient deploymentsClient = DeploymentsClient.create(deploymentsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * DeploymentsSettings deploymentsSettings =
+ *     DeploymentsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DeploymentsClient deploymentsClient = DeploymentsClient.create(deploymentsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DeploymentsClient implements BackgroundResource { + private final DeploymentsSettings settings; + private final DeploymentsStub stub; + + /** Constructs an instance of DeploymentsClient with default settings. */ + public static final DeploymentsClient create() throws IOException { + return create(DeploymentsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DeploymentsClient, 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 DeploymentsClient create(DeploymentsSettings settings) throws IOException { + return new DeploymentsClient(settings); + } + + /** + * Constructs an instance of DeploymentsClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(DeploymentsSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final DeploymentsClient create(DeploymentsStub stub) { + return new DeploymentsClient(stub); + } + + /** + * Constructs an instance of DeploymentsClient, 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 DeploymentsClient(DeploymentsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DeploymentsStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected DeploymentsClient(DeploymentsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final DeploymentsSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public DeploymentsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the list of all deployments in the specified + * [Environment][google.cloud.dialogflow.cx.v3.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   EnvironmentName parent =
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]");
+   *   for (Deployment element : deploymentsClient.listDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list + * all environments for. Format: `projects/<Project ID>/locations/<Location + * ID>/agents/<Agent ID>/environments/<Environment ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(EnvironmentName parent) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the list of all deployments in the specified + * [Environment][google.cloud.dialogflow.cx.v3.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   String parent =
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
+   *   for (Deployment element : deploymentsClient.listDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list + * all environments for. Format: `projects/<Project ID>/locations/<Location + * ID>/agents/<Agent ID>/environments/<Environment ID>`. + * @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. + /** + * Returns the list of all deployments in the specified + * [Environment][google.cloud.dialogflow.cx.v3.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Deployment element : deploymentsClient.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. + /** + * Returns the list of all deployments in the specified + * [Environment][google.cloud.dialogflow.cx.v3.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentsClient.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. + /** + * Returns the list of all deployments in the specified + * [Environment][google.cloud.dialogflow.cx.v3.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDeploymentsResponse response =
+   *         deploymentsClient.listDeploymentsCallable().call(request);
+   *     for (Deployment element : response.getResponsesList()) {
+   *       // 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. + /** + * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]");
+   *   Deployment response = deploymentsClient.getDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/environments/<Environment ID>/deployments/<Deployment ID>`. + * @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. + /** + * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]")
+   *           .toString();
+   *   Deployment response = deploymentsClient.getDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. + * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent + * ID>/environments/<Environment ID>/deployments/<Deployment ID>`. + * @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. + /** + * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   GetDeploymentRequest request =
+   *       GetDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   Deployment response = deploymentsClient.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. + /** + * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   GetDeploymentRequest request =
+   *       GetDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = deploymentsClient.getDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDeploymentCallable() { + return stub.getDeploymentCallable(); + } + + @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 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); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java new file mode 100644 index 000000000..914d0ef2f --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java @@ -0,0 +1,196 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +import static com.google.cloud.dialogflow.cx.v3.DeploymentsClient.ListDeploymentsPagedResponse; + +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.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.dialogflow.cx.v3.stub.DeploymentsStubSettings; +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 DeploymentsClient}. + * + *

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

    + *
  • The default service address (dialogflow.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 total timeout of getDeployment to 30 seconds: + * + *

{@code
+ * DeploymentsSettings.Builder deploymentsSettingsBuilder = DeploymentsSettings.newBuilder();
+ * deploymentsSettingsBuilder
+ *     .getDeploymentSettings()
+ *     .setRetrySettings(
+ *         deploymentsSettingsBuilder
+ *             .getDeploymentSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DeploymentsSettings deploymentsSettings = deploymentsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class DeploymentsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listDeployments. */ + public PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return ((DeploymentsStubSettings) getStubSettings()).listDeploymentsSettings(); + } + + /** Returns the object with the settings used for calls to getDeployment. */ + public UnaryCallSettings getDeploymentSettings() { + return ((DeploymentsStubSettings) getStubSettings()).getDeploymentSettings(); + } + + public static final DeploymentsSettings create(DeploymentsStubSettings stub) throws IOException { + return new DeploymentsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DeploymentsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DeploymentsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DeploymentsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DeploymentsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DeploymentsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DeploymentsStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DeploymentsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 DeploymentsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DeploymentsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DeploymentsStubSettings.newBuilder(clientContext)); + } + + protected Builder(DeploymentsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DeploymentsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DeploymentsStubSettings.newBuilder()); + } + + public DeploymentsStubSettings.Builder getStubSettingsBuilder() { + return ((DeploymentsStubSettings.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 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(); + } + + @Override + public DeploymentsSettings build() throws IOException { + return new DeploymentsSettings(this); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java index a7485aa37..ad57fce01 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java @@ -184,8 +184,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) { * *

{@code
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
-   *   String parent =
-   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -211,9 +210,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
-   *           .setParent(
-   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -241,9 +238,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
-   *           .setParent(
-   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -272,9 +267,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
-   *           .setParent(
-   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -442,8 +435,7 @@ public final EntityType createEntityType(AgentName parent, EntityType entityType
    *
    * 
{@code
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
-   *   String parent =
-   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   EntityType entityType = EntityType.newBuilder().build();
    *   EntityType response = entityTypesClient.createEntityType(parent, entityType);
    * }
@@ -473,9 +465,7 @@ public final EntityType createEntityType(String parent, EntityType entityType) {
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
    *   CreateEntityTypeRequest request =
    *       CreateEntityTypeRequest.newBuilder()
-   *           .setParent(
-   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEntityType(EntityType.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -503,9 +493,7 @@ public final EntityType createEntityType(CreateEntityTypeRequest request) {
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
    *   CreateEntityTypeRequest request =
    *       CreateEntityTypeRequest.newBuilder()
-   *           .setParent(
-   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEntityType(EntityType.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java
index 6336cdf75..034a4ce42 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java
@@ -203,8 +203,7 @@ public final ListEnvironmentsPagedResponse listEnvironments(AgentName parent) {
    *
    * 
{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
-   *   String parent =
-   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (Environment element : environmentsClient.listEnvironments(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -233,9 +232,7 @@ public final ListEnvironmentsPagedResponse listEnvironments(String parent) {
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -263,9 +260,7 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -294,9 +289,7 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -425,6 +418,14 @@ public final UnaryCallable getEnvironmentCal
    * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified
    * [Agent][google.cloud.dialogflow.cx.v3.Agent].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] + * *

Sample code: * *

{@code
@@ -456,12 +457,19 @@ public final OperationFuture createEnvironmentAsync(
    * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified
    * [Agent][google.cloud.dialogflow.cx.v3.Agent].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] + * *

Sample code: * *

{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
-   *   String parent =
-   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   Environment environment = Environment.newBuilder().build();
    *   Environment response = environmentsClient.createEnvironmentAsync(parent, environment).get();
    * }
@@ -485,15 +493,21 @@ public final OperationFuture createEnvironmentAsync(
    * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified
    * [Agent][google.cloud.dialogflow.cx.v3.Agent].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] + * *

Sample code: * *

{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(Environment.newBuilder().build())
    *           .build();
    *   Environment response = environmentsClient.createEnvironmentAsync(request).get();
@@ -513,15 +527,21 @@ public final OperationFuture createEnvironmentAsync(
    * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified
    * [Agent][google.cloud.dialogflow.cx.v3.Agent].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] + * *

Sample code: * *

{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(Environment.newBuilder().build())
    *           .build();
    *   OperationFuture future =
@@ -541,15 +561,21 @@ public final OperationFuture createEnvironmentAsync(
    * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified
    * [Agent][google.cloud.dialogflow.cx.v3.Agent].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] + * *

Sample code: * *

{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(Environment.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -567,6 +593,14 @@ public final UnaryCallable createEnvironmen
   /**
    * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] + * *

Sample code: * *

{@code
@@ -596,6 +630,14 @@ public final OperationFuture updateEnvironmentAsync(
   /**
    * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] + * *

Sample code: * *

{@code
@@ -621,6 +663,14 @@ public final OperationFuture updateEnvironmentAsync(
   /**
    * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] + * *

Sample code: * *

{@code
@@ -646,6 +696,14 @@ public final OperationFuture updateEnvironmentAsync(
   /**
    * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] + * *

Sample code: * *

{@code
@@ -926,6 +984,15 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory(
    * Kicks off a continuous test under the specified
    * [Environment][google.cloud.dialogflow.cx.v3.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata] - + * `response`: + * [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse] + * *

Sample code: * *

{@code
@@ -953,6 +1020,15 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory(
    * Kicks off a continuous test under the specified
    * [Environment][google.cloud.dialogflow.cx.v3.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata] - + * `response`: + * [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse] + * *

Sample code: * *

{@code
@@ -981,6 +1057,15 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory(
    * Kicks off a continuous test under the specified
    * [Environment][google.cloud.dialogflow.cx.v3.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata] - + * `response`: + * [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse] + * *

Sample code: * *

{@code
@@ -1042,9 +1127,7 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(
    * 
{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   String parent =
-   *       ContinuousTestResultName.of(
-   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[CONTINUOUS_TEST_RESULT]")
-   *           .toString();
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
    *   for (ContinuousTestResult element :
    *       environmentsClient.listContinuousTestResults(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -1074,12 +1157,7 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(St
    *   ListContinuousTestResultsRequest request =
    *       ListContinuousTestResultsRequest.newBuilder()
    *           .setParent(
-   *               ContinuousTestResultName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[ENVIRONMENT]",
-   *                       "[CONTINUOUS_TEST_RESULT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -1110,12 +1188,7 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(
    *   ListContinuousTestResultsRequest request =
    *       ListContinuousTestResultsRequest.newBuilder()
    *           .setParent(
-   *               ContinuousTestResultName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[ENVIRONMENT]",
-   *                       "[CONTINUOUS_TEST_RESULT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -1146,12 +1219,7 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(
    *   ListContinuousTestResultsRequest request =
    *       ListContinuousTestResultsRequest.newBuilder()
    *           .setParent(
-   *               ContinuousTestResultName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[ENVIRONMENT]",
-   *                       "[CONTINUOUS_TEST_RESULT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -1177,6 +1245,112 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(
     return stub.listContinuousTestResultsCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+   *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata] - + * `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse] + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   DeployFlowRequest request =
+   *       DeployFlowRequest.newBuilder()
+   *           .setEnvironment(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setFlowVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .build();
+   *   DeployFlowResponse response = environmentsClient.deployFlowAsync(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 deployFlowAsync( + DeployFlowRequest request) { + return deployFlowOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata] - + * `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse] + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   DeployFlowRequest request =
+   *       DeployFlowRequest.newBuilder()
+   *           .setEnvironment(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setFlowVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       environmentsClient.deployFlowOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeployFlowResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deployFlowOperationCallable() { + return stub.deployFlowOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata] - + * `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse] + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   DeployFlowRequest request =
+   *       DeployFlowRequest.newBuilder()
+   *           .setEnvironment(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setFlowVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = environmentsClient.deployFlowCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deployFlowCallable() { + return stub.deployFlowCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java index 53c80202f..7ab0aaf86 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java @@ -143,6 +143,17 @@ public UnaryCallSettings runContinuousTestS return ((EnvironmentsStubSettings) getStubSettings()).listContinuousTestResultsSettings(); } + /** Returns the object with the settings used for calls to deployFlow. */ + public UnaryCallSettings deployFlowSettings() { + return ((EnvironmentsStubSettings) getStubSettings()).deployFlowSettings(); + } + + /** Returns the object with the settings used for calls to deployFlow. */ + public OperationCallSettings + deployFlowOperationSettings() { + return ((EnvironmentsStubSettings) getStubSettings()).deployFlowOperationSettings(); + } + public static final EnvironmentsSettings create(EnvironmentsStubSettings stub) throws IOException { return new EnvironmentsSettings.Builder(stub.toBuilder()).build(); @@ -312,6 +323,17 @@ public UnaryCallSettings.Builder deleteEnvironm return getStubSettingsBuilder().listContinuousTestResultsSettings(); } + /** Returns the builder for the settings used for calls to deployFlow. */ + public UnaryCallSettings.Builder deployFlowSettings() { + return getStubSettingsBuilder().deployFlowSettings(); + } + + /** Returns the builder for the settings used for calls to deployFlow. */ + public OperationCallSettings.Builder + deployFlowOperationSettings() { + return getStubSettingsBuilder().deployFlowOperationSettings(); + } + @Override public EnvironmentsSettings build() throws IOException { return new EnvironmentsSettings(this); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java index 6d2715e3c..6051e1001 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java @@ -189,8 +189,7 @@ public final ListExperimentsPagedResponse listExperiments(EnvironmentName parent *
{@code
    * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) {
    *   String parent =
-   *       ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
-   *           .toString();
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
    *   for (Experiment element : experimentsClient.listExperiments(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -219,8 +218,7 @@ public final ListExperimentsPagedResponse listExperiments(String parent) {
    *   ListExperimentsRequest request =
    *       ListExperimentsRequest.newBuilder()
    *           .setParent(
-   *               ExperimentName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -250,8 +248,7 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest
    *   ListExperimentsRequest request =
    *       ListExperimentsRequest.newBuilder()
    *           .setParent(
-   *               ExperimentName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -282,8 +279,7 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest
    *   ListExperimentsRequest request =
    *       ListExperimentsRequest.newBuilder()
    *           .setParent(
-   *               ExperimentName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -452,8 +448,7 @@ public final Experiment createExperiment(EnvironmentName parent, Experiment expe
    * 
{@code
    * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) {
    *   String parent =
-   *       ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
-   *           .toString();
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
    *   Experiment experiment = Experiment.newBuilder().build();
    *   Experiment response = experimentsClient.createExperiment(parent, experiment);
    * }
@@ -484,8 +479,7 @@ public final Experiment createExperiment(String parent, Experiment experiment) {
    *   CreateExperimentRequest request =
    *       CreateExperimentRequest.newBuilder()
    *           .setParent(
-   *               ExperimentName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setExperiment(Experiment.newBuilder().build())
    *           .build();
@@ -512,8 +506,7 @@ public final Experiment createExperiment(CreateExperimentRequest request) {
    *   CreateExperimentRequest request =
    *       CreateExperimentRequest.newBuilder()
    *           .setParent(
-   *               ExperimentName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setExperiment(Experiment.newBuilder().build())
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java
index 79d1543f6..c85fde22b 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java
@@ -204,7 +204,7 @@ public final Flow createFlow(AgentName parent, Flow flow) {
    *
    * 
{@code
    * try (FlowsClient flowsClient = FlowsClient.create()) {
-   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   Flow flow = Flow.newBuilder().build();
    *   Flow response = flowsClient.createFlow(parent, flow);
    * }
@@ -234,7 +234,7 @@ public final Flow createFlow(String parent, Flow flow) {
    * try (FlowsClient flowsClient = FlowsClient.create()) {
    *   CreateFlowRequest request =
    *       CreateFlowRequest.newBuilder()
-   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setFlow(Flow.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -262,7 +262,7 @@ public final Flow createFlow(CreateFlowRequest request) {
    * try (FlowsClient flowsClient = FlowsClient.create()) {
    *   CreateFlowRequest request =
    *       CreateFlowRequest.newBuilder()
-   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setFlow(Flow.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -401,7 +401,7 @@ public final ListFlowsPagedResponse listFlows(AgentName parent) {
    *
    * 
{@code
    * try (FlowsClient flowsClient = FlowsClient.create()) {
-   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (Flow element : flowsClient.listFlows(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -427,7 +427,7 @@ public final ListFlowsPagedResponse listFlows(String parent) {
    * try (FlowsClient flowsClient = FlowsClient.create()) {
    *   ListFlowsRequest request =
    *       ListFlowsRequest.newBuilder()
-   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -455,7 +455,7 @@ public final ListFlowsPagedResponse listFlows(ListFlowsRequest request) {
    * try (FlowsClient flowsClient = FlowsClient.create()) {
    *   ListFlowsRequest request =
    *       ListFlowsRequest.newBuilder()
-   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -482,7 +482,7 @@ public final UnaryCallable listFlowsPa
    * try (FlowsClient flowsClient = FlowsClient.create()) {
    *   ListFlowsRequest request =
    *       ListFlowsRequest.newBuilder()
-   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -685,6 +685,15 @@ public final UnaryCallable updateFlowCallable() {
   /**
    * Trains the specified flow. Note that only the flow in 'draft' environment is trained.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -711,6 +720,15 @@ public final OperationFuture trainFlowAsync(FlowName name) { /** * Trains the specified flow. Note that only the flow in 'draft' environment is trained. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -736,6 +754,15 @@ public final OperationFuture trainFlowAsync(String name) { /** * Trains the specified flow. Note that only the flow in 'draft' environment is trained. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -762,6 +789,15 @@ public final OperationFuture trainFlowAsync(TrainFlowRequest requ /** * Trains the specified flow. Note that only the flow in 'draft' environment is trained. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -788,6 +824,15 @@ public final OperationCallable trainFlowOperati /** * Trains the specified flow. Note that only the flow in 'draft' environment is trained. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -973,6 +1018,14 @@ public final FlowValidationResult getFlowValidationResult( /** * Imports the specified flow to the specified agent from a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -982,7 +1035,7 @@ public final FlowValidationResult getFlowValidationResult( * try (FlowsClient flowsClient = FlowsClient.create()) { * ImportFlowRequest request = * ImportFlowRequest.newBuilder() - * .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) * .build(); * ImportFlowResponse response = flowsClient.importFlowAsync(request).get(); * } @@ -1000,6 +1053,14 @@ public final OperationFuture importFlowAsync( /** * Imports the specified flow to the specified agent from a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -1009,7 +1070,7 @@ public final OperationFuture importFlowAsync( * try (FlowsClient flowsClient = FlowsClient.create()) { * ImportFlowRequest request = * ImportFlowRequest.newBuilder() - * .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) * .build(); * OperationFuture future = * flowsClient.importFlowOperationCallable().futureCall(request); @@ -1027,6 +1088,14 @@ public final OperationFuture importFlowAsync( /** * Imports the specified flow to the specified agent from a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -1036,7 +1105,7 @@ public final OperationFuture importFlowAsync( * try (FlowsClient flowsClient = FlowsClient.create()) { * ImportFlowRequest request = * ImportFlowRequest.newBuilder() - * .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) * .build(); * ApiFuture future = flowsClient.importFlowCallable().futureCall(request); * // Do something. @@ -1052,6 +1121,14 @@ public final UnaryCallable importFlowCallable() { /** * Exports the specified flow to a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] + * *

Note that resources (e.g. intents, entities, webhooks) that the flow references will also be * exported. * @@ -1081,6 +1158,14 @@ public final OperationFuture exportFlowAsync( /** * Exports the specified flow to a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] + * *

Note that resources (e.g. intents, entities, webhooks) that the flow references will also be * exported. * @@ -1110,6 +1195,14 @@ public final OperationFuture exportFlowAsync( /** * Exports the specified flow to a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] + * *

Note that resources (e.g. intents, entities, webhooks) that the flow references will also be * exported. * diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java index bfd368d3e..6f93919f1 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java @@ -180,7 +180,7 @@ public final ListIntentsPagedResponse listIntents(AgentName parent) { * *

{@code
    * try (IntentsClient intentsClient = IntentsClient.create()) {
-   *   String parent = IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (Intent element : intentsClient.listIntents(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -206,7 +206,7 @@ public final ListIntentsPagedResponse listIntents(String parent) {
    * try (IntentsClient intentsClient = IntentsClient.create()) {
    *   ListIntentsRequest request =
    *       ListIntentsRequest.newBuilder()
-   *           .setParent(IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setIntentView(IntentView.forNumber(0))
    *           .setPageSize(883849137)
@@ -235,7 +235,7 @@ public final ListIntentsPagedResponse listIntents(ListIntentsRequest request) {
    * try (IntentsClient intentsClient = IntentsClient.create()) {
    *   ListIntentsRequest request =
    *       ListIntentsRequest.newBuilder()
-   *           .setParent(IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setIntentView(IntentView.forNumber(0))
    *           .setPageSize(883849137)
@@ -264,7 +264,7 @@ public final ListIntentsPagedResponse listIntents(ListIntentsRequest request) {
    * try (IntentsClient intentsClient = IntentsClient.create()) {
    *   ListIntentsRequest request =
    *       ListIntentsRequest.newBuilder()
-   *           .setParent(IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setIntentView(IntentView.forNumber(0))
    *           .setPageSize(883849137)
@@ -423,7 +423,7 @@ public final Intent createIntent(AgentName parent, Intent intent) {
    *
    * 
{@code
    * try (IntentsClient intentsClient = IntentsClient.create()) {
-   *   String parent = IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   Intent intent = Intent.newBuilder().build();
    *   Intent response = intentsClient.createIntent(parent, intent);
    * }
@@ -453,7 +453,7 @@ public final Intent createIntent(String parent, Intent intent) {
    * try (IntentsClient intentsClient = IntentsClient.create()) {
    *   CreateIntentRequest request =
    *       CreateIntentRequest.newBuilder()
-   *           .setParent(IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setIntent(Intent.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -481,7 +481,7 @@ public final Intent createIntent(CreateIntentRequest request) {
    * try (IntentsClient intentsClient = IntentsClient.create()) {
    *   CreateIntentRequest request =
    *       CreateIntentRequest.newBuilder()
-   *           .setParent(IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setIntent(Intent.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java
index 0d6d08487..20ada5ca2 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java
@@ -178,8 +178,7 @@ public final ListPagesPagedResponse listPages(FlowName parent) {
    *
    * 
{@code
    * try (PagesClient pagesClient = PagesClient.create()) {
-   *   String parent =
-   *       PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   for (Page element : pagesClient.listPages(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -205,8 +204,7 @@ public final ListPagesPagedResponse listPages(String parent) {
    * try (PagesClient pagesClient = PagesClient.create()) {
    *   ListPagesRequest request =
    *       ListPagesRequest.newBuilder()
-   *           .setParent(
-   *               PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -234,8 +232,7 @@ public final ListPagesPagedResponse listPages(ListPagesRequest request) {
    * try (PagesClient pagesClient = PagesClient.create()) {
    *   ListPagesRequest request =
    *       ListPagesRequest.newBuilder()
-   *           .setParent(
-   *               PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -262,8 +259,7 @@ public final UnaryCallable listPagesPa
    * try (PagesClient pagesClient = PagesClient.create()) {
    *   ListPagesRequest request =
    *       ListPagesRequest.newBuilder()
-   *           .setParent(
-   *               PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -426,8 +422,7 @@ public final Page createPage(FlowName parent, Page page) {
    *
    * 
{@code
    * try (PagesClient pagesClient = PagesClient.create()) {
-   *   String parent =
-   *       PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   Page page = Page.newBuilder().build();
    *   Page response = pagesClient.createPage(parent, page);
    * }
@@ -457,8 +452,7 @@ public final Page createPage(String parent, Page page) {
    * try (PagesClient pagesClient = PagesClient.create()) {
    *   CreatePageRequest request =
    *       CreatePageRequest.newBuilder()
-   *           .setParent(
-   *               PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPage(Page.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -486,8 +480,7 @@ public final Page createPage(CreatePageRequest request) {
    * try (PagesClient pagesClient = PagesClient.create()) {
    *   CreatePageRequest request =
    *       CreatePageRequest.newBuilder()
-   *           .setParent(
-   *               PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPage(Page.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java
index a800c4d50..774f7cc7d 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java
@@ -196,8 +196,7 @@ public final SecuritySettings createSecuritySettings(
    * 
{@code
    * try (SecuritySettingsServiceClient securitySettingsServiceClient =
    *     SecuritySettingsServiceClient.create()) {
-   *   String parent =
-   *       SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   SecuritySettings securitySettings = SecuritySettings.newBuilder().build();
    *   SecuritySettings response =
    *       securitySettingsServiceClient.createSecuritySettings(parent, securitySettings);
@@ -231,9 +230,7 @@ public final SecuritySettings createSecuritySettings(
    *     SecuritySettingsServiceClient.create()) {
    *   CreateSecuritySettingsRequest request =
    *       CreateSecuritySettingsRequest.newBuilder()
-   *           .setParent(
-   *               SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setSecuritySettings(SecuritySettings.newBuilder().build())
    *           .build();
    *   SecuritySettings response = securitySettingsServiceClient.createSecuritySettings(request);
@@ -258,9 +255,7 @@ public final SecuritySettings createSecuritySettings(CreateSecuritySettingsReque
    *     SecuritySettingsServiceClient.create()) {
    *   CreateSecuritySettingsRequest request =
    *       CreateSecuritySettingsRequest.newBuilder()
-   *           .setParent(
-   *               SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setSecuritySettings(SecuritySettings.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -505,8 +500,7 @@ public final ListSecuritySettingsPagedResponse listSecuritySettings(LocationName
    * 
{@code
    * try (SecuritySettingsServiceClient securitySettingsServiceClient =
    *     SecuritySettingsServiceClient.create()) {
-   *   String parent =
-   *       SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (SecuritySettings element :
    *       securitySettingsServiceClient.listSecuritySettings(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -535,9 +529,7 @@ public final ListSecuritySettingsPagedResponse listSecuritySettings(String paren
    *     SecuritySettingsServiceClient.create()) {
    *   ListSecuritySettingsRequest request =
    *       ListSecuritySettingsRequest.newBuilder()
-   *           .setParent(
-   *               SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -567,9 +559,7 @@ public final ListSecuritySettingsPagedResponse listSecuritySettings(
    *     SecuritySettingsServiceClient.create()) {
    *   ListSecuritySettingsRequest request =
    *       ListSecuritySettingsRequest.newBuilder()
-   *           .setParent(
-   *               SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -598,9 +588,7 @@ public final ListSecuritySettingsPagedResponse listSecuritySettings(
    *     SecuritySettingsServiceClient.create()) {
    *   ListSecuritySettingsRequest request =
    *       ListSecuritySettingsRequest.newBuilder()
-   *           .setParent(
-   *               SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java
index 3a80a1340..6ac803cb5 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java
@@ -196,8 +196,8 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(SessionN
    * 
{@code
    * try (SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.create()) {
    *   String parent =
-   *       SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *       SessionName.ofProjectLocationAgentSessionName(
+   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *           .toString();
    *   for (SessionEntityType element :
    *       sessionEntityTypesClient.listSessionEntityTypes(parent).iterateAll()) {
@@ -230,8 +230,8 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(String p
    *   ListSessionEntityTypesRequest request =
    *       ListSessionEntityTypesRequest.newBuilder()
    *           .setParent(
-   *               SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *               SessionName.ofProjectLocationAgentSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -262,8 +262,8 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(
    *   ListSessionEntityTypesRequest request =
    *       ListSessionEntityTypesRequest.newBuilder()
    *           .setParent(
-   *               SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *               SessionName.ofProjectLocationAgentSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -293,8 +293,8 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(
    *   ListSessionEntityTypesRequest request =
    *       ListSessionEntityTypesRequest.newBuilder()
    *           .setParent(
-   *               SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *               SessionName.ofProjectLocationAgentSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -478,8 +478,8 @@ public final SessionEntityType createSessionEntityType(
    * 
{@code
    * try (SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.create()) {
    *   String parent =
-   *       SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *       SessionName.ofProjectLocationAgentSessionName(
+   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *           .toString();
    *   SessionEntityType sessionEntityType = SessionEntityType.newBuilder().build();
    *   SessionEntityType response =
@@ -516,8 +516,8 @@ public final SessionEntityType createSessionEntityType(
    *   CreateSessionEntityTypeRequest request =
    *       CreateSessionEntityTypeRequest.newBuilder()
    *           .setParent(
-   *               SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *               SessionName.ofProjectLocationAgentSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *                   .toString())
    *           .setSessionEntityType(SessionEntityType.newBuilder().build())
    *           .build();
@@ -543,8 +543,8 @@ public final SessionEntityType createSessionEntityType(CreateSessionEntityTypeRe
    *   CreateSessionEntityTypeRequest request =
    *       CreateSessionEntityTypeRequest.newBuilder()
    *           .setParent(
-   *               SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *               SessionName.ofProjectLocationAgentSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *                   .toString())
    *           .setSessionEntityType(SessionEntityType.newBuilder().build())
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
index 5a4c0a7c3..f28dca0de 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
@@ -197,8 +197,7 @@ public final ListTestCasesPagedResponse listTestCases(AgentName parent) {
    *
    * 
{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
-   *   String parent =
-   *       TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (TestCase element : testCasesClient.listTestCases(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -224,8 +223,7 @@ public final ListTestCasesPagedResponse listTestCases(String parent) {
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ListTestCasesRequest request =
    *       ListTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -252,8 +250,7 @@ public final ListTestCasesPagedResponse listTestCases(ListTestCasesRequest reque
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ListTestCasesRequest request =
    *       ListTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -280,8 +277,7 @@ public final ListTestCasesPagedResponse listTestCases(ListTestCasesRequest reque
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ListTestCasesRequest request =
    *       ListTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -337,8 +333,7 @@ public final void batchDeleteTestCases(AgentName parent) {
    *
    * 
{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
-   *   String parent =
-   *       TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   testCasesClient.batchDeleteTestCases(parent);
    * }
    * }
@@ -363,8 +358,7 @@ public final void batchDeleteTestCases(String parent) { * try (TestCasesClient testCasesClient = TestCasesClient.create()) { * BatchDeleteTestCasesRequest request = * BatchDeleteTestCasesRequest.newBuilder() - * .setParent( - * TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) * .addAllNames(new ArrayList()) * .build(); * testCasesClient.batchDeleteTestCases(request); @@ -388,8 +382,7 @@ public final void batchDeleteTestCases(BatchDeleteTestCasesRequest request) { * try (TestCasesClient testCasesClient = TestCasesClient.create()) { * BatchDeleteTestCasesRequest request = * BatchDeleteTestCasesRequest.newBuilder() - * .setParent( - * TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) * .addAllNames(new ArrayList()) * .build(); * ApiFuture future = testCasesClient.batchDeleteTestCasesCallable().futureCall(request); @@ -532,8 +525,7 @@ public final TestCase createTestCase(AgentName parent, TestCase testCase) { * *
{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
-   *   String parent =
-   *       TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   TestCase testCase = TestCase.newBuilder().build();
    *   TestCase response = testCasesClient.createTestCase(parent, testCase);
    * }
@@ -560,8 +552,7 @@ public final TestCase createTestCase(String parent, TestCase testCase) {
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   CreateTestCaseRequest request =
    *       CreateTestCaseRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setTestCase(TestCase.newBuilder().build())
    *           .build();
    *   TestCase response = testCasesClient.createTestCase(request);
@@ -585,8 +576,7 @@ public final TestCase createTestCase(CreateTestCaseRequest request) {
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   CreateTestCaseRequest request =
    *       CreateTestCaseRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setTestCase(TestCase.newBuilder().build())
    *           .build();
    *   ApiFuture future = testCasesClient.createTestCaseCallable().futureCall(request);
@@ -675,7 +665,9 @@ public final UnaryCallable updateTestCaseCallab
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Kicks off a test case run. This method is a [long-running
+   * Kicks off a test case run.
+   *
+   * 

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -708,7 +700,9 @@ public final OperationFuture runTestCa // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Kicks off a test case run. This method is a [long-running + * Kicks off a test case run. + * + *

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -741,7 +735,9 @@ public final OperationFuture runTestCa // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Kicks off a test case run. This method is a [long-running + * Kicks off a test case run. + * + *

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -774,14 +770,22 @@ public final UnaryCallable runTestCaseCallable() /** * Kicks off a batch run of test cases. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] - + * `response`: + * [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   BatchRunTestCasesRequest request =
    *       BatchRunTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(
    *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
@@ -803,14 +807,22 @@ public final UnaryCallable runTestCaseCallable()
   /**
    * Kicks off a batch run of test cases.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] - + * `response`: + * [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   BatchRunTestCasesRequest request =
    *       BatchRunTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(
    *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
@@ -833,14 +845,22 @@ public final UnaryCallable runTestCaseCallable()
   /**
    * Kicks off a batch run of test cases.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] - + * `response`: + * [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   BatchRunTestCasesRequest request =
    *       BatchRunTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(
    *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
@@ -909,14 +929,21 @@ public final CalculateCoverageResponse calculateCoverage(CalculateCoverageReques
    * cases and won't overwite any existing ones. The provided ID in the imported test case is
    * neglected.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] - `response`: + * [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ImportTestCasesRequest request =
    *       ImportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .build();
    *   ImportTestCasesResponse response = testCasesClient.importTestCasesAsync(request).get();
    * }
@@ -936,14 +963,21 @@ public final CalculateCoverageResponse calculateCoverage(CalculateCoverageReques
    * cases and won't overwite any existing ones. The provided ID in the imported test case is
    * neglected.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] - `response`: + * [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ImportTestCasesRequest request =
    *       ImportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .build();
    *   OperationFuture future =
    *       testCasesClient.importTestCasesOperationCallable().futureCall(request);
@@ -964,14 +998,21 @@ public final CalculateCoverageResponse calculateCoverage(CalculateCoverageReques
    * cases and won't overwite any existing ones. The provided ID in the imported test case is
    * neglected.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] - `response`: + * [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ImportTestCasesRequest request =
    *       ImportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .build();
    *   ApiFuture future = testCasesClient.importTestCasesCallable().futureCall(request);
    *   // Do something.
@@ -988,14 +1029,21 @@ public final UnaryCallable importTestCasesCal
    * Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be
    * applied to export a subset of test cases.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] - `response`: + * [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ExportTestCasesRequest request =
    *       ExportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setFilter("filter-1274492040")
    *           .build();
    *   ExportTestCasesResponse response = testCasesClient.exportTestCasesAsync(request).get();
@@ -1015,14 +1063,21 @@ public final UnaryCallable importTestCasesCal
    * Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be
    * applied to export a subset of test cases.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] - `response`: + * [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ExportTestCasesRequest request =
    *       ExportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setFilter("filter-1274492040")
    *           .build();
    *   OperationFuture future =
@@ -1043,14 +1098,21 @@ public final UnaryCallable importTestCasesCal
    * Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be
    * applied to export a subset of test cases.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] - `response`: + * [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ExportTestCasesRequest request =
    *       ExportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setFilter("filter-1274492040")
    *           .build();
    *   ApiFuture future = testCasesClient.exportTestCasesCallable().futureCall(request);
@@ -1101,8 +1163,7 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(TestCaseName p
    * 
{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   String parent =
-   *       TestCaseResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
-   *           .toString();
+   *       TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString();
    *   for (TestCaseResult element : testCasesClient.listTestCaseResults(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -1132,9 +1193,7 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(String parent)
    *   ListTestCaseResultsRequest request =
    *       ListTestCaseResultsRequest.newBuilder()
    *           .setParent(
-   *               TestCaseResultName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
-   *                   .toString())
+   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setFilter("filter-1274492040")
@@ -1164,9 +1223,7 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(
    *   ListTestCaseResultsRequest request =
    *       ListTestCaseResultsRequest.newBuilder()
    *           .setParent(
-   *               TestCaseResultName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
-   *                   .toString())
+   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setFilter("filter-1274492040")
@@ -1196,9 +1253,7 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(
    *   ListTestCaseResultsRequest request =
    *       ListTestCaseResultsRequest.newBuilder()
    *           .setParent(
-   *               TestCaseResultName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
-   *                   .toString())
+   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setFilter("filter-1274492040")
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java
index 52bd0e970..c80d10407 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java
@@ -194,10 +194,7 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(Fl
    * 
{@code
    * try (TransitionRouteGroupsClient transitionRouteGroupsClient =
    *     TransitionRouteGroupsClient.create()) {
-   *   String parent =
-   *       TransitionRouteGroupName.of(
-   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]")
-   *           .toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   for (TransitionRouteGroup element :
    *       transitionRouteGroupsClient.listTransitionRouteGroups(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -227,14 +224,7 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(St
    *     TransitionRouteGroupsClient.create()) {
    *   ListTransitionRouteGroupsRequest request =
    *       ListTransitionRouteGroupsRequest.newBuilder()
-   *           .setParent(
-   *               TransitionRouteGroupName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[FLOW]",
-   *                       "[TRANSITION_ROUTE_GROUP]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -265,14 +255,7 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(
    *     TransitionRouteGroupsClient.create()) {
    *   ListTransitionRouteGroupsRequest request =
    *       ListTransitionRouteGroupsRequest.newBuilder()
-   *           .setParent(
-   *               TransitionRouteGroupName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[FLOW]",
-   *                       "[TRANSITION_ROUTE_GROUP]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -303,14 +286,7 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(
    *     TransitionRouteGroupsClient.create()) {
    *   ListTransitionRouteGroupsRequest request =
    *       ListTransitionRouteGroupsRequest.newBuilder()
-   *           .setParent(
-   *               TransitionRouteGroupName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[FLOW]",
-   *                       "[TRANSITION_ROUTE_GROUP]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -515,10 +491,7 @@ public final TransitionRouteGroup createTransitionRouteGroup(
    * 
{@code
    * try (TransitionRouteGroupsClient transitionRouteGroupsClient =
    *     TransitionRouteGroupsClient.create()) {
-   *   String parent =
-   *       TransitionRouteGroupName.of(
-   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]")
-   *           .toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   TransitionRouteGroup transitionRouteGroup = TransitionRouteGroup.newBuilder().build();
    *   TransitionRouteGroup response =
    *       transitionRouteGroupsClient.createTransitionRouteGroup(parent, transitionRouteGroup);
@@ -557,14 +530,7 @@ public final TransitionRouteGroup createTransitionRouteGroup(
    *     TransitionRouteGroupsClient.create()) {
    *   CreateTransitionRouteGroupRequest request =
    *       CreateTransitionRouteGroupRequest.newBuilder()
-   *           .setParent(
-   *               TransitionRouteGroupName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[FLOW]",
-   *                       "[TRANSITION_ROUTE_GROUP]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setTransitionRouteGroup(TransitionRouteGroup.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -596,14 +562,7 @@ public final TransitionRouteGroup createTransitionRouteGroup(
    *     TransitionRouteGroupsClient.create()) {
    *   CreateTransitionRouteGroupRequest request =
    *       CreateTransitionRouteGroupRequest.newBuilder()
-   *           .setParent(
-   *               TransitionRouteGroupName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[FLOW]",
-   *                       "[TRANSITION_ROUTE_GROUP]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setTransitionRouteGroup(TransitionRouteGroup.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java
index ca85d0192..f653517ac 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java
@@ -199,8 +199,7 @@ public final ListVersionsPagedResponse listVersions(FlowName parent) {
    *
    * 
{@code
    * try (VersionsClient versionsClient = VersionsClient.create()) {
-   *   String parent =
-   *       VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]").toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   for (Version element : versionsClient.listVersions(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -227,9 +226,7 @@ public final ListVersionsPagedResponse listVersions(String parent) {
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   ListVersionsRequest request =
    *       ListVersionsRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -256,9 +253,7 @@ public final ListVersionsPagedResponse listVersions(ListVersionsRequest request)
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   ListVersionsRequest request =
    *       ListVersionsRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -285,9 +280,7 @@ public final ListVersionsPagedResponse listVersions(ListVersionsRequest request)
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   ListVersionsRequest request =
    *       ListVersionsRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -413,6 +406,14 @@ public final UnaryCallable getVersionCallable() {
    * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
    * [Flow][google.cloud.dialogflow.cx.v3.Flow].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] + * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version] + * *

Sample code: * *

{@code
@@ -444,12 +445,19 @@ public final OperationFuture createVers
    * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
    * [Flow][google.cloud.dialogflow.cx.v3.Flow].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] + * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version] + * *

Sample code: * *

{@code
    * try (VersionsClient versionsClient = VersionsClient.create()) {
-   *   String parent =
-   *       VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]").toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   Version version = Version.newBuilder().build();
    *   Version response = versionsClient.createVersionAsync(parent, version).get();
    * }
@@ -473,15 +481,21 @@ public final OperationFuture createVers
    * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
    * [Flow][google.cloud.dialogflow.cx.v3.Flow].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] + * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version] + * *

Sample code: * *

{@code
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   CreateVersionRequest request =
    *       CreateVersionRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setVersion(Version.newBuilder().build())
    *           .build();
    *   Version response = versionsClient.createVersionAsync(request).get();
@@ -501,15 +515,21 @@ public final OperationFuture createVers
    * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
    * [Flow][google.cloud.dialogflow.cx.v3.Flow].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] + * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version] + * *

Sample code: * *

{@code
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   CreateVersionRequest request =
    *       CreateVersionRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setVersion(Version.newBuilder().build())
    *           .build();
    *   OperationFuture future =
@@ -529,15 +549,21 @@ public final OperationFuture createVers
    * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
    * [Flow][google.cloud.dialogflow.cx.v3.Flow].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] + * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version] + * *

Sample code: * *

{@code
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   CreateVersionRequest request =
    *       CreateVersionRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setVersion(Version.newBuilder().build())
    *           .build();
    *   ApiFuture future = versionsClient.createVersionCallable().futureCall(request);
@@ -724,6 +750,15 @@ public final UnaryCallable deleteVersionCallable()
   /**
    * Loads resources in the specified version to the draft flow.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Sample code: * *

{@code
@@ -749,6 +784,15 @@ public final OperationFuture loadVersionAsync(VersionName name) {
   /**
    * Loads resources in the specified version to the draft flow.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Sample code: * *

{@code
@@ -773,6 +817,15 @@ public final OperationFuture loadVersionAsync(String name) {
   /**
    * Loads resources in the specified version to the draft flow.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Sample code: * *

{@code
@@ -799,6 +852,15 @@ public final OperationFuture loadVersionAsync(LoadVersionRequest
   /**
    * Loads resources in the specified version to the draft flow.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Sample code: * *

{@code
@@ -825,6 +887,15 @@ public final OperationCallable loadVersionOpe
   /**
    * Loads resources in the specified version to the draft flow.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Sample code: * *

{@code
@@ -846,6 +917,119 @@ public final UnaryCallable loadVersionCallable()
     return stub.loadVersionCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Compares the specified base version with target version.
+   *
+   * 

Sample code: + * + *

{@code
+   * try (VersionsClient versionsClient = VersionsClient.create()) {
+   *   VersionName baseVersion =
+   *       VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
+   *   CompareVersionsResponse response = versionsClient.compareVersions(baseVersion);
+   * }
+   * }
+ * + * @param baseVersion Required. Name of the base flow version to compare with the target version. + * Use version ID `0` to indicate the draft version of the specified flow. + *

Format: `projects/<Project ID>/locations/<Location ID>/agents/ <Agent + * ID>/flows/<Flow ID>/versions/<Version ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompareVersionsResponse compareVersions(VersionName baseVersion) { + CompareVersionsRequest request = + CompareVersionsRequest.newBuilder() + .setBaseVersion(baseVersion == null ? null : baseVersion.toString()) + .build(); + return compareVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Compares the specified base version with target version. + * + *

Sample code: + * + *

{@code
+   * try (VersionsClient versionsClient = VersionsClient.create()) {
+   *   String baseVersion =
+   *       VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]").toString();
+   *   CompareVersionsResponse response = versionsClient.compareVersions(baseVersion);
+   * }
+   * }
+ * + * @param baseVersion Required. Name of the base flow version to compare with the target version. + * Use version ID `0` to indicate the draft version of the specified flow. + *

Format: `projects/<Project ID>/locations/<Location ID>/agents/ <Agent + * ID>/flows/<Flow ID>/versions/<Version ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompareVersionsResponse compareVersions(String baseVersion) { + CompareVersionsRequest request = + CompareVersionsRequest.newBuilder().setBaseVersion(baseVersion).build(); + return compareVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Compares the specified base version with target version. + * + *

Sample code: + * + *

{@code
+   * try (VersionsClient versionsClient = VersionsClient.create()) {
+   *   CompareVersionsRequest request =
+   *       CompareVersionsRequest.newBuilder()
+   *           .setBaseVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .setTargetVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .build();
+   *   CompareVersionsResponse response = versionsClient.compareVersions(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 CompareVersionsResponse compareVersions(CompareVersionsRequest request) { + return compareVersionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Compares the specified base version with target version. + * + *

Sample code: + * + *

{@code
+   * try (VersionsClient versionsClient = VersionsClient.create()) {
+   *   CompareVersionsRequest request =
+   *       CompareVersionsRequest.newBuilder()
+   *           .setBaseVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .setTargetVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .build();
+   *   ApiFuture future =
+   *       versionsClient.compareVersionsCallable().futureCall(request);
+   *   // Do something.
+   *   CompareVersionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + compareVersionsCallable() { + return stub.compareVersionsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsSettings.java index 15c2fa80c..8ec6fef26 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsSettings.java @@ -114,6 +114,12 @@ public OperationCallSettings loadVersionOpera return ((VersionsStubSettings) getStubSettings()).loadVersionOperationSettings(); } + /** Returns the object with the settings used for calls to compareVersions. */ + public UnaryCallSettings + compareVersionsSettings() { + return ((VersionsStubSettings) getStubSettings()).compareVersionsSettings(); + } + public static final VersionsSettings create(VersionsStubSettings stub) throws IOException { return new VersionsSettings.Builder(stub.toBuilder()).build(); } @@ -255,6 +261,12 @@ public UnaryCallSettings.Builder loadVersionSetti return getStubSettingsBuilder().loadVersionOperationSettings(); } + /** Returns the builder for the settings used for calls to compareVersions. */ + public UnaryCallSettings.Builder + compareVersionsSettings() { + return getStubSettingsBuilder().compareVersionsSettings(); + } + @Override public VersionsSettings build() throws IOException { return new VersionsSettings(this); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java index 58c9ff207..94dd7e08c 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java @@ -181,7 +181,7 @@ public final ListWebhooksPagedResponse listWebhooks(AgentName parent) { * *
{@code
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
-   *   String parent = WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (Webhook element : webhooksClient.listWebhooks(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -207,8 +207,7 @@ public final ListWebhooksPagedResponse listWebhooks(String parent) {
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
    *   ListWebhooksRequest request =
    *       ListWebhooksRequest.newBuilder()
-   *           .setParent(
-   *               WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -235,8 +234,7 @@ public final ListWebhooksPagedResponse listWebhooks(ListWebhooksRequest request)
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
    *   ListWebhooksRequest request =
    *       ListWebhooksRequest.newBuilder()
-   *           .setParent(
-   *               WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -263,8 +261,7 @@ public final ListWebhooksPagedResponse listWebhooks(ListWebhooksRequest request)
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
    *   ListWebhooksRequest request =
    *       ListWebhooksRequest.newBuilder()
-   *           .setParent(
-   *               WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -413,7 +410,7 @@ public final Webhook createWebhook(AgentName parent, Webhook webhook) {
    *
    * 
{@code
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
-   *   String parent = WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   Webhook webhook = Webhook.newBuilder().build();
    *   Webhook response = webhooksClient.createWebhook(parent, webhook);
    * }
@@ -440,8 +437,7 @@ public final Webhook createWebhook(String parent, Webhook webhook) {
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
    *   CreateWebhookRequest request =
    *       CreateWebhookRequest.newBuilder()
-   *           .setParent(
-   *               WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setWebhook(Webhook.newBuilder().build())
    *           .build();
    *   Webhook response = webhooksClient.createWebhook(request);
@@ -465,8 +461,7 @@ public final Webhook createWebhook(CreateWebhookRequest request) {
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
    *   CreateWebhookRequest request =
    *       CreateWebhookRequest.newBuilder()
-   *           .setParent(
-   *               WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setWebhook(Webhook.newBuilder().build())
    *           .build();
    *   ApiFuture future = webhooksClient.createWebhookCallable().futureCall(request);
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json
index 683008f78..398904795 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json
@@ -41,6 +41,36 @@
         }
       }
     },
+    "Changelogs": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "ChangelogsClient",
+          "rpcs": {
+            "GetChangelog": {
+              "methods": ["getChangelog", "getChangelog", "getChangelog", "getChangelogCallable"]
+            },
+            "ListChangelogs": {
+              "methods": ["listChangelogs", "listChangelogs", "listChangelogs", "listChangelogsPagedCallable", "listChangelogsCallable"]
+            }
+          }
+        }
+      }
+    },
+    "Deployments": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "DeploymentsClient",
+          "rpcs": {
+            "GetDeployment": {
+              "methods": ["getDeployment", "getDeployment", "getDeployment", "getDeploymentCallable"]
+            },
+            "ListDeployments": {
+              "methods": ["listDeployments", "listDeployments", "listDeployments", "listDeploymentsPagedCallable", "listDeploymentsCallable"]
+            }
+          }
+        }
+      }
+    },
     "EntityTypes": {
       "clients": {
         "grpc": {
@@ -76,6 +106,9 @@
             "DeleteEnvironment": {
               "methods": ["deleteEnvironment", "deleteEnvironment", "deleteEnvironment", "deleteEnvironmentCallable"]
             },
+            "DeployFlow": {
+              "methods": ["deployFlowAsync", "deployFlowOperationCallable", "deployFlowCallable"]
+            },
             "GetEnvironment": {
               "methods": ["getEnvironment", "getEnvironment", "getEnvironment", "getEnvironmentCallable"]
             },
@@ -358,6 +391,9 @@
         "grpc": {
           "libraryClient": "VersionsClient",
           "rpcs": {
+            "CompareVersions": {
+              "methods": ["compareVersions", "compareVersions", "compareVersions", "compareVersionsCallable"]
+            },
             "CreateVersion": {
               "methods": ["createVersionAsync", "createVersionAsync", "createVersionAsync", "createVersionOperationCallable", "createVersionCallable"]
             },
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/package-info.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/package-info.java
index 3acd198fe..9a851728a 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/package-info.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/package-info.java
@@ -32,6 +32,35 @@
  * }
  * }
* + *

======================= ChangelogsClient ======================= + * + *

Service Description: Service for managing + * [Changelogs][google.cloud.dialogflow.cx.v3.Changelog]. + * + *

Sample for ChangelogsClient: + * + *

{@code
+ * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+ *   ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]");
+ *   Changelog response = changelogsClient.getChangelog(name);
+ * }
+ * }
+ * + *

======================= DeploymentsClient ======================= + * + *

Service Description: Service for managing + * [Deployments][google.cloud.dialogflow.cx.v3.Deployment]. + * + *

Sample for DeploymentsClient: + * + *

{@code
+ * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+ *   DeploymentName name =
+ *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]");
+ *   Deployment response = deploymentsClient.getDeployment(name);
+ * }
+ * }
+ * *

======================= EntityTypesClient ======================= * *

Service Description: Service for managing diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStub.java new file mode 100644 index 000000000..83130880e --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStub.java @@ -0,0 +1,53 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.stub; + +import static com.google.cloud.dialogflow.cx.v3.ChangelogsClient.ListChangelogsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3.Changelog; +import com.google.cloud.dialogflow.cx.v3.GetChangelogRequest; +import com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest; +import com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Changelogs service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ChangelogsStub implements BackgroundResource { + + 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()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java new file mode 100644 index 000000000..e7dc4cb5c --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java @@ -0,0 +1,371 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.stub; + +import static com.google.cloud.dialogflow.cx.v3.ChangelogsClient.ListChangelogsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +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.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.dialogflow.cx.v3.Changelog; +import com.google.cloud.dialogflow.cx.v3.GetChangelogRequest; +import com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest; +import com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse; +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; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ChangelogsStub}. + * + *

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

    + *
  • The default service address (dialogflow.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 total timeout of getChangelog to 30 seconds: + * + *

{@code
+ * ChangelogsStubSettings.Builder changelogsSettingsBuilder = ChangelogsStubSettings.newBuilder();
+ * changelogsSettingsBuilder
+ *     .getChangelogSettings()
+ *     .setRetrySettings(
+ *         changelogsSettingsBuilder
+ *             .getChangelogSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ChangelogsStubSettings changelogsSettings = changelogsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ChangelogsStubSettings 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") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); + + private final PagedCallSettings< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings; + private final UnaryCallSettings getChangelogSettings; + + 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() == null + ? ImmutableList.of() + : payload.getChangelogsList(); + } + }; + + 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); + } + }; + + /** 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; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ChangelogsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcChangelogsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "dialogflow.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.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 ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ChangelogsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 ChangelogsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listChangelogsSettings = settingsBuilder.listChangelogsSettings().build(); + getChangelogSettings = settingsBuilder.getChangelogSettings().build(); + } + + /** Builder for ChangelogsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings; + private final UnaryCallSettings.Builder getChangelogSettings; + 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))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(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); + + listChangelogsSettings = PagedCallSettings.newBuilder(LIST_CHANGELOGS_PAGE_STR_FACT); + getChangelogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listChangelogsSettings, getChangelogSettings); + initDefaults(this); + } + + protected Builder(ChangelogsStubSettings settings) { + super(settings); + + listChangelogsSettings = settings.listChangelogsSettings.toBuilder(); + getChangelogSettings = settings.getChangelogSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listChangelogsSettings, getChangelogSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + 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")); + + 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 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; + } + + @Override + public ChangelogsStubSettings build() throws IOException { + return new ChangelogsStubSettings(this); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStub.java new file mode 100644 index 000000000..935fec5fd --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStub.java @@ -0,0 +1,53 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.stub; + +import static com.google.cloud.dialogflow.cx.v3.DeploymentsClient.ListDeploymentsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3.Deployment; +import com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest; +import com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; +import com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Deployments service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DeploymentsStub implements BackgroundResource { + + 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()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java new file mode 100644 index 000000000..a26bb0be3 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java @@ -0,0 +1,374 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.stub; + +import static com.google.cloud.dialogflow.cx.v3.DeploymentsClient.ListDeploymentsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +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.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.dialogflow.cx.v3.Deployment; +import com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest; +import com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; +import com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; +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; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DeploymentsStub}. + * + *

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

    + *
  • The default service address (dialogflow.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 total timeout of getDeployment to 30 seconds: + * + *

{@code
+ * DeploymentsStubSettings.Builder deploymentsSettingsBuilder =
+ *     DeploymentsStubSettings.newBuilder();
+ * deploymentsSettingsBuilder
+ *     .getDeploymentSettings()
+ *     .setRetrySettings(
+ *         deploymentsSettingsBuilder
+ *             .getDeploymentSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DeploymentsStubSettings deploymentsSettings = deploymentsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class DeploymentsStubSettings 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") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); + + private final PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings; + private final UnaryCallSettings getDeploymentSettings; + + 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() == null + ? ImmutableList.of() + : payload.getDeploymentsList(); + } + }; + + 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); + } + }; + + /** 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; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public DeploymentsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDeploymentsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "dialogflow.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.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 ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DeploymentsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 DeploymentsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listDeploymentsSettings = settingsBuilder.listDeploymentsSettings().build(); + getDeploymentSettings = settingsBuilder.getDeploymentSettings().build(); + } + + /** Builder for DeploymentsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings; + private final UnaryCallSettings.Builder getDeploymentSettings; + 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))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(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); + + listDeploymentsSettings = PagedCallSettings.newBuilder(LIST_DEPLOYMENTS_PAGE_STR_FACT); + getDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listDeploymentsSettings, getDeploymentSettings); + initDefaults(this); + } + + protected Builder(DeploymentsStubSettings settings) { + super(settings); + + listDeploymentsSettings = settings.listDeploymentsSettings.toBuilder(); + getDeploymentSettings = settings.getDeploymentSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listDeploymentsSettings, getDeploymentSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + 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")); + + 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 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; + } + + @Override + public DeploymentsStubSettings build() throws IOException { + return new DeploymentsStubSettings(this); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java index 6766b4a6d..d3e5c5647 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java @@ -25,6 +25,9 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; +import com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata; +import com.google.cloud.dialogflow.cx.v3.DeployFlowRequest; +import com.google.cloud.dialogflow.cx.v3.DeployFlowResponse; import com.google.cloud.dialogflow.cx.v3.Environment; import com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; @@ -127,6 +130,15 @@ public UnaryCallable runContinuousTestCalla throw new UnsupportedOperationException("Not implemented: listContinuousTestResultsCallable()"); } + public OperationCallable + deployFlowOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deployFlowOperationCallable()"); + } + + public UnaryCallable deployFlowCallable() { + throw new UnsupportedOperationException("Not implemented: deployFlowCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java index a965caba2..289216744 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java @@ -49,6 +49,9 @@ import com.google.cloud.dialogflow.cx.v3.ContinuousTestResult; import com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; +import com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata; +import com.google.cloud.dialogflow.cx.v3.DeployFlowRequest; +import com.google.cloud.dialogflow.cx.v3.DeployFlowResponse; import com.google.cloud.dialogflow.cx.v3.Environment; import com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; @@ -139,6 +142,9 @@ public class EnvironmentsStubSettings extends StubSettings listContinuousTestResultsSettings; + private final UnaryCallSettings deployFlowSettings; + private final OperationCallSettings + deployFlowOperationSettings; private static final PagedListDescriptor< ListEnvironmentsRequest, ListEnvironmentsResponse, Environment> @@ -415,6 +421,17 @@ public UnaryCallSettings runContinuousTestS return listContinuousTestResultsSettings; } + /** Returns the object with the settings used for calls to deployFlow. */ + public UnaryCallSettings deployFlowSettings() { + return deployFlowSettings; + } + + /** Returns the object with the settings used for calls to deployFlow. */ + public OperationCallSettings + deployFlowOperationSettings() { + return deployFlowOperationSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public EnvironmentsStub createStub() throws IOException { if (getTransportChannelProvider() @@ -505,6 +522,8 @@ protected EnvironmentsStubSettings(Builder settingsBuilder) throws IOException { runContinuousTestOperationSettings = settingsBuilder.runContinuousTestOperationSettings().build(); listContinuousTestResultsSettings = settingsBuilder.listContinuousTestResultsSettings().build(); + deployFlowSettings = settingsBuilder.deployFlowSettings().build(); + deployFlowOperationSettings = settingsBuilder.deployFlowOperationSettings().build(); } /** Builder for EnvironmentsStubSettings. */ @@ -540,6 +559,10 @@ public static class Builder extends StubSettings.Builder listContinuousTestResultsSettings; + private final UnaryCallSettings.Builder deployFlowSettings; + private final OperationCallSettings.Builder< + DeployFlowRequest, DeployFlowResponse, DeployFlowMetadata> + deployFlowOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -591,6 +614,8 @@ protected Builder(ClientContext clientContext) { runContinuousTestOperationSettings = OperationCallSettings.newBuilder(); listContinuousTestResultsSettings = PagedCallSettings.newBuilder(LIST_CONTINUOUS_TEST_RESULTS_PAGE_STR_FACT); + deployFlowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deployFlowOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -601,7 +626,8 @@ protected Builder(ClientContext clientContext) { deleteEnvironmentSettings, lookupEnvironmentHistorySettings, runContinuousTestSettings, - listContinuousTestResultsSettings); + listContinuousTestResultsSettings, + deployFlowSettings); initDefaults(this); } @@ -619,6 +645,8 @@ protected Builder(EnvironmentsStubSettings settings) { runContinuousTestSettings = settings.runContinuousTestSettings.toBuilder(); runContinuousTestOperationSettings = settings.runContinuousTestOperationSettings.toBuilder(); listContinuousTestResultsSettings = settings.listContinuousTestResultsSettings.toBuilder(); + deployFlowSettings = settings.deployFlowSettings.toBuilder(); + deployFlowOperationSettings = settings.deployFlowOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -629,7 +657,8 @@ protected Builder(EnvironmentsStubSettings settings) { deleteEnvironmentSettings, lookupEnvironmentHistorySettings, runContinuousTestSettings, - listContinuousTestResultsSettings); + listContinuousTestResultsSettings, + deployFlowSettings); } private static Builder createDefault() { @@ -686,6 +715,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .deployFlowSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createEnvironmentOperationSettings() .setInitialCallSettings( @@ -760,6 +794,29 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .deployFlowOperationSettings() + .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(DeployFlowResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeployFlowMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -856,6 +913,19 @@ public UnaryCallSettings.Builder deleteEnvironm return listContinuousTestResultsSettings; } + /** Returns the builder for the settings used for calls to deployFlow. */ + public UnaryCallSettings.Builder deployFlowSettings() { + return deployFlowSettings; + } + + /** Returns the builder for the settings used for calls to deployFlow. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deployFlowOperationSettings() { + return deployFlowOperationSettings; + } + @Override public EnvironmentsStubSettings build() throws IOException { return new EnvironmentsStubSettings(this); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsCallableFactory.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsCallableFactory.java new file mode 100644 index 000000000..24c6e8283 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.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 Changelogs service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcChangelogsCallableFactory 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/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java new file mode 100644 index 000000000..f20e31dc6 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcChangelogsStub.java @@ -0,0 +1,205 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.stub; + +import static com.google.cloud.dialogflow.cx.v3.ChangelogsClient.ListChangelogsPagedResponse; + +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.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3.Changelog; +import com.google.cloud.dialogflow.cx.v3.GetChangelogRequest; +import com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest; +import com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse; +import com.google.common.collect.ImmutableMap; +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 Changelogs service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcChangelogsStub extends ChangelogsStub { + private static final MethodDescriptor + listChangelogsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3.Changelogs/ListChangelogs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListChangelogsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListChangelogsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getChangelogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3.Changelogs/GetChangelog") + .setRequestMarshaller(ProtoUtils.marshaller(GetChangelogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Changelog.getDefaultInstance())) + .build(); + + private final UnaryCallable listChangelogsCallable; + private final UnaryCallable + listChangelogsPagedCallable; + private final UnaryCallable getChangelogCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcChangelogsStub create(ChangelogsStubSettings settings) + throws IOException { + return new GrpcChangelogsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcChangelogsStub create(ClientContext clientContext) throws IOException { + return new GrpcChangelogsStub(ChangelogsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcChangelogsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcChangelogsStub( + ChangelogsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcChangelogsStub, 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 GrpcChangelogsStub(ChangelogsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcChangelogsCallableFactory()); + } + + /** + * Constructs an instance of GrpcChangelogsStub, 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 GrpcChangelogsStub( + ChangelogsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listChangelogsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listChangelogsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getChangelogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getChangelogMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + 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.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listChangelogsCallable() { + return listChangelogsCallable; + } + + @Override + public UnaryCallable + listChangelogsPagedCallable() { + return listChangelogsPagedCallable; + } + + @Override + public UnaryCallable getChangelogCallable() { + return getChangelogCallable; + } + + @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/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsCallableFactory.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsCallableFactory.java new file mode 100644 index 000000000..6b9ebcfa4 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.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 Deployments service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcDeploymentsCallableFactory 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/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java new file mode 100644 index 000000000..d2f1a85aa --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcDeploymentsStub.java @@ -0,0 +1,207 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3.stub; + +import static com.google.cloud.dialogflow.cx.v3.DeploymentsClient.ListDeploymentsPagedResponse; + +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.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3.Deployment; +import com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest; +import com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; +import com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; +import com.google.common.collect.ImmutableMap; +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 Deployments service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcDeploymentsStub extends DeploymentsStub { + private static final MethodDescriptor + listDeploymentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3.Deployments/ListDeployments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDeploymentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3.Deployments/GetDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private final UnaryCallable + listDeploymentsCallable; + private final UnaryCallable + listDeploymentsPagedCallable; + private final UnaryCallable getDeploymentCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDeploymentsStub create(DeploymentsStubSettings settings) + throws IOException { + return new GrpcDeploymentsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDeploymentsStub create(ClientContext clientContext) throws IOException { + return new GrpcDeploymentsStub(DeploymentsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDeploymentsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDeploymentsStub( + DeploymentsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDeploymentsStub, 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 GrpcDeploymentsStub(DeploymentsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcDeploymentsCallableFactory()); + } + + /** + * Constructs an instance of GrpcDeploymentsStub, 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 GrpcDeploymentsStub( + DeploymentsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listDeploymentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDeploymentsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + 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.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listDeploymentsCallable() { + return listDeploymentsCallable; + } + + @Override + public UnaryCallable + listDeploymentsPagedCallable() { + return listDeploymentsPagedCallable; + } + + @Override + public UnaryCallable getDeploymentCallable() { + return getDeploymentCallable; + } + + @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/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java index 259ebedb2..7e2b480df 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java @@ -29,6 +29,9 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; +import com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata; +import com.google.cloud.dialogflow.cx.v3.DeployFlowRequest; +import com.google.cloud.dialogflow.cx.v3.DeployFlowResponse; import com.google.cloud.dialogflow.cx.v3.Environment; import com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; @@ -149,6 +152,14 @@ public class GrpcEnvironmentsStub extends EnvironmentsStub { ProtoUtils.marshaller(ListContinuousTestResultsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor deployFlowMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3.Environments/DeployFlow") + .setRequestMarshaller(ProtoUtils.marshaller(DeployFlowRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private final UnaryCallable listEnvironmentsCallable; private final UnaryCallable @@ -175,6 +186,9 @@ public class GrpcEnvironmentsStub extends EnvironmentsStub { private final UnaryCallable< ListContinuousTestResultsRequest, ListContinuousTestResultsPagedResponse> listContinuousTestResultsPagedCallable; + private final UnaryCallable deployFlowCallable; + private final OperationCallable + deployFlowOperationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -304,6 +318,16 @@ protected GrpcEnvironmentsStub( return params.build(); }) .build(); + GrpcCallSettings deployFlowTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deployFlowMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("environment", String.valueOf(request.getEnvironment())); + return params.build(); + }) + .build(); this.listEnvironmentsCallable = callableFactory.createUnaryCallable( @@ -372,6 +396,15 @@ protected GrpcEnvironmentsStub( listContinuousTestResultsTransportSettings, settings.listContinuousTestResultsSettings(), clientContext); + this.deployFlowCallable = + callableFactory.createUnaryCallable( + deployFlowTransportSettings, settings.deployFlowSettings(), clientContext); + this.deployFlowOperationCallable = + callableFactory.createOperationCallable( + deployFlowTransportSettings, + settings.deployFlowOperationSettings(), + clientContext, + operationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -461,6 +494,17 @@ public UnaryCallable runContinuousTestCalla return listContinuousTestResultsPagedCallable; } + @Override + public UnaryCallable deployFlowCallable() { + return deployFlowCallable; + } + + @Override + public OperationCallable + deployFlowOperationCallable() { + return deployFlowOperationCallable; + } + @Override public final void close() { try { diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java index 616b2b3c9..65cb8f53f 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcVersionsStub.java @@ -25,6 +25,8 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest; +import com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse; import com.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; import com.google.cloud.dialogflow.cx.v3.CreateVersionRequest; import com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest; @@ -107,6 +109,17 @@ public class GrpcVersionsStub extends VersionsStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + compareVersionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3.Versions/CompareVersions") + .setRequestMarshaller( + ProtoUtils.marshaller(CompareVersionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CompareVersionsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable listVersionsCallable; private final UnaryCallable listVersionsPagedCallable; @@ -118,6 +131,8 @@ public class GrpcVersionsStub extends VersionsStub { private final UnaryCallable deleteVersionCallable; private final UnaryCallable loadVersionCallable; private final OperationCallable loadVersionOperationCallable; + private final UnaryCallable + compareVersionsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -218,6 +233,17 @@ protected GrpcVersionsStub( return params.build(); }) .build(); + GrpcCallSettings + compareVersionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(compareVersionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("base_version", String.valueOf(request.getBaseVersion())); + return params.build(); + }) + .build(); this.listVersionsCallable = callableFactory.createUnaryCallable( @@ -252,6 +278,9 @@ protected GrpcVersionsStub( settings.loadVersionOperationSettings(), clientContext, operationsStub); + this.compareVersionsCallable = + callableFactory.createUnaryCallable( + compareVersionsTransportSettings, settings.compareVersionsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -307,6 +336,11 @@ public OperationCallable loadVersionOperation return loadVersionOperationCallable; } + @Override + public UnaryCallable compareVersionsCallable() { + return compareVersionsCallable; + } + @Override public final void close() { try { diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStub.java index bfe12c950..380e60dfe 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStub.java @@ -21,6 +21,8 @@ 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.dialogflow.cx.v3.CompareVersionsRequest; +import com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse; import com.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; import com.google.cloud.dialogflow.cx.v3.CreateVersionRequest; import com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest; @@ -86,6 +88,10 @@ public UnaryCallable loadVersionCallable() { throw new UnsupportedOperationException("Not implemented: loadVersionCallable()"); } + public UnaryCallable compareVersionsCallable() { + throw new UnsupportedOperationException("Not implemented: compareVersionsCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java index b40b5a5b5..7842adf0c 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java @@ -44,6 +44,8 @@ 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.dialogflow.cx.v3.CompareVersionsRequest; +import com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse; import com.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; import com.google.cloud.dialogflow.cx.v3.CreateVersionRequest; import com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest; @@ -117,6 +119,8 @@ public class VersionsStubSettings extends StubSettings { private final UnaryCallSettings loadVersionSettings; private final OperationCallSettings loadVersionOperationSettings; + private final UnaryCallSettings + compareVersionsSettings; private static final PagedListDescriptor LIST_VERSIONS_PAGE_STR_DESC = @@ -213,6 +217,12 @@ public OperationCallSettings loadVersionOpera return loadVersionOperationSettings; } + /** Returns the object with the settings used for calls to compareVersions. */ + public UnaryCallSettings + compareVersionsSettings() { + return compareVersionsSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public VersionsStub createStub() throws IOException { if (getTransportChannelProvider() @@ -296,6 +306,7 @@ protected VersionsStubSettings(Builder settingsBuilder) throws IOException { deleteVersionSettings = settingsBuilder.deleteVersionSettings().build(); loadVersionSettings = settingsBuilder.loadVersionSettings().build(); loadVersionOperationSettings = settingsBuilder.loadVersionOperationSettings().build(); + compareVersionsSettings = settingsBuilder.compareVersionsSettings().build(); } /** Builder for VersionsStubSettings. */ @@ -314,6 +325,8 @@ public static class Builder extends StubSettings.Builder loadVersionSettings; private final OperationCallSettings.Builder loadVersionOperationSettings; + private final UnaryCallSettings.Builder + compareVersionsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -360,6 +373,7 @@ protected Builder(ClientContext clientContext) { deleteVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); loadVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); loadVersionOperationSettings = OperationCallSettings.newBuilder(); + compareVersionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -368,7 +382,8 @@ protected Builder(ClientContext clientContext) { createVersionSettings, updateVersionSettings, deleteVersionSettings, - loadVersionSettings); + loadVersionSettings, + compareVersionsSettings); initDefaults(this); } @@ -383,6 +398,7 @@ protected Builder(VersionsStubSettings settings) { deleteVersionSettings = settings.deleteVersionSettings.toBuilder(); loadVersionSettings = settings.loadVersionSettings.toBuilder(); loadVersionOperationSettings = settings.loadVersionOperationSettings.toBuilder(); + compareVersionsSettings = settings.compareVersionsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -391,7 +407,8 @@ protected Builder(VersionsStubSettings settings) { createVersionSettings, updateVersionSettings, deleteVersionSettings, - loadVersionSettings); + loadVersionSettings, + compareVersionsSettings); } private static Builder createDefault() { @@ -438,6 +455,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .compareVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createVersionOperationSettings() .setInitialCallSettings( @@ -553,6 +575,12 @@ public UnaryCallSettings.Builder loadVersionSetti return loadVersionOperationSettings; } + /** Returns the builder for the settings used for calls to compareVersions. */ + public UnaryCallSettings.Builder + compareVersionsSettings() { + return compareVersionsSettings; + } + @Override public VersionsStubSettings build() throws IOException { return new VersionsStubSettings(this); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java index eafb11a58..fce71f92e 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java @@ -195,7 +195,7 @@ public final ListAgentsPagedResponse listAgents(LocationName parent) { * *

{@code
    * try (AgentsClient agentsClient = AgentsClient.create()) {
-   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Agent element : agentsClient.listAgents(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -221,7 +221,7 @@ public final ListAgentsPagedResponse listAgents(String parent) {
    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   ListAgentsRequest request =
    *       ListAgentsRequest.newBuilder()
-   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -248,7 +248,7 @@ public final ListAgentsPagedResponse listAgents(ListAgentsRequest request) {
    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   ListAgentsRequest request =
    *       ListAgentsRequest.newBuilder()
-   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -274,7 +274,7 @@ public final UnaryCallable listAgent
    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   ListAgentsRequest request =
    *       ListAgentsRequest.newBuilder()
-   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -429,7 +429,7 @@ public final Agent createAgent(LocationName parent, Agent agent) {
    *
    * 
{@code
    * try (AgentsClient agentsClient = AgentsClient.create()) {
-   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Agent agent = Agent.newBuilder().build();
    *   Agent response = agentsClient.createAgent(parent, agent);
    * }
@@ -459,7 +459,7 @@ public final Agent createAgent(String parent, Agent agent) {
    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   CreateAgentRequest request =
    *       CreateAgentRequest.newBuilder()
-   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setAgent(Agent.newBuilder().build())
    *           .build();
    *   Agent response = agentsClient.createAgent(request);
@@ -486,7 +486,7 @@ public final Agent createAgent(CreateAgentRequest request) {
    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   CreateAgentRequest request =
    *       CreateAgentRequest.newBuilder()
-   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setAgent(Agent.newBuilder().build())
    *           .build();
    *   ApiFuture future = agentsClient.createAgentCallable().futureCall(request);
@@ -672,7 +672,9 @@ public final UnaryCallable deleteAgentCallable() {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Exports the specified agent to a binary file. This method is a [long-running
+   * Exports the specified agent to a binary file.
+   *
+   * 

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -706,7 +708,9 @@ public final OperationFuture exportAgentAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports the specified agent to a binary file. This method is a [long-running + * Exports the specified agent to a binary file. + * + *

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -740,7 +744,9 @@ public final OperationFuture exportAgentAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports the specified agent to a binary file. This method is a [long-running + * Exports the specified agent to a binary file. + * + *

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -777,6 +783,15 @@ public final UnaryCallable exportAgentCallable() *

Replaces the current agent with a new one. Note that all existing resources in agent (e.g. * intents, entity types, flows) will be removed. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -806,6 +821,15 @@ public final OperationFuture restoreAgentAsync(RestoreAgentReques *

Replaces the current agent with a new one. Note that all existing resources in agent (e.g. * intents, entity types, flows) will be removed. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -836,6 +860,15 @@ public final OperationFuture restoreAgentAsync(RestoreAgentReques *

Replaces the current agent with a new one. Note that all existing resources in agent (e.g. * intents, entity types, flows) will be removed. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java new file mode 100644 index 000000000..883a6e937 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java @@ -0,0 +1,492 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +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.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.dialogflow.cx.v3beta1.stub.ChangelogsStub; +import com.google.cloud.dialogflow.cx.v3beta1.stub.ChangelogsStubSettings; +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: Service for managing + * [Changelogs][google.cloud.dialogflow.cx.v3beta1.Changelog]. + * + *

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
+ * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+ *   ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]");
+ *   Changelog response = changelogsClient.getChangelog(name);
+ * }
+ * }
+ * + *

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

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

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 ChangelogsSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * ChangelogsSettings changelogsSettings =
+ *     ChangelogsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ChangelogsClient changelogsClient = ChangelogsClient.create(changelogsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * ChangelogsSettings changelogsSettings =
+ *     ChangelogsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ChangelogsClient changelogsClient = ChangelogsClient.create(changelogsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ChangelogsClient implements BackgroundResource { + private final ChangelogsSettings settings; + private final ChangelogsStub stub; + + /** Constructs an instance of ChangelogsClient with default settings. */ + public static final ChangelogsClient create() throws IOException { + return create(ChangelogsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ChangelogsClient, 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 ChangelogsClient create(ChangelogsSettings settings) throws IOException { + return new ChangelogsClient(settings); + } + + /** + * Constructs an instance of ChangelogsClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(ChangelogsSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final ChangelogsClient create(ChangelogsStub stub) { + return new ChangelogsClient(stub); + } + + /** + * Constructs an instance of ChangelogsClient, 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 ChangelogsClient(ChangelogsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ChangelogsStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected ChangelogsClient(ChangelogsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ChangelogsSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ChangelogsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the list of Changelogs. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
+   *   for (Changelog element : changelogsClient.listChangelogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The agent containing the changelogs. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListChangelogsPagedResponse listChangelogs(AgentName parent) { + ListChangelogsRequest request = + ListChangelogsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listChangelogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the list of Changelogs. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+   *   for (Changelog element : changelogsClient.listChangelogs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The agent containing the changelogs. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>`. + * @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. + /** + * Returns the list of Changelogs. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   ListChangelogsRequest request =
+   *       ListChangelogsRequest.newBuilder()
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Changelog element : changelogsClient.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. + /** + * Returns the list of Changelogs. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   ListChangelogsRequest request =
+   *       ListChangelogsRequest.newBuilder()
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       changelogsClient.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. + /** + * Returns the list of Changelogs. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   ListChangelogsRequest request =
+   *       ListChangelogsRequest.newBuilder()
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListChangelogsResponse response = changelogsClient.listChangelogsCallable().call(request);
+   *     for (Changelog element : response.getResponsesList()) {
+   *       // 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. + /** + * Retrieves the specified Changelog. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]");
+   *   Changelog response = changelogsClient.getChangelog(name);
+   * }
+   * }
+ * + * @param name Required. The name of the changelog to get. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/changelogs/<Changelog + * ID>`. + * @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. + /** + * Retrieves the specified Changelog. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   String name =
+   *       ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]").toString();
+   *   Changelog response = changelogsClient.getChangelog(name);
+   * }
+   * }
+ * + * @param name Required. The name of the changelog to get. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/changelogs/<Changelog + * ID>`. + * @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. + /** + * Retrieves the specified Changelog. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   GetChangelogRequest request =
+   *       GetChangelogRequest.newBuilder()
+   *           .setName(
+   *               ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]").toString())
+   *           .build();
+   *   Changelog response = changelogsClient.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. + /** + * Retrieves the specified Changelog. + * + *

Sample code: + * + *

{@code
+   * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+   *   GetChangelogRequest request =
+   *       GetChangelogRequest.newBuilder()
+   *           .setName(
+   *               ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]").toString())
+   *           .build();
+   *   ApiFuture future = changelogsClient.getChangelogCallable().futureCall(request);
+   *   // Do something.
+   *   Changelog response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getChangelogCallable() { + return stub.getChangelogCallable(); + } + + @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 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); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsSettings.java new file mode 100644 index 000000000..5ee2e6322 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsSettings.java @@ -0,0 +1,197 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +import static com.google.cloud.dialogflow.cx.v3beta1.ChangelogsClient.ListChangelogsPagedResponse; + +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.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.dialogflow.cx.v3beta1.stub.ChangelogsStubSettings; +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 ChangelogsClient}. + * + *

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

    + *
  • The default service address (dialogflow.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 total timeout of getChangelog to 30 seconds: + * + *

{@code
+ * ChangelogsSettings.Builder changelogsSettingsBuilder = ChangelogsSettings.newBuilder();
+ * changelogsSettingsBuilder
+ *     .getChangelogSettings()
+ *     .setRetrySettings(
+ *         changelogsSettingsBuilder
+ *             .getChangelogSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ChangelogsSettings changelogsSettings = changelogsSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class ChangelogsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listChangelogs. */ + public PagedCallSettings< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings() { + return ((ChangelogsStubSettings) getStubSettings()).listChangelogsSettings(); + } + + /** Returns the object with the settings used for calls to getChangelog. */ + public UnaryCallSettings getChangelogSettings() { + return ((ChangelogsStubSettings) getStubSettings()).getChangelogSettings(); + } + + public static final ChangelogsSettings create(ChangelogsStubSettings stub) throws IOException { + return new ChangelogsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ChangelogsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ChangelogsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ChangelogsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ChangelogsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ChangelogsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ChangelogsStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ChangelogsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 ChangelogsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ChangelogsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ChangelogsStubSettings.newBuilder(clientContext)); + } + + protected Builder(ChangelogsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ChangelogsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ChangelogsStubSettings.newBuilder()); + } + + public ChangelogsStubSettings.Builder getStubSettingsBuilder() { + return ((ChangelogsStubSettings.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 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(); + } + + @Override + public ChangelogsSettings build() throws IOException { + return new ChangelogsSettings(this); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java new file mode 100644 index 000000000..96f6ea918 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java @@ -0,0 +1,516 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +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.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.dialogflow.cx.v3beta1.stub.DeploymentsStub; +import com.google.cloud.dialogflow.cx.v3beta1.stub.DeploymentsStubSettings; +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: Service for managing + * [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment]. + * + *

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
+ * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+ *   DeploymentName name =
+ *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]");
+ *   Deployment response = deploymentsClient.getDeployment(name);
+ * }
+ * }
+ * + *

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

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

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 DeploymentsSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * DeploymentsSettings deploymentsSettings =
+ *     DeploymentsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DeploymentsClient deploymentsClient = DeploymentsClient.create(deploymentsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * DeploymentsSettings deploymentsSettings =
+ *     DeploymentsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DeploymentsClient deploymentsClient = DeploymentsClient.create(deploymentsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class DeploymentsClient implements BackgroundResource { + private final DeploymentsSettings settings; + private final DeploymentsStub stub; + + /** Constructs an instance of DeploymentsClient with default settings. */ + public static final DeploymentsClient create() throws IOException { + return create(DeploymentsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DeploymentsClient, 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 DeploymentsClient create(DeploymentsSettings settings) throws IOException { + return new DeploymentsClient(settings); + } + + /** + * Constructs an instance of DeploymentsClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(DeploymentsSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final DeploymentsClient create(DeploymentsStub stub) { + return new DeploymentsClient(stub); + } + + /** + * Constructs an instance of DeploymentsClient, 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 DeploymentsClient(DeploymentsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DeploymentsStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected DeploymentsClient(DeploymentsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final DeploymentsSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public DeploymentsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the list of all deployments in the specified + * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   EnvironmentName parent =
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]");
+   *   for (Deployment element : deploymentsClient.listDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to + * list all environments for. Format: `projects/<Project ID>/locations/<Location + * ID>/agents/<Agent ID>/environments/<Environment ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(EnvironmentName parent) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the list of all deployments in the specified + * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   String parent =
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
+   *   for (Deployment element : deploymentsClient.listDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to + * list all environments for. Format: `projects/<Project ID>/locations/<Location + * ID>/agents/<Agent ID>/environments/<Environment ID>`. + * @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. + /** + * Returns the list of all deployments in the specified + * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Deployment element : deploymentsClient.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. + /** + * Returns the list of all deployments in the specified + * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentsClient.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. + /** + * Returns the list of all deployments in the specified + * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDeploymentsResponse response =
+   *         deploymentsClient.listDeploymentsCallable().call(request);
+   *     for (Deployment element : response.getResponsesList()) {
+   *       // 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. + /** + * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]");
+   *   Deployment response = deploymentsClient.getDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the + * [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment]. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment + * ID>/deployments/<Deployment ID>`. + * @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. + /** + * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]")
+   *           .toString();
+   *   Deployment response = deploymentsClient.getDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the + * [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment]. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment + * ID>/deployments/<Deployment ID>`. + * @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. + /** + * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   GetDeploymentRequest request =
+   *       GetDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   Deployment response = deploymentsClient.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. + /** + * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment]. + * + *

Sample code: + * + *

{@code
+   * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+   *   GetDeploymentRequest request =
+   *       GetDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = deploymentsClient.getDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDeploymentCallable() { + return stub.getDeploymentCallable(); + } + + @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 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); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsSettings.java new file mode 100644 index 000000000..ab262b81d --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsSettings.java @@ -0,0 +1,197 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +import static com.google.cloud.dialogflow.cx.v3beta1.DeploymentsClient.ListDeploymentsPagedResponse; + +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.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.dialogflow.cx.v3beta1.stub.DeploymentsStubSettings; +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 DeploymentsClient}. + * + *

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

    + *
  • The default service address (dialogflow.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 total timeout of getDeployment to 30 seconds: + * + *

{@code
+ * DeploymentsSettings.Builder deploymentsSettingsBuilder = DeploymentsSettings.newBuilder();
+ * deploymentsSettingsBuilder
+ *     .getDeploymentSettings()
+ *     .setRetrySettings(
+ *         deploymentsSettingsBuilder
+ *             .getDeploymentSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DeploymentsSettings deploymentsSettings = deploymentsSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class DeploymentsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listDeployments. */ + public PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return ((DeploymentsStubSettings) getStubSettings()).listDeploymentsSettings(); + } + + /** Returns the object with the settings used for calls to getDeployment. */ + public UnaryCallSettings getDeploymentSettings() { + return ((DeploymentsStubSettings) getStubSettings()).getDeploymentSettings(); + } + + public static final DeploymentsSettings create(DeploymentsStubSettings stub) throws IOException { + return new DeploymentsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DeploymentsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DeploymentsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DeploymentsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DeploymentsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DeploymentsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DeploymentsStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DeploymentsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 DeploymentsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DeploymentsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DeploymentsStubSettings.newBuilder(clientContext)); + } + + protected Builder(DeploymentsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DeploymentsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DeploymentsStubSettings.newBuilder()); + } + + public DeploymentsStubSettings.Builder getStubSettingsBuilder() { + return ((DeploymentsStubSettings.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 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(); + } + + @Override + public DeploymentsSettings build() throws IOException { + return new DeploymentsSettings(this); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java index ad0e61905..ab429db22 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java @@ -185,8 +185,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) { * *

{@code
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
-   *   String parent =
-   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -212,9 +211,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
-   *           .setParent(
-   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -242,9 +239,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
-   *           .setParent(
-   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -273,9 +268,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
-   *           .setParent(
-   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -437,8 +430,7 @@ public final EntityType createEntityType(AgentName parent, EntityType entityType
    *
    * 
{@code
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
-   *   String parent =
-   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   EntityType entityType = EntityType.newBuilder().build();
    *   EntityType response = entityTypesClient.createEntityType(parent, entityType);
    * }
@@ -465,9 +457,7 @@ public final EntityType createEntityType(String parent, EntityType entityType) {
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
    *   CreateEntityTypeRequest request =
    *       CreateEntityTypeRequest.newBuilder()
-   *           .setParent(
-   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEntityType(EntityType.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -492,9 +482,7 @@ public final EntityType createEntityType(CreateEntityTypeRequest request) {
    * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
    *   CreateEntityTypeRequest request =
    *       CreateEntityTypeRequest.newBuilder()
-   *           .setParent(
-   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEntityType(EntityType.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java
index 1763ab315..308a7d7f9 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java
@@ -204,8 +204,7 @@ public final ListEnvironmentsPagedResponse listEnvironments(AgentName parent) {
    *
    * 
{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
-   *   String parent =
-   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (Environment element : environmentsClient.listEnvironments(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -234,9 +233,7 @@ public final ListEnvironmentsPagedResponse listEnvironments(String parent) {
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -264,9 +261,7 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -295,9 +290,7 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -428,6 +421,14 @@ public final UnaryCallable getEnvironmentCal
    * Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified
    * [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] + * *

Sample code: * *

{@code
@@ -459,12 +460,19 @@ public final OperationFuture createEnvironmentAsync(
    * Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified
    * [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] + * *

Sample code: * *

{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
-   *   String parent =
-   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   Environment environment = Environment.newBuilder().build();
    *   Environment response = environmentsClient.createEnvironmentAsync(parent, environment).get();
    * }
@@ -488,15 +496,21 @@ public final OperationFuture createEnvironmentAsync(
    * Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified
    * [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] + * *

Sample code: * *

{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(Environment.newBuilder().build())
    *           .build();
    *   Environment response = environmentsClient.createEnvironmentAsync(request).get();
@@ -516,15 +530,21 @@ public final OperationFuture createEnvironmentAsync(
    * Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified
    * [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] + * *

Sample code: * *

{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(Environment.newBuilder().build())
    *           .build();
    *   OperationFuture future =
@@ -544,15 +564,21 @@ public final OperationFuture createEnvironmentAsync(
    * Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified
    * [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] + * *

Sample code: * *

{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
-   *           .setParent(
-   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
-   *                   .toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(Environment.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -570,6 +596,14 @@ public final UnaryCallable createEnvironmen
   /**
    * Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] + * *

Sample code: * *

{@code
@@ -599,6 +633,14 @@ public final OperationFuture updateEnvironmentAsync(
   /**
    * Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] + * *

Sample code: * *

{@code
@@ -624,6 +666,14 @@ public final OperationFuture updateEnvironmentAsync(
   /**
    * Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] + * *

Sample code: * *

{@code
@@ -649,6 +699,14 @@ public final OperationFuture updateEnvironmentAsync(
   /**
    * Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] + * *

Sample code: * *

{@code
@@ -936,6 +994,15 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory(
    * Kicks off a continuous test under the specified
    * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata] - + * `response`: + * [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse] + * *

Sample code: * *

{@code
@@ -963,6 +1030,15 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory(
    * Kicks off a continuous test under the specified
    * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata] - + * `response`: + * [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse] + * *

Sample code: * *

{@code
@@ -991,6 +1067,15 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory(
    * Kicks off a continuous test under the specified
    * [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata] - + * `response`: + * [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse] + * *

Sample code: * *

{@code
@@ -1052,9 +1137,7 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(
    * 
{@code
    * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
    *   String parent =
-   *       ContinuousTestResultName.of(
-   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[CONTINUOUS_TEST_RESULT]")
-   *           .toString();
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
    *   for (ContinuousTestResult element :
    *       environmentsClient.listContinuousTestResults(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -1084,12 +1167,7 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(St
    *   ListContinuousTestResultsRequest request =
    *       ListContinuousTestResultsRequest.newBuilder()
    *           .setParent(
-   *               ContinuousTestResultName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[ENVIRONMENT]",
-   *                       "[CONTINUOUS_TEST_RESULT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -1120,12 +1198,7 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(
    *   ListContinuousTestResultsRequest request =
    *       ListContinuousTestResultsRequest.newBuilder()
    *           .setParent(
-   *               ContinuousTestResultName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[ENVIRONMENT]",
-   *                       "[CONTINUOUS_TEST_RESULT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -1156,12 +1229,7 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(
    *   ListContinuousTestResultsRequest request =
    *       ListContinuousTestResultsRequest.newBuilder()
    *           .setParent(
-   *               ContinuousTestResultName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[ENVIRONMENT]",
-   *                       "[CONTINUOUS_TEST_RESULT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -1187,6 +1255,112 @@ public final ListContinuousTestResultsPagedResponse listContinuousTestResults(
     return stub.listContinuousTestResultsCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+   *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata] - + * `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse] + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   DeployFlowRequest request =
+   *       DeployFlowRequest.newBuilder()
+   *           .setEnvironment(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setFlowVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .build();
+   *   DeployFlowResponse response = environmentsClient.deployFlowAsync(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 deployFlowAsync( + DeployFlowRequest request) { + return deployFlowOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata] - + * `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse] + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   DeployFlowRequest request =
+   *       DeployFlowRequest.newBuilder()
+   *           .setEnvironment(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setFlowVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       environmentsClient.deployFlowOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeployFlowResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deployFlowOperationCallable() { + return stub.deployFlowOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata] - + * `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse] + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   DeployFlowRequest request =
+   *       DeployFlowRequest.newBuilder()
+   *           .setEnvironment(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .setFlowVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = environmentsClient.deployFlowCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deployFlowCallable() { + return stub.deployFlowCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsSettings.java index 9e9019e70..649842fc2 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsSettings.java @@ -144,6 +144,17 @@ public UnaryCallSettings runContinuousTestS return ((EnvironmentsStubSettings) getStubSettings()).listContinuousTestResultsSettings(); } + /** Returns the object with the settings used for calls to deployFlow. */ + public UnaryCallSettings deployFlowSettings() { + return ((EnvironmentsStubSettings) getStubSettings()).deployFlowSettings(); + } + + /** Returns the object with the settings used for calls to deployFlow. */ + public OperationCallSettings + deployFlowOperationSettings() { + return ((EnvironmentsStubSettings) getStubSettings()).deployFlowOperationSettings(); + } + public static final EnvironmentsSettings create(EnvironmentsStubSettings stub) throws IOException { return new EnvironmentsSettings.Builder(stub.toBuilder()).build(); @@ -313,6 +324,17 @@ public UnaryCallSettings.Builder deleteEnvironm return getStubSettingsBuilder().listContinuousTestResultsSettings(); } + /** Returns the builder for the settings used for calls to deployFlow. */ + public UnaryCallSettings.Builder deployFlowSettings() { + return getStubSettingsBuilder().deployFlowSettings(); + } + + /** Returns the builder for the settings used for calls to deployFlow. */ + public OperationCallSettings.Builder + deployFlowOperationSettings() { + return getStubSettingsBuilder().deployFlowOperationSettings(); + } + @Override public EnvironmentsSettings build() throws IOException { return new EnvironmentsSettings(this); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java index b9ad4d457..379e905f0 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java @@ -190,8 +190,7 @@ public final ListExperimentsPagedResponse listExperiments(EnvironmentName parent *
{@code
    * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) {
    *   String parent =
-   *       ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
-   *           .toString();
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
    *   for (Experiment element : experimentsClient.listExperiments(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -220,8 +219,7 @@ public final ListExperimentsPagedResponse listExperiments(String parent) {
    *   ListExperimentsRequest request =
    *       ListExperimentsRequest.newBuilder()
    *           .setParent(
-   *               ExperimentName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -251,8 +249,7 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest
    *   ListExperimentsRequest request =
    *       ListExperimentsRequest.newBuilder()
    *           .setParent(
-   *               ExperimentName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -283,8 +280,7 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest
    *   ListExperimentsRequest request =
    *       ListExperimentsRequest.newBuilder()
    *           .setParent(
-   *               ExperimentName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -455,8 +451,7 @@ public final Experiment createExperiment(EnvironmentName parent, Experiment expe
    * 
{@code
    * try (ExperimentsClient experimentsClient = ExperimentsClient.create()) {
    *   String parent =
-   *       ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
-   *           .toString();
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]").toString();
    *   Experiment experiment = Experiment.newBuilder().build();
    *   Experiment response = experimentsClient.createExperiment(parent, experiment);
    * }
@@ -487,8 +482,7 @@ public final Experiment createExperiment(String parent, Experiment experiment) {
    *   CreateExperimentRequest request =
    *       CreateExperimentRequest.newBuilder()
    *           .setParent(
-   *               ExperimentName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setExperiment(Experiment.newBuilder().build())
    *           .build();
@@ -515,8 +509,7 @@ public final Experiment createExperiment(CreateExperimentRequest request) {
    *   CreateExperimentRequest request =
    *       CreateExperimentRequest.newBuilder()
    *           .setParent(
-   *               ExperimentName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]")
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
    *           .setExperiment(Experiment.newBuilder().build())
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java
index 2fc52fe6c..e4e20ba6d 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java
@@ -205,7 +205,7 @@ public final Flow createFlow(AgentName parent, Flow flow) {
    *
    * 
{@code
    * try (FlowsClient flowsClient = FlowsClient.create()) {
-   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   Flow flow = Flow.newBuilder().build();
    *   Flow response = flowsClient.createFlow(parent, flow);
    * }
@@ -235,7 +235,7 @@ public final Flow createFlow(String parent, Flow flow) {
    * try (FlowsClient flowsClient = FlowsClient.create()) {
    *   CreateFlowRequest request =
    *       CreateFlowRequest.newBuilder()
-   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setFlow(Flow.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -263,7 +263,7 @@ public final Flow createFlow(CreateFlowRequest request) {
    * try (FlowsClient flowsClient = FlowsClient.create()) {
    *   CreateFlowRequest request =
    *       CreateFlowRequest.newBuilder()
-   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setFlow(Flow.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -402,7 +402,7 @@ public final ListFlowsPagedResponse listFlows(AgentName parent) {
    *
    * 
{@code
    * try (FlowsClient flowsClient = FlowsClient.create()) {
-   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (Flow element : flowsClient.listFlows(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -428,7 +428,7 @@ public final ListFlowsPagedResponse listFlows(String parent) {
    * try (FlowsClient flowsClient = FlowsClient.create()) {
    *   ListFlowsRequest request =
    *       ListFlowsRequest.newBuilder()
-   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -456,7 +456,7 @@ public final ListFlowsPagedResponse listFlows(ListFlowsRequest request) {
    * try (FlowsClient flowsClient = FlowsClient.create()) {
    *   ListFlowsRequest request =
    *       ListFlowsRequest.newBuilder()
-   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -483,7 +483,7 @@ public final UnaryCallable listFlowsPa
    * try (FlowsClient flowsClient = FlowsClient.create()) {
    *   ListFlowsRequest request =
    *       ListFlowsRequest.newBuilder()
-   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -686,6 +686,15 @@ public final UnaryCallable updateFlowCallable() {
   /**
    * Trains the specified flow. Note that only the flow in 'draft' environment is trained.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -712,6 +721,15 @@ public final OperationFuture trainFlowAsync(FlowName name) { /** * Trains the specified flow. Note that only the flow in 'draft' environment is trained. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -737,6 +755,15 @@ public final OperationFuture trainFlowAsync(String name) { /** * Trains the specified flow. Note that only the flow in 'draft' environment is trained. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -763,6 +790,15 @@ public final OperationFuture trainFlowAsync(TrainFlowRequest requ /** * Trains the specified flow. Note that only the flow in 'draft' environment is trained. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -789,6 +825,15 @@ public final OperationCallable trainFlowOperati /** * Trains the specified flow. Note that only the flow in 'draft' environment is trained. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -974,6 +1019,14 @@ public final FlowValidationResult getFlowValidationResult( /** * Imports the specified flow to the specified agent from a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse] + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -983,7 +1036,7 @@ public final FlowValidationResult getFlowValidationResult( * try (FlowsClient flowsClient = FlowsClient.create()) { * ImportFlowRequest request = * ImportFlowRequest.newBuilder() - * .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) * .build(); * ImportFlowResponse response = flowsClient.importFlowAsync(request).get(); * } @@ -1001,6 +1054,14 @@ public final OperationFuture importFlowAsync( /** * Imports the specified flow to the specified agent from a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse] + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -1010,7 +1071,7 @@ public final OperationFuture importFlowAsync( * try (FlowsClient flowsClient = FlowsClient.create()) { * ImportFlowRequest request = * ImportFlowRequest.newBuilder() - * .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) * .build(); * OperationFuture future = * flowsClient.importFlowOperationCallable().futureCall(request); @@ -1028,6 +1089,14 @@ public final OperationFuture importFlowAsync( /** * Imports the specified flow to the specified agent from a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse] + * *

Note: You should always train a flow prior to sending it queries. See the [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). * @@ -1037,7 +1106,7 @@ public final OperationFuture importFlowAsync( * try (FlowsClient flowsClient = FlowsClient.create()) { * ImportFlowRequest request = * ImportFlowRequest.newBuilder() - * .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) * .build(); * ApiFuture future = flowsClient.importFlowCallable().futureCall(request); * // Do something. @@ -1053,6 +1122,14 @@ public final UnaryCallable importFlowCallable() { /** * Exports the specified flow to a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse] + * *

Note that resources (e.g. intents, entities, webhooks) that the flow references will also be * exported. * @@ -1082,6 +1159,14 @@ public final OperationFuture exportFlowAsync( /** * Exports the specified flow to a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse] + * *

Note that resources (e.g. intents, entities, webhooks) that the flow references will also be * exported. * @@ -1111,6 +1196,14 @@ public final OperationFuture exportFlowAsync( /** * Exports the specified flow to a binary file. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse] + * *

Note that resources (e.g. intents, entities, webhooks) that the flow references will also be * exported. * diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java index b8d63bd78..ebb3eb03d 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java @@ -181,7 +181,7 @@ public final ListIntentsPagedResponse listIntents(AgentName parent) { * *

{@code
    * try (IntentsClient intentsClient = IntentsClient.create()) {
-   *   String parent = IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (Intent element : intentsClient.listIntents(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -207,7 +207,7 @@ public final ListIntentsPagedResponse listIntents(String parent) {
    * try (IntentsClient intentsClient = IntentsClient.create()) {
    *   ListIntentsRequest request =
    *       ListIntentsRequest.newBuilder()
-   *           .setParent(IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setIntentView(IntentView.forNumber(0))
    *           .setPageSize(883849137)
@@ -236,7 +236,7 @@ public final ListIntentsPagedResponse listIntents(ListIntentsRequest request) {
    * try (IntentsClient intentsClient = IntentsClient.create()) {
    *   ListIntentsRequest request =
    *       ListIntentsRequest.newBuilder()
-   *           .setParent(IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setIntentView(IntentView.forNumber(0))
    *           .setPageSize(883849137)
@@ -265,7 +265,7 @@ public final ListIntentsPagedResponse listIntents(ListIntentsRequest request) {
    * try (IntentsClient intentsClient = IntentsClient.create()) {
    *   ListIntentsRequest request =
    *       ListIntentsRequest.newBuilder()
-   *           .setParent(IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setIntentView(IntentView.forNumber(0))
    *           .setPageSize(883849137)
@@ -424,7 +424,7 @@ public final Intent createIntent(AgentName parent, Intent intent) {
    *
    * 
{@code
    * try (IntentsClient intentsClient = IntentsClient.create()) {
-   *   String parent = IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   Intent intent = Intent.newBuilder().build();
    *   Intent response = intentsClient.createIntent(parent, intent);
    * }
@@ -454,7 +454,7 @@ public final Intent createIntent(String parent, Intent intent) {
    * try (IntentsClient intentsClient = IntentsClient.create()) {
    *   CreateIntentRequest request =
    *       CreateIntentRequest.newBuilder()
-   *           .setParent(IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setIntent(Intent.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -482,7 +482,7 @@ public final Intent createIntent(CreateIntentRequest request) {
    * try (IntentsClient intentsClient = IntentsClient.create()) {
    *   CreateIntentRequest request =
    *       CreateIntentRequest.newBuilder()
-   *           .setParent(IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setIntent(Intent.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java
index ff35bee93..d7a502179 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java
@@ -179,8 +179,7 @@ public final ListPagesPagedResponse listPages(FlowName parent) {
    *
    * 
{@code
    * try (PagesClient pagesClient = PagesClient.create()) {
-   *   String parent =
-   *       PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   for (Page element : pagesClient.listPages(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -206,8 +205,7 @@ public final ListPagesPagedResponse listPages(String parent) {
    * try (PagesClient pagesClient = PagesClient.create()) {
    *   ListPagesRequest request =
    *       ListPagesRequest.newBuilder()
-   *           .setParent(
-   *               PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -235,8 +233,7 @@ public final ListPagesPagedResponse listPages(ListPagesRequest request) {
    * try (PagesClient pagesClient = PagesClient.create()) {
    *   ListPagesRequest request =
    *       ListPagesRequest.newBuilder()
-   *           .setParent(
-   *               PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -263,8 +260,7 @@ public final UnaryCallable listPagesPa
    * try (PagesClient pagesClient = PagesClient.create()) {
    *   ListPagesRequest request =
    *       ListPagesRequest.newBuilder()
-   *           .setParent(
-   *               PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setLanguageCode("languageCode-2092349083")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -421,8 +417,7 @@ public final Page createPage(FlowName parent, Page page) {
    *
    * 
{@code
    * try (PagesClient pagesClient = PagesClient.create()) {
-   *   String parent =
-   *       PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   Page page = Page.newBuilder().build();
    *   Page response = pagesClient.createPage(parent, page);
    * }
@@ -449,8 +444,7 @@ public final Page createPage(String parent, Page page) {
    * try (PagesClient pagesClient = PagesClient.create()) {
    *   CreatePageRequest request =
    *       CreatePageRequest.newBuilder()
-   *           .setParent(
-   *               PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPage(Page.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -475,8 +469,7 @@ public final Page createPage(CreatePageRequest request) {
    * try (PagesClient pagesClient = PagesClient.create()) {
    *   CreatePageRequest request =
    *       CreatePageRequest.newBuilder()
-   *           .setParent(
-   *               PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]").toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPage(Page.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java
index f8908af76..7212d8d42 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java
@@ -197,8 +197,7 @@ public final SecuritySettings createSecuritySettings(
    * 
{@code
    * try (SecuritySettingsServiceClient securitySettingsServiceClient =
    *     SecuritySettingsServiceClient.create()) {
-   *   String parent =
-   *       SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   SecuritySettings securitySettings = SecuritySettings.newBuilder().build();
    *   SecuritySettings response =
    *       securitySettingsServiceClient.createSecuritySettings(parent, securitySettings);
@@ -232,9 +231,7 @@ public final SecuritySettings createSecuritySettings(
    *     SecuritySettingsServiceClient.create()) {
    *   CreateSecuritySettingsRequest request =
    *       CreateSecuritySettingsRequest.newBuilder()
-   *           .setParent(
-   *               SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setSecuritySettings(SecuritySettings.newBuilder().build())
    *           .build();
    *   SecuritySettings response = securitySettingsServiceClient.createSecuritySettings(request);
@@ -259,9 +256,7 @@ public final SecuritySettings createSecuritySettings(CreateSecuritySettingsReque
    *     SecuritySettingsServiceClient.create()) {
    *   CreateSecuritySettingsRequest request =
    *       CreateSecuritySettingsRequest.newBuilder()
-   *           .setParent(
-   *               SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setSecuritySettings(SecuritySettings.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -510,8 +505,7 @@ public final ListSecuritySettingsPagedResponse listSecuritySettings(LocationName
    * 
{@code
    * try (SecuritySettingsServiceClient securitySettingsServiceClient =
    *     SecuritySettingsServiceClient.create()) {
-   *   String parent =
-   *       SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (SecuritySettings element :
    *       securitySettingsServiceClient.listSecuritySettings(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -540,9 +534,7 @@ public final ListSecuritySettingsPagedResponse listSecuritySettings(String paren
    *     SecuritySettingsServiceClient.create()) {
    *   ListSecuritySettingsRequest request =
    *       ListSecuritySettingsRequest.newBuilder()
-   *           .setParent(
-   *               SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -572,9 +564,7 @@ public final ListSecuritySettingsPagedResponse listSecuritySettings(
    *     SecuritySettingsServiceClient.create()) {
    *   ListSecuritySettingsRequest request =
    *       ListSecuritySettingsRequest.newBuilder()
-   *           .setParent(
-   *               SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -603,9 +593,7 @@ public final ListSecuritySettingsPagedResponse listSecuritySettings(
    *     SecuritySettingsServiceClient.create()) {
    *   ListSecuritySettingsRequest request =
    *       ListSecuritySettingsRequest.newBuilder()
-   *           .setParent(
-   *               SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java
index b44f4585f..7c916cbb9 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java
@@ -197,8 +197,8 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(SessionN
    * 
{@code
    * try (SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.create()) {
    *   String parent =
-   *       SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *       SessionName.ofProjectLocationAgentSessionName(
+   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *           .toString();
    *   for (SessionEntityType element :
    *       sessionEntityTypesClient.listSessionEntityTypes(parent).iterateAll()) {
@@ -231,8 +231,8 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(String p
    *   ListSessionEntityTypesRequest request =
    *       ListSessionEntityTypesRequest.newBuilder()
    *           .setParent(
-   *               SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *               SessionName.ofProjectLocationAgentSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -263,8 +263,8 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(
    *   ListSessionEntityTypesRequest request =
    *       ListSessionEntityTypesRequest.newBuilder()
    *           .setParent(
-   *               SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *               SessionName.ofProjectLocationAgentSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -294,8 +294,8 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(
    *   ListSessionEntityTypesRequest request =
    *       ListSessionEntityTypesRequest.newBuilder()
    *           .setParent(
-   *               SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *               SessionName.ofProjectLocationAgentSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -479,8 +479,8 @@ public final SessionEntityType createSessionEntityType(
    * 
{@code
    * try (SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.create()) {
    *   String parent =
-   *       SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *       SessionName.ofProjectLocationAgentSessionName(
+   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *           .toString();
    *   SessionEntityType sessionEntityType = SessionEntityType.newBuilder().build();
    *   SessionEntityType response =
@@ -517,8 +517,8 @@ public final SessionEntityType createSessionEntityType(
    *   CreateSessionEntityTypeRequest request =
    *       CreateSessionEntityTypeRequest.newBuilder()
    *           .setParent(
-   *               SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *               SessionName.ofProjectLocationAgentSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *                   .toString())
    *           .setSessionEntityType(SessionEntityType.newBuilder().build())
    *           .build();
@@ -544,8 +544,8 @@ public final SessionEntityType createSessionEntityType(CreateSessionEntityTypeRe
    *   CreateSessionEntityTypeRequest request =
    *       CreateSessionEntityTypeRequest.newBuilder()
    *           .setParent(
-   *               SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]")
+   *               SessionName.ofProjectLocationAgentSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
    *                   .toString())
    *           .setSessionEntityType(SessionEntityType.newBuilder().build())
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java
index 67ca7b2d7..650b93010 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java
@@ -199,8 +199,7 @@ public final ListTestCasesPagedResponse listTestCases(AgentName parent) {
    *
    * 
{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
-   *   String parent =
-   *       TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (TestCase element : testCasesClient.listTestCases(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -226,8 +225,7 @@ public final ListTestCasesPagedResponse listTestCases(String parent) {
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ListTestCasesRequest request =
    *       ListTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -254,8 +252,7 @@ public final ListTestCasesPagedResponse listTestCases(ListTestCasesRequest reque
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ListTestCasesRequest request =
    *       ListTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -282,8 +279,7 @@ public final ListTestCasesPagedResponse listTestCases(ListTestCasesRequest reque
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ListTestCasesRequest request =
    *       ListTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -339,8 +335,7 @@ public final void batchDeleteTestCases(AgentName parent) {
    *
    * 
{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
-   *   String parent =
-   *       TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   testCasesClient.batchDeleteTestCases(parent);
    * }
    * }
@@ -365,8 +360,7 @@ public final void batchDeleteTestCases(String parent) { * try (TestCasesClient testCasesClient = TestCasesClient.create()) { * BatchDeleteTestCasesRequest request = * BatchDeleteTestCasesRequest.newBuilder() - * .setParent( - * TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) * .addAllNames(new ArrayList()) * .build(); * testCasesClient.batchDeleteTestCases(request); @@ -390,8 +384,7 @@ public final void batchDeleteTestCases(BatchDeleteTestCasesRequest request) { * try (TestCasesClient testCasesClient = TestCasesClient.create()) { * BatchDeleteTestCasesRequest request = * BatchDeleteTestCasesRequest.newBuilder() - * .setParent( - * TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) * .addAllNames(new ArrayList()) * .build(); * ApiFuture future = testCasesClient.batchDeleteTestCasesCallable().futureCall(request); @@ -534,8 +527,7 @@ public final TestCase createTestCase(AgentName parent, TestCase testCase) { * *
{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
-   *   String parent =
-   *       TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   TestCase testCase = TestCase.newBuilder().build();
    *   TestCase response = testCasesClient.createTestCase(parent, testCase);
    * }
@@ -562,8 +554,7 @@ public final TestCase createTestCase(String parent, TestCase testCase) {
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   CreateTestCaseRequest request =
    *       CreateTestCaseRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setTestCase(TestCase.newBuilder().build())
    *           .build();
    *   TestCase response = testCasesClient.createTestCase(request);
@@ -587,8 +578,7 @@ public final TestCase createTestCase(CreateTestCaseRequest request) {
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   CreateTestCaseRequest request =
    *       CreateTestCaseRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setTestCase(TestCase.newBuilder().build())
    *           .build();
    *   ApiFuture future = testCasesClient.createTestCaseCallable().futureCall(request);
@@ -677,7 +667,9 @@ public final UnaryCallable updateTestCaseCallab
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Kicks off a test case run. This method is a [long-running
+   * Kicks off a test case run.
+   *
+   * 

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -710,7 +702,9 @@ public final OperationFuture runTestCa // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Kicks off a test case run. This method is a [long-running + * Kicks off a test case run. + * + *

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -743,7 +737,9 @@ public final OperationFuture runTestCa // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Kicks off a test case run. This method is a [long-running + * Kicks off a test case run. + * + *

This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The * returned `Operation` type has the following method-specific fields: * @@ -776,14 +772,22 @@ public final UnaryCallable runTestCaseCallable() /** * Kicks off a batch run of test cases. * + *

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata] - + * `response`: + * [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   BatchRunTestCasesRequest request =
    *       BatchRunTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(
    *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
@@ -805,14 +809,22 @@ public final UnaryCallable runTestCaseCallable()
   /**
    * Kicks off a batch run of test cases.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata] - + * `response`: + * [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   BatchRunTestCasesRequest request =
    *       BatchRunTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(
    *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
@@ -835,14 +847,22 @@ public final UnaryCallable runTestCaseCallable()
   /**
    * Kicks off a batch run of test cases.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata] - + * `response`: + * [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   BatchRunTestCasesRequest request =
    *       BatchRunTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setEnvironment(
    *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
    *                   .toString())
@@ -911,14 +931,22 @@ public final CalculateCoverageResponse calculateCoverage(CalculateCoverageReques
    * cases and won't overwite any existing ones. The provided ID in the imported test case is
    * neglected.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata] - + * `response`: + * [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ImportTestCasesRequest request =
    *       ImportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .build();
    *   ImportTestCasesResponse response = testCasesClient.importTestCasesAsync(request).get();
    * }
@@ -938,14 +966,22 @@ public final CalculateCoverageResponse calculateCoverage(CalculateCoverageReques
    * cases and won't overwite any existing ones. The provided ID in the imported test case is
    * neglected.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata] - + * `response`: + * [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ImportTestCasesRequest request =
    *       ImportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .build();
    *   OperationFuture future =
    *       testCasesClient.importTestCasesOperationCallable().futureCall(request);
@@ -966,14 +1002,22 @@ public final CalculateCoverageResponse calculateCoverage(CalculateCoverageReques
    * cases and won't overwite any existing ones. The provided ID in the imported test case is
    * neglected.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata] - + * `response`: + * [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ImportTestCasesRequest request =
    *       ImportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .build();
    *   ApiFuture future = testCasesClient.importTestCasesCallable().futureCall(request);
    *   // Do something.
@@ -990,14 +1034,22 @@ public final UnaryCallable importTestCasesCal
    * Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be
    * applied to export a subset of test cases.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata] - + * `response`: + * [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ExportTestCasesRequest request =
    *       ExportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setFilter("filter-1274492040")
    *           .build();
    *   ExportTestCasesResponse response = testCasesClient.exportTestCasesAsync(request).get();
@@ -1017,14 +1069,22 @@ public final UnaryCallable importTestCasesCal
    * Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be
    * applied to export a subset of test cases.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata] - + * `response`: + * [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ExportTestCasesRequest request =
    *       ExportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setFilter("filter-1274492040")
    *           .build();
    *   OperationFuture future =
@@ -1045,14 +1105,22 @@ public final UnaryCallable importTestCasesCal
    * Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be
    * applied to export a subset of test cases.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata] - + * `response`: + * [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse] + * *

Sample code: * *

{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   ExportTestCasesRequest request =
    *       ExportTestCasesRequest.newBuilder()
-   *           .setParent(
-   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setFilter("filter-1274492040")
    *           .build();
    *   ApiFuture future = testCasesClient.exportTestCasesCallable().futureCall(request);
@@ -1103,8 +1171,7 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(TestCaseName p
    * 
{@code
    * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
    *   String parent =
-   *       TestCaseResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
-   *           .toString();
+   *       TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString();
    *   for (TestCaseResult element : testCasesClient.listTestCaseResults(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -1134,9 +1201,7 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(String parent)
    *   ListTestCaseResultsRequest request =
    *       ListTestCaseResultsRequest.newBuilder()
    *           .setParent(
-   *               TestCaseResultName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
-   *                   .toString())
+   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setFilter("filter-1274492040")
@@ -1166,9 +1231,7 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(
    *   ListTestCaseResultsRequest request =
    *       ListTestCaseResultsRequest.newBuilder()
    *           .setParent(
-   *               TestCaseResultName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
-   *                   .toString())
+   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setFilter("filter-1274492040")
@@ -1198,9 +1261,7 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(
    *   ListTestCaseResultsRequest request =
    *       ListTestCaseResultsRequest.newBuilder()
    *           .setParent(
-   *               TestCaseResultName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
-   *                   .toString())
+   *               TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setFilter("filter-1274492040")
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java
index e0f200da2..92c539263 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java
@@ -195,10 +195,7 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(Fl
    * 
{@code
    * try (TransitionRouteGroupsClient transitionRouteGroupsClient =
    *     TransitionRouteGroupsClient.create()) {
-   *   String parent =
-   *       TransitionRouteGroupName.of(
-   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]")
-   *           .toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   for (TransitionRouteGroup element :
    *       transitionRouteGroupsClient.listTransitionRouteGroups(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -228,14 +225,7 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(St
    *     TransitionRouteGroupsClient.create()) {
    *   ListTransitionRouteGroupsRequest request =
    *       ListTransitionRouteGroupsRequest.newBuilder()
-   *           .setParent(
-   *               TransitionRouteGroupName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[FLOW]",
-   *                       "[TRANSITION_ROUTE_GROUP]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -266,14 +256,7 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(
    *     TransitionRouteGroupsClient.create()) {
    *   ListTransitionRouteGroupsRequest request =
    *       ListTransitionRouteGroupsRequest.newBuilder()
-   *           .setParent(
-   *               TransitionRouteGroupName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[FLOW]",
-   *                       "[TRANSITION_ROUTE_GROUP]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -304,14 +287,7 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(
    *     TransitionRouteGroupsClient.create()) {
    *   ListTransitionRouteGroupsRequest request =
    *       ListTransitionRouteGroupsRequest.newBuilder()
-   *           .setParent(
-   *               TransitionRouteGroupName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[FLOW]",
-   *                       "[TRANSITION_ROUTE_GROUP]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .setLanguageCode("languageCode-2092349083")
@@ -516,10 +492,7 @@ public final TransitionRouteGroup createTransitionRouteGroup(
    * 
{@code
    * try (TransitionRouteGroupsClient transitionRouteGroupsClient =
    *     TransitionRouteGroupsClient.create()) {
-   *   String parent =
-   *       TransitionRouteGroupName.of(
-   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]")
-   *           .toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   TransitionRouteGroup transitionRouteGroup = TransitionRouteGroup.newBuilder().build();
    *   TransitionRouteGroup response =
    *       transitionRouteGroupsClient.createTransitionRouteGroup(parent, transitionRouteGroup);
@@ -558,14 +531,7 @@ public final TransitionRouteGroup createTransitionRouteGroup(
    *     TransitionRouteGroupsClient.create()) {
    *   CreateTransitionRouteGroupRequest request =
    *       CreateTransitionRouteGroupRequest.newBuilder()
-   *           .setParent(
-   *               TransitionRouteGroupName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[FLOW]",
-   *                       "[TRANSITION_ROUTE_GROUP]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setTransitionRouteGroup(TransitionRouteGroup.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
@@ -597,14 +563,7 @@ public final TransitionRouteGroup createTransitionRouteGroup(
    *     TransitionRouteGroupsClient.create()) {
    *   CreateTransitionRouteGroupRequest request =
    *       CreateTransitionRouteGroupRequest.newBuilder()
-   *           .setParent(
-   *               TransitionRouteGroupName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[AGENT]",
-   *                       "[FLOW]",
-   *                       "[TRANSITION_ROUTE_GROUP]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setTransitionRouteGroup(TransitionRouteGroup.newBuilder().build())
    *           .setLanguageCode("languageCode-2092349083")
    *           .build();
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java
index 6de0cdcd7..9b82260b5 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java
@@ -202,8 +202,7 @@ public final ListVersionsPagedResponse listVersions(FlowName parent) {
    *
    * 
{@code
    * try (VersionsClient versionsClient = VersionsClient.create()) {
-   *   String parent =
-   *       VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]").toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   for (Version element : versionsClient.listVersions(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -231,9 +230,7 @@ public final ListVersionsPagedResponse listVersions(String parent) {
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   ListVersionsRequest request =
    *       ListVersionsRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -261,9 +258,7 @@ public final ListVersionsPagedResponse listVersions(ListVersionsRequest request)
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   ListVersionsRequest request =
    *       ListVersionsRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -291,9 +286,7 @@ public final ListVersionsPagedResponse listVersions(ListVersionsRequest request)
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   ListVersionsRequest request =
    *       ListVersionsRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -419,6 +412,14 @@ public final UnaryCallable getVersionCallable() {
    * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified
    * [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata] + * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version] + * *

Sample code: * *

{@code
@@ -450,12 +451,19 @@ public final OperationFuture createVers
    * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified
    * [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata] + * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version] + * *

Sample code: * *

{@code
    * try (VersionsClient versionsClient = VersionsClient.create()) {
-   *   String parent =
-   *       VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]").toString();
+   *   String parent = FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString();
    *   Version version = Version.newBuilder().build();
    *   Version response = versionsClient.createVersionAsync(parent, version).get();
    * }
@@ -479,15 +487,21 @@ public final OperationFuture createVers
    * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified
    * [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata] + * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version] + * *

Sample code: * *

{@code
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   CreateVersionRequest request =
    *       CreateVersionRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setVersion(Version.newBuilder().build())
    *           .build();
    *   Version response = versionsClient.createVersionAsync(request).get();
@@ -507,15 +521,21 @@ public final OperationFuture createVers
    * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified
    * [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata] + * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version] + * *

Sample code: * *

{@code
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   CreateVersionRequest request =
    *       CreateVersionRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setVersion(Version.newBuilder().build())
    *           .build();
    *   OperationFuture future =
@@ -535,15 +555,21 @@ public final OperationFuture createVers
    * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified
    * [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: + * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata] + * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version] + * *

Sample code: * *

{@code
    * try (VersionsClient versionsClient = VersionsClient.create()) {
    *   CreateVersionRequest request =
    *       CreateVersionRequest.newBuilder()
-   *           .setParent(
-   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
-   *                   .toString())
+   *           .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString())
    *           .setVersion(Version.newBuilder().build())
    *           .build();
    *   ApiFuture future = versionsClient.createVersionCallable().futureCall(request);
@@ -730,6 +756,15 @@ public final UnaryCallable deleteVersionCallable()
   /**
    * Loads resources in the specified version to the draft flow.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Sample code: * *

{@code
@@ -755,6 +790,15 @@ public final OperationFuture loadVersionAsync(VersionName name) {
   /**
    * Loads resources in the specified version to the draft flow.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Sample code: * *

{@code
@@ -779,6 +823,15 @@ public final OperationFuture loadVersionAsync(String name) {
   /**
    * Loads resources in the specified version to the draft flow.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Sample code: * *

{@code
@@ -805,6 +858,15 @@ public final OperationFuture loadVersionAsync(LoadVersionRequest
   /**
    * Loads resources in the specified version to the draft flow.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Sample code: * *

{@code
@@ -831,6 +893,15 @@ public final OperationCallable loadVersionOpe
   /**
    * Loads resources in the specified version to the draft flow.
    *
+   * 

This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The + * returned `Operation` type has the following method-specific fields: + * + *

- `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + * *

Sample code: * *

{@code
@@ -852,6 +923,119 @@ public final UnaryCallable loadVersionCallable()
     return stub.loadVersionCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Compares the specified base version with target version.
+   *
+   * 

Sample code: + * + *

{@code
+   * try (VersionsClient versionsClient = VersionsClient.create()) {
+   *   VersionName baseVersion =
+   *       VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
+   *   CompareVersionsResponse response = versionsClient.compareVersions(baseVersion);
+   * }
+   * }
+ * + * @param baseVersion Required. Name of the base flow version to compare with the target version. + * Use version ID `0` to indicate the draft version of the specified flow. + *

Format: `projects/<Project ID>/locations/<Location ID>/agents/ <Agent + * ID>/flows/<Flow ID>/versions/<Version ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompareVersionsResponse compareVersions(VersionName baseVersion) { + CompareVersionsRequest request = + CompareVersionsRequest.newBuilder() + .setBaseVersion(baseVersion == null ? null : baseVersion.toString()) + .build(); + return compareVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Compares the specified base version with target version. + * + *

Sample code: + * + *

{@code
+   * try (VersionsClient versionsClient = VersionsClient.create()) {
+   *   String baseVersion =
+   *       VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]").toString();
+   *   CompareVersionsResponse response = versionsClient.compareVersions(baseVersion);
+   * }
+   * }
+ * + * @param baseVersion Required. Name of the base flow version to compare with the target version. + * Use version ID `0` to indicate the draft version of the specified flow. + *

Format: `projects/<Project ID>/locations/<Location ID>/agents/ <Agent + * ID>/flows/<Flow ID>/versions/<Version ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompareVersionsResponse compareVersions(String baseVersion) { + CompareVersionsRequest request = + CompareVersionsRequest.newBuilder().setBaseVersion(baseVersion).build(); + return compareVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Compares the specified base version with target version. + * + *

Sample code: + * + *

{@code
+   * try (VersionsClient versionsClient = VersionsClient.create()) {
+   *   CompareVersionsRequest request =
+   *       CompareVersionsRequest.newBuilder()
+   *           .setBaseVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .setTargetVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .build();
+   *   CompareVersionsResponse response = versionsClient.compareVersions(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 CompareVersionsResponse compareVersions(CompareVersionsRequest request) { + return compareVersionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Compares the specified base version with target version. + * + *

Sample code: + * + *

{@code
+   * try (VersionsClient versionsClient = VersionsClient.create()) {
+   *   CompareVersionsRequest request =
+   *       CompareVersionsRequest.newBuilder()
+   *           .setBaseVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .setTargetVersion(
+   *               VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]")
+   *                   .toString())
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .build();
+   *   ApiFuture future =
+   *       versionsClient.compareVersionsCallable().futureCall(request);
+   *   // Do something.
+   *   CompareVersionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + compareVersionsCallable() { + return stub.compareVersionsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsSettings.java index 1972f9e65..387b60997 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsSettings.java @@ -115,6 +115,12 @@ public OperationCallSettings loadVersionOpera return ((VersionsStubSettings) getStubSettings()).loadVersionOperationSettings(); } + /** Returns the object with the settings used for calls to compareVersions. */ + public UnaryCallSettings + compareVersionsSettings() { + return ((VersionsStubSettings) getStubSettings()).compareVersionsSettings(); + } + public static final VersionsSettings create(VersionsStubSettings stub) throws IOException { return new VersionsSettings.Builder(stub.toBuilder()).build(); } @@ -256,6 +262,12 @@ public UnaryCallSettings.Builder loadVersionSetti return getStubSettingsBuilder().loadVersionOperationSettings(); } + /** Returns the builder for the settings used for calls to compareVersions. */ + public UnaryCallSettings.Builder + compareVersionsSettings() { + return getStubSettingsBuilder().compareVersionsSettings(); + } + @Override public VersionsSettings build() throws IOException { return new VersionsSettings(this); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java index 9c36e36e0..fc463713e 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java @@ -182,7 +182,7 @@ public final ListWebhooksPagedResponse listWebhooks(AgentName parent) { * *
{@code
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
-   *   String parent = WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   for (Webhook element : webhooksClient.listWebhooks(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -208,8 +208,7 @@ public final ListWebhooksPagedResponse listWebhooks(String parent) {
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
    *   ListWebhooksRequest request =
    *       ListWebhooksRequest.newBuilder()
-   *           .setParent(
-   *               WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -236,8 +235,7 @@ public final ListWebhooksPagedResponse listWebhooks(ListWebhooksRequest request)
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
    *   ListWebhooksRequest request =
    *       ListWebhooksRequest.newBuilder()
-   *           .setParent(
-   *               WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -264,8 +262,7 @@ public final ListWebhooksPagedResponse listWebhooks(ListWebhooksRequest request)
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
    *   ListWebhooksRequest request =
    *       ListWebhooksRequest.newBuilder()
-   *           .setParent(
-   *               WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -414,7 +411,7 @@ public final Webhook createWebhook(AgentName parent, Webhook webhook) {
    *
    * 
{@code
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
-   *   String parent = WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString();
+   *   String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
    *   Webhook webhook = Webhook.newBuilder().build();
    *   Webhook response = webhooksClient.createWebhook(parent, webhook);
    * }
@@ -441,8 +438,7 @@ public final Webhook createWebhook(String parent, Webhook webhook) {
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
    *   CreateWebhookRequest request =
    *       CreateWebhookRequest.newBuilder()
-   *           .setParent(
-   *               WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setWebhook(Webhook.newBuilder().build())
    *           .build();
    *   Webhook response = webhooksClient.createWebhook(request);
@@ -466,8 +462,7 @@ public final Webhook createWebhook(CreateWebhookRequest request) {
    * try (WebhooksClient webhooksClient = WebhooksClient.create()) {
    *   CreateWebhookRequest request =
    *       CreateWebhookRequest.newBuilder()
-   *           .setParent(
-   *               WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]").toString())
+   *           .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
    *           .setWebhook(Webhook.newBuilder().build())
    *           .build();
    *   ApiFuture future = webhooksClient.createWebhookCallable().futureCall(request);
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json
index ced8bd626..dc30abd06 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json
@@ -41,6 +41,36 @@
         }
       }
     },
+    "Changelogs": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "ChangelogsClient",
+          "rpcs": {
+            "GetChangelog": {
+              "methods": ["getChangelog", "getChangelog", "getChangelog", "getChangelogCallable"]
+            },
+            "ListChangelogs": {
+              "methods": ["listChangelogs", "listChangelogs", "listChangelogs", "listChangelogsPagedCallable", "listChangelogsCallable"]
+            }
+          }
+        }
+      }
+    },
+    "Deployments": {
+      "clients": {
+        "grpc": {
+          "libraryClient": "DeploymentsClient",
+          "rpcs": {
+            "GetDeployment": {
+              "methods": ["getDeployment", "getDeployment", "getDeployment", "getDeploymentCallable"]
+            },
+            "ListDeployments": {
+              "methods": ["listDeployments", "listDeployments", "listDeployments", "listDeploymentsPagedCallable", "listDeploymentsCallable"]
+            }
+          }
+        }
+      }
+    },
     "EntityTypes": {
       "clients": {
         "grpc": {
@@ -76,6 +106,9 @@
             "DeleteEnvironment": {
               "methods": ["deleteEnvironment", "deleteEnvironment", "deleteEnvironment", "deleteEnvironmentCallable"]
             },
+            "DeployFlow": {
+              "methods": ["deployFlowAsync", "deployFlowOperationCallable", "deployFlowCallable"]
+            },
             "GetEnvironment": {
               "methods": ["getEnvironment", "getEnvironment", "getEnvironment", "getEnvironmentCallable"]
             },
@@ -358,6 +391,9 @@
         "grpc": {
           "libraryClient": "VersionsClient",
           "rpcs": {
+            "CompareVersions": {
+              "methods": ["compareVersions", "compareVersions", "compareVersions", "compareVersionsCallable"]
+            },
             "CreateVersion": {
               "methods": ["createVersionAsync", "createVersionAsync", "createVersionAsync", "createVersionOperationCallable", "createVersionCallable"]
             },
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/package-info.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/package-info.java
index bf6e5890c..fd53dd24a 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/package-info.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/package-info.java
@@ -32,6 +32,35 @@
  * }
  * }
* + *

======================= ChangelogsClient ======================= + * + *

Service Description: Service for managing + * [Changelogs][google.cloud.dialogflow.cx.v3beta1.Changelog]. + * + *

Sample for ChangelogsClient: + * + *

{@code
+ * try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
+ *   ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]");
+ *   Changelog response = changelogsClient.getChangelog(name);
+ * }
+ * }
+ * + *

======================= DeploymentsClient ======================= + * + *

Service Description: Service for managing + * [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment]. + * + *

Sample for DeploymentsClient: + * + *

{@code
+ * try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
+ *   DeploymentName name =
+ *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]");
+ *   Deployment response = deploymentsClient.getDeployment(name);
+ * }
+ * }
+ * *

======================= EntityTypesClient ======================= * *

Service Description: Service for managing diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStub.java new file mode 100644 index 000000000..5088976da --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStub.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.stub; + +import static com.google.cloud.dialogflow.cx.v3beta1.ChangelogsClient.ListChangelogsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3beta1.Changelog; +import com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Changelogs service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class ChangelogsStub implements BackgroundResource { + + 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()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java new file mode 100644 index 000000000..b6123ea3a --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java @@ -0,0 +1,372 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.stub; + +import static com.google.cloud.dialogflow.cx.v3beta1.ChangelogsClient.ListChangelogsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +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.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.dialogflow.cx.v3beta1.Changelog; +import com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; +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; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ChangelogsStub}. + * + *

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

    + *
  • The default service address (dialogflow.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 total timeout of getChangelog to 30 seconds: + * + *

{@code
+ * ChangelogsStubSettings.Builder changelogsSettingsBuilder = ChangelogsStubSettings.newBuilder();
+ * changelogsSettingsBuilder
+ *     .getChangelogSettings()
+ *     .setRetrySettings(
+ *         changelogsSettingsBuilder
+ *             .getChangelogSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ChangelogsStubSettings changelogsSettings = changelogsSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class ChangelogsStubSettings 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") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); + + private final PagedCallSettings< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings; + private final UnaryCallSettings getChangelogSettings; + + 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() == null + ? ImmutableList.of() + : payload.getChangelogsList(); + } + }; + + 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); + } + }; + + /** 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; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ChangelogsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcChangelogsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "dialogflow.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.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 ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ChangelogsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 ChangelogsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listChangelogsSettings = settingsBuilder.listChangelogsSettings().build(); + getChangelogSettings = settingsBuilder.getChangelogSettings().build(); + } + + /** Builder for ChangelogsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings; + private final UnaryCallSettings.Builder getChangelogSettings; + 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))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(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); + + listChangelogsSettings = PagedCallSettings.newBuilder(LIST_CHANGELOGS_PAGE_STR_FACT); + getChangelogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listChangelogsSettings, getChangelogSettings); + initDefaults(this); + } + + protected Builder(ChangelogsStubSettings settings) { + super(settings); + + listChangelogsSettings = settings.listChangelogsSettings.toBuilder(); + getChangelogSettings = settings.getChangelogSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listChangelogsSettings, getChangelogSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + 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")); + + 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 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; + } + + @Override + public ChangelogsStubSettings build() throws IOException { + return new ChangelogsStubSettings(this); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStub.java new file mode 100644 index 000000000..6b6604d14 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStub.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.stub; + +import static com.google.cloud.dialogflow.cx.v3beta1.DeploymentsClient.ListDeploymentsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3beta1.Deployment; +import com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Deployments service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class DeploymentsStub implements BackgroundResource { + + 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()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java new file mode 100644 index 000000000..ed26fe9ac --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java @@ -0,0 +1,375 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.stub; + +import static com.google.cloud.dialogflow.cx.v3beta1.DeploymentsClient.ListDeploymentsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +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.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.dialogflow.cx.v3beta1.Deployment; +import com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; +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; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DeploymentsStub}. + * + *

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

    + *
  • The default service address (dialogflow.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 total timeout of getDeployment to 30 seconds: + * + *

{@code
+ * DeploymentsStubSettings.Builder deploymentsSettingsBuilder =
+ *     DeploymentsStubSettings.newBuilder();
+ * deploymentsSettingsBuilder
+ *     .getDeploymentSettings()
+ *     .setRetrySettings(
+ *         deploymentsSettingsBuilder
+ *             .getDeploymentSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DeploymentsStubSettings deploymentsSettings = deploymentsSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class DeploymentsStubSettings 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") + .add("https://www.googleapis.com/auth/dialogflow") + .build(); + + private final PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings; + private final UnaryCallSettings getDeploymentSettings; + + 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() == null + ? ImmutableList.of() + : payload.getDeploymentsList(); + } + }; + + 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); + } + }; + + /** 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; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public DeploymentsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDeploymentsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "dialogflow.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.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 ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DeploymentsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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 DeploymentsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listDeploymentsSettings = settingsBuilder.listDeploymentsSettings().build(); + getDeploymentSettings = settingsBuilder.getDeploymentSettings().build(); + } + + /** Builder for DeploymentsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings; + private final UnaryCallSettings.Builder getDeploymentSettings; + 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))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(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); + + listDeploymentsSettings = PagedCallSettings.newBuilder(LIST_DEPLOYMENTS_PAGE_STR_FACT); + getDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listDeploymentsSettings, getDeploymentSettings); + initDefaults(this); + } + + protected Builder(DeploymentsStubSettings settings) { + super(settings); + + listDeploymentsSettings = settings.listDeploymentsSettings.toBuilder(); + getDeploymentSettings = settings.getDeploymentSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listDeploymentsSettings, getDeploymentSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + 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")); + + 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 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; + } + + @Override + public DeploymentsStubSettings build() throws IOException { + return new DeploymentsStubSettings(this); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStub.java index 84fa58c37..9aac7ea7d 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStub.java @@ -26,6 +26,9 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; +import com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; +import com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; +import com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; import com.google.cloud.dialogflow.cx.v3beta1.Environment; import com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; @@ -129,6 +132,15 @@ public UnaryCallable runContinuousTestCalla throw new UnsupportedOperationException("Not implemented: listContinuousTestResultsCallable()"); } + public OperationCallable + deployFlowOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deployFlowOperationCallable()"); + } + + public UnaryCallable deployFlowCallable() { + throw new UnsupportedOperationException("Not implemented: deployFlowCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java index 681a329dc..d1a772c7a 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java @@ -49,6 +49,9 @@ import com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; import com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; +import com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; +import com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; +import com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; import com.google.cloud.dialogflow.cx.v3beta1.Environment; import com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; @@ -140,6 +143,9 @@ public class EnvironmentsStubSettings extends StubSettings listContinuousTestResultsSettings; + private final UnaryCallSettings deployFlowSettings; + private final OperationCallSettings + deployFlowOperationSettings; private static final PagedListDescriptor< ListEnvironmentsRequest, ListEnvironmentsResponse, Environment> @@ -416,6 +422,17 @@ public UnaryCallSettings runContinuousTestS return listContinuousTestResultsSettings; } + /** Returns the object with the settings used for calls to deployFlow. */ + public UnaryCallSettings deployFlowSettings() { + return deployFlowSettings; + } + + /** Returns the object with the settings used for calls to deployFlow. */ + public OperationCallSettings + deployFlowOperationSettings() { + return deployFlowOperationSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public EnvironmentsStub createStub() throws IOException { if (getTransportChannelProvider() @@ -506,6 +523,8 @@ protected EnvironmentsStubSettings(Builder settingsBuilder) throws IOException { runContinuousTestOperationSettings = settingsBuilder.runContinuousTestOperationSettings().build(); listContinuousTestResultsSettings = settingsBuilder.listContinuousTestResultsSettings().build(); + deployFlowSettings = settingsBuilder.deployFlowSettings().build(); + deployFlowOperationSettings = settingsBuilder.deployFlowOperationSettings().build(); } /** Builder for EnvironmentsStubSettings. */ @@ -541,6 +560,10 @@ public static class Builder extends StubSettings.Builder listContinuousTestResultsSettings; + private final UnaryCallSettings.Builder deployFlowSettings; + private final OperationCallSettings.Builder< + DeployFlowRequest, DeployFlowResponse, DeployFlowMetadata> + deployFlowOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -592,6 +615,8 @@ protected Builder(ClientContext clientContext) { runContinuousTestOperationSettings = OperationCallSettings.newBuilder(); listContinuousTestResultsSettings = PagedCallSettings.newBuilder(LIST_CONTINUOUS_TEST_RESULTS_PAGE_STR_FACT); + deployFlowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deployFlowOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -602,7 +627,8 @@ protected Builder(ClientContext clientContext) { deleteEnvironmentSettings, lookupEnvironmentHistorySettings, runContinuousTestSettings, - listContinuousTestResultsSettings); + listContinuousTestResultsSettings, + deployFlowSettings); initDefaults(this); } @@ -620,6 +646,8 @@ protected Builder(EnvironmentsStubSettings settings) { runContinuousTestSettings = settings.runContinuousTestSettings.toBuilder(); runContinuousTestOperationSettings = settings.runContinuousTestOperationSettings.toBuilder(); listContinuousTestResultsSettings = settings.listContinuousTestResultsSettings.toBuilder(); + deployFlowSettings = settings.deployFlowSettings.toBuilder(); + deployFlowOperationSettings = settings.deployFlowOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -630,7 +658,8 @@ protected Builder(EnvironmentsStubSettings settings) { deleteEnvironmentSettings, lookupEnvironmentHistorySettings, runContinuousTestSettings, - listContinuousTestResultsSettings); + listContinuousTestResultsSettings, + deployFlowSettings); } private static Builder createDefault() { @@ -687,6 +716,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .deployFlowSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createEnvironmentOperationSettings() .setInitialCallSettings( @@ -761,6 +795,29 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .deployFlowOperationSettings() + .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(DeployFlowResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeployFlowMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -857,6 +914,19 @@ public UnaryCallSettings.Builder deleteEnvironm return listContinuousTestResultsSettings; } + /** Returns the builder for the settings used for calls to deployFlow. */ + public UnaryCallSettings.Builder deployFlowSettings() { + return deployFlowSettings; + } + + /** Returns the builder for the settings used for calls to deployFlow. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deployFlowOperationSettings() { + return deployFlowOperationSettings; + } + @Override public EnvironmentsStubSettings build() throws IOException { return new EnvironmentsStubSettings(this); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsCallableFactory.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsCallableFactory.java new file mode 100644 index 000000000..ec5d2ebd5 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.stub; + +import com.google.api.core.BetaApi; +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 Changelogs service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcChangelogsCallableFactory 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/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java new file mode 100644 index 000000000..36883e3d0 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcChangelogsStub.java @@ -0,0 +1,207 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.stub; + +import static com.google.cloud.dialogflow.cx.v3beta1.ChangelogsClient.ListChangelogsPagedResponse; + +import com.google.api.core.BetaApi; +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.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3beta1.Changelog; +import com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; +import com.google.common.collect.ImmutableMap; +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 Changelogs service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcChangelogsStub extends ChangelogsStub { + private static final MethodDescriptor + listChangelogsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3beta1.Changelogs/ListChangelogs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListChangelogsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListChangelogsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getChangelogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3beta1.Changelogs/GetChangelog") + .setRequestMarshaller(ProtoUtils.marshaller(GetChangelogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Changelog.getDefaultInstance())) + .build(); + + private final UnaryCallable listChangelogsCallable; + private final UnaryCallable + listChangelogsPagedCallable; + private final UnaryCallable getChangelogCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcChangelogsStub create(ChangelogsStubSettings settings) + throws IOException { + return new GrpcChangelogsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcChangelogsStub create(ClientContext clientContext) throws IOException { + return new GrpcChangelogsStub(ChangelogsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcChangelogsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcChangelogsStub( + ChangelogsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcChangelogsStub, 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 GrpcChangelogsStub(ChangelogsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcChangelogsCallableFactory()); + } + + /** + * Constructs an instance of GrpcChangelogsStub, 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 GrpcChangelogsStub( + ChangelogsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listChangelogsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listChangelogsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getChangelogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getChangelogMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + 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.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listChangelogsCallable() { + return listChangelogsCallable; + } + + @Override + public UnaryCallable + listChangelogsPagedCallable() { + return listChangelogsPagedCallable; + } + + @Override + public UnaryCallable getChangelogCallable() { + return getChangelogCallable; + } + + @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/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsCallableFactory.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsCallableFactory.java new file mode 100644 index 000000000..96b6ca89c --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.stub; + +import com.google.api.core.BetaApi; +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 Deployments service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcDeploymentsCallableFactory 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/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java new file mode 100644 index 000000000..671aeccba --- /dev/null +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcDeploymentsStub.java @@ -0,0 +1,209 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1.stub; + +import static com.google.cloud.dialogflow.cx.v3beta1.DeploymentsClient.ListDeploymentsPagedResponse; + +import com.google.api.core.BetaApi; +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.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3beta1.Deployment; +import com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; +import com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; +import com.google.common.collect.ImmutableMap; +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 Deployments service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcDeploymentsStub extends DeploymentsStub { + private static final MethodDescriptor + listDeploymentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3beta1.Deployments/ListDeployments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDeploymentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3beta1.Deployments/GetDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private final UnaryCallable + listDeploymentsCallable; + private final UnaryCallable + listDeploymentsPagedCallable; + private final UnaryCallable getDeploymentCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDeploymentsStub create(DeploymentsStubSettings settings) + throws IOException { + return new GrpcDeploymentsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDeploymentsStub create(ClientContext clientContext) throws IOException { + return new GrpcDeploymentsStub(DeploymentsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDeploymentsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDeploymentsStub( + DeploymentsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDeploymentsStub, 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 GrpcDeploymentsStub(DeploymentsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcDeploymentsCallableFactory()); + } + + /** + * Constructs an instance of GrpcDeploymentsStub, 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 GrpcDeploymentsStub( + DeploymentsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listDeploymentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDeploymentsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + 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.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listDeploymentsCallable() { + return listDeploymentsCallable; + } + + @Override + public UnaryCallable + listDeploymentsPagedCallable() { + return listDeploymentsPagedCallable; + } + + @Override + public UnaryCallable getDeploymentCallable() { + return getDeploymentCallable; + } + + @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/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java index a8a707572..e6544fc29 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEnvironmentsStub.java @@ -30,6 +30,9 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; +import com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; +import com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; +import com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; import com.google.cloud.dialogflow.cx.v3beta1.Environment; import com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; @@ -155,6 +158,14 @@ public class GrpcEnvironmentsStub extends EnvironmentsStub { ProtoUtils.marshaller(ListContinuousTestResultsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor deployFlowMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3beta1.Environments/DeployFlow") + .setRequestMarshaller(ProtoUtils.marshaller(DeployFlowRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private final UnaryCallable listEnvironmentsCallable; private final UnaryCallable @@ -181,6 +192,9 @@ public class GrpcEnvironmentsStub extends EnvironmentsStub { private final UnaryCallable< ListContinuousTestResultsRequest, ListContinuousTestResultsPagedResponse> listContinuousTestResultsPagedCallable; + private final UnaryCallable deployFlowCallable; + private final OperationCallable + deployFlowOperationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -310,6 +324,16 @@ protected GrpcEnvironmentsStub( return params.build(); }) .build(); + GrpcCallSettings deployFlowTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deployFlowMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("environment", String.valueOf(request.getEnvironment())); + return params.build(); + }) + .build(); this.listEnvironmentsCallable = callableFactory.createUnaryCallable( @@ -378,6 +402,15 @@ protected GrpcEnvironmentsStub( listContinuousTestResultsTransportSettings, settings.listContinuousTestResultsSettings(), clientContext); + this.deployFlowCallable = + callableFactory.createUnaryCallable( + deployFlowTransportSettings, settings.deployFlowSettings(), clientContext); + this.deployFlowOperationCallable = + callableFactory.createOperationCallable( + deployFlowTransportSettings, + settings.deployFlowOperationSettings(), + clientContext, + operationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -467,6 +500,17 @@ public UnaryCallable runContinuousTestCalla return listContinuousTestResultsPagedCallable; } + @Override + public UnaryCallable deployFlowCallable() { + return deployFlowCallable; + } + + @Override + public OperationCallable + deployFlowOperationCallable() { + return deployFlowOperationCallable; + } + @Override public final void close() { try { diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java index 32cd1f0a9..0bc6d36fc 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcVersionsStub.java @@ -26,6 +26,8 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest; +import com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; import com.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; import com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; import com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; @@ -109,6 +111,17 @@ public class GrpcVersionsStub extends VersionsStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + compareVersionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3beta1.Versions/CompareVersions") + .setRequestMarshaller( + ProtoUtils.marshaller(CompareVersionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CompareVersionsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable listVersionsCallable; private final UnaryCallable listVersionsPagedCallable; @@ -120,6 +133,8 @@ public class GrpcVersionsStub extends VersionsStub { private final UnaryCallable deleteVersionCallable; private final UnaryCallable loadVersionCallable; private final OperationCallable loadVersionOperationCallable; + private final UnaryCallable + compareVersionsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -220,6 +235,17 @@ protected GrpcVersionsStub( return params.build(); }) .build(); + GrpcCallSettings + compareVersionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(compareVersionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("base_version", String.valueOf(request.getBaseVersion())); + return params.build(); + }) + .build(); this.listVersionsCallable = callableFactory.createUnaryCallable( @@ -254,6 +280,9 @@ protected GrpcVersionsStub( settings.loadVersionOperationSettings(), clientContext, operationsStub); + this.compareVersionsCallable = + callableFactory.createUnaryCallable( + compareVersionsTransportSettings, settings.compareVersionsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -309,6 +338,11 @@ public OperationCallable loadVersionOperation return loadVersionOperationCallable; } + @Override + public UnaryCallable compareVersionsCallable() { + return compareVersionsCallable; + } + @Override public final void close() { try { diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStub.java index 896736c51..5d62f42fe 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStub.java @@ -22,6 +22,8 @@ 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.dialogflow.cx.v3beta1.CompareVersionsRequest; +import com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; import com.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; import com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; import com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; @@ -88,6 +90,10 @@ public UnaryCallable loadVersionCallable() { throw new UnsupportedOperationException("Not implemented: loadVersionCallable()"); } + public UnaryCallable compareVersionsCallable() { + throw new UnsupportedOperationException("Not implemented: compareVersionsCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java index b41223930..add4e6ad4 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java @@ -44,6 +44,8 @@ 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.dialogflow.cx.v3beta1.CompareVersionsRequest; +import com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; import com.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; import com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; import com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; @@ -118,6 +120,8 @@ public class VersionsStubSettings extends StubSettings { private final UnaryCallSettings loadVersionSettings; private final OperationCallSettings loadVersionOperationSettings; + private final UnaryCallSettings + compareVersionsSettings; private static final PagedListDescriptor LIST_VERSIONS_PAGE_STR_DESC = @@ -214,6 +218,12 @@ public OperationCallSettings loadVersionOpera return loadVersionOperationSettings; } + /** Returns the object with the settings used for calls to compareVersions. */ + public UnaryCallSettings + compareVersionsSettings() { + return compareVersionsSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public VersionsStub createStub() throws IOException { if (getTransportChannelProvider() @@ -297,6 +307,7 @@ protected VersionsStubSettings(Builder settingsBuilder) throws IOException { deleteVersionSettings = settingsBuilder.deleteVersionSettings().build(); loadVersionSettings = settingsBuilder.loadVersionSettings().build(); loadVersionOperationSettings = settingsBuilder.loadVersionOperationSettings().build(); + compareVersionsSettings = settingsBuilder.compareVersionsSettings().build(); } /** Builder for VersionsStubSettings. */ @@ -315,6 +326,8 @@ public static class Builder extends StubSettings.Builder loadVersionSettings; private final OperationCallSettings.Builder loadVersionOperationSettings; + private final UnaryCallSettings.Builder + compareVersionsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -361,6 +374,7 @@ protected Builder(ClientContext clientContext) { deleteVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); loadVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); loadVersionOperationSettings = OperationCallSettings.newBuilder(); + compareVersionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -369,7 +383,8 @@ protected Builder(ClientContext clientContext) { createVersionSettings, updateVersionSettings, deleteVersionSettings, - loadVersionSettings); + loadVersionSettings, + compareVersionsSettings); initDefaults(this); } @@ -384,6 +399,7 @@ protected Builder(VersionsStubSettings settings) { deleteVersionSettings = settings.deleteVersionSettings.toBuilder(); loadVersionSettings = settings.loadVersionSettings.toBuilder(); loadVersionOperationSettings = settings.loadVersionOperationSettings.toBuilder(); + compareVersionsSettings = settings.compareVersionsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -392,7 +408,8 @@ protected Builder(VersionsStubSettings settings) { createVersionSettings, updateVersionSettings, deleteVersionSettings, - loadVersionSettings); + loadVersionSettings, + compareVersionsSettings); } private static Builder createDefault() { @@ -439,6 +456,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .compareVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createVersionOperationSettings() .setInitialCallSettings( @@ -554,6 +576,12 @@ public UnaryCallSettings.Builder loadVersionSetti return loadVersionOperationSettings; } + /** Returns the builder for the settings used for calls to compareVersions. */ + public UnaryCallSettings.Builder + compareVersionsSettings() { + return compareVersionsSettings; + } + @Override public VersionsStubSettings build() throws IOException { return new VersionsStubSettings(this); diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClientTest.java new file mode 100644 index 000000000..99640438f --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClientTest.java @@ -0,0 +1,259 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +import static com.google.cloud.dialogflow.cx.v3.ChangelogsClient.ListChangelogsPagedResponse; + +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.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +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 ChangelogsClientTest { + private static MockChangelogs mockChangelogs; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ChangelogsClient client; + + @BeforeClass + public static void startStaticServer() { + mockChangelogs = new MockChangelogs(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockChangelogs)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ChangelogsSettings settings = + ChangelogsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ChangelogsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listChangelogsTest() throws Exception { + Changelog responsesElement = Changelog.newBuilder().build(); + ListChangelogsResponse expectedResponse = + ListChangelogsResponse.newBuilder() + .setNextPageToken("") + .addAllChangelogs(Arrays.asList(responsesElement)) + .build(); + mockChangelogs.addResponse(expectedResponse); + + AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + + 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 = mockChangelogs.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); + mockChangelogs.addException(exception); + + try { + AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + 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(); + mockChangelogs.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 = mockChangelogs.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); + mockChangelogs.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]", "[AGENT]", "[CHANGELOG]").toString()) + .setUserEmail("userEmail315299473") + .setDisplayName("displayName1714148973") + .setAction("action-1422950858") + .setType("type3575610") + .setResource("resource-341064690") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockChangelogs.addResponse(expectedResponse); + + ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]"); + + Changelog actualResponse = client.getChangelog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChangelogs.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); + mockChangelogs.addException(exception); + + try { + ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[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]", "[AGENT]", "[CHANGELOG]").toString()) + .setUserEmail("userEmail315299473") + .setDisplayName("displayName1714148973") + .setAction("action-1422950858") + .setType("type3575610") + .setResource("resource-341064690") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockChangelogs.addResponse(expectedResponse); + + String name = "name3373707"; + + Changelog actualResponse = client.getChangelog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChangelogs.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); + mockChangelogs.addException(exception); + + try { + String name = "name3373707"; + client.getChangelog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClientTest.java new file mode 100644 index 000000000..b382ccad4 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +import static com.google.cloud.dialogflow.cx.v3.DeploymentsClient.ListDeploymentsPagedResponse; + +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.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +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 DeploymentsClientTest { + private static MockDeployments mockDeployments; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DeploymentsClient client; + + @BeforeClass + public static void startStaticServer() { + mockDeployments = new MockDeployments(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockDeployments)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DeploymentsSettings settings = + DeploymentsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DeploymentsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listDeploymentsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockDeployments.addResponse(expectedResponse); + + EnvironmentName parent = + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); + + 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 = mockDeployments.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); + mockDeployments.addException(exception); + + try { + EnvironmentName parent = + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); + 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(); + mockDeployments.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 = mockDeployments.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); + mockDeployments.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]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]") + .toString()) + .setFlowVersion( + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]") + .toString()) + .setResult(Deployment.Result.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockDeployments.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeployments.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); + mockDeployments.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[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]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]") + .toString()) + .setFlowVersion( + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]") + .toString()) + .setResult(Deployment.Result.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeployments.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); + mockDeployments.addException(exception); + + try { + String name = "name3373707"; + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java index c91cfe18c..685a10aaa 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java @@ -187,6 +187,7 @@ public void getEnvironmentTest() throws Exception { .setDescription("description-1724546052") .addAllVersionConfigs(new ArrayList()) .setUpdateTime(Timestamp.newBuilder().build()) + .setTestCasesConfig(Environment.TestCasesConfig.newBuilder().build()) .build(); mockEnvironments.addResponse(expectedResponse); @@ -233,6 +234,7 @@ public void getEnvironmentTest2() throws Exception { .setDescription("description-1724546052") .addAllVersionConfigs(new ArrayList()) .setUpdateTime(Timestamp.newBuilder().build()) + .setTestCasesConfig(Environment.TestCasesConfig.newBuilder().build()) .build(); mockEnvironments.addResponse(expectedResponse); @@ -277,6 +279,7 @@ public void createEnvironmentTest() throws Exception { .setDescription("description-1724546052") .addAllVersionConfigs(new ArrayList()) .setUpdateTime(Timestamp.newBuilder().build()) + .setTestCasesConfig(Environment.TestCasesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -332,6 +335,7 @@ public void createEnvironmentTest2() throws Exception { .setDescription("description-1724546052") .addAllVersionConfigs(new ArrayList()) .setUpdateTime(Timestamp.newBuilder().build()) + .setTestCasesConfig(Environment.TestCasesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -387,6 +391,7 @@ public void updateEnvironmentTest() throws Exception { .setDescription("description-1724546052") .addAllVersionConfigs(new ArrayList()) .setUpdateTime(Timestamp.newBuilder().build()) + .setTestCasesConfig(Environment.TestCasesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -742,4 +747,68 @@ public void listContinuousTestResultsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void deployFlowTest() throws Exception { + DeployFlowResponse expectedResponse = + DeployFlowResponse.newBuilder() + .setEnvironment(Environment.newBuilder().build()) + .setDeployment("deployment1939520197") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deployFlowTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEnvironments.addResponse(resultOperation); + + DeployFlowRequest request = + DeployFlowRequest.newBuilder() + .setEnvironment( + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") + .toString()) + .setFlowVersion( + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]") + .toString()) + .build(); + + DeployFlowResponse actualResponse = client.deployFlowAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnvironments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeployFlowRequest actualRequest = ((DeployFlowRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getEnvironment(), actualRequest.getEnvironment()); + Assert.assertEquals(request.getFlowVersion(), actualRequest.getFlowVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deployFlowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnvironments.addException(exception); + + try { + DeployFlowRequest request = + DeployFlowRequest.newBuilder() + .setEnvironment( + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") + .toString()) + .setFlowVersion( + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]") + .toString()) + .build(); + client.deployFlowAsync(request).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()); + } + } } diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java index dd0cff843..7b2548e8e 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java @@ -710,7 +710,7 @@ public void importFlowTest() throws Exception { ImportFlowRequest request = ImportFlowRequest.newBuilder() - .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .build(); ImportFlowResponse actualResponse = client.importFlowAsync(request).get(); @@ -738,7 +738,7 @@ public void importFlowExceptionTest() throws Exception { try { ImportFlowRequest request = ImportFlowRequest.newBuilder() - .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .build(); client.importFlowAsync(request).get(); Assert.fail("No exception raised"); diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockChangelogs.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockChangelogs.java new file mode 100644 index 000000000..192f3cd04 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockChangelogs.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +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 MockChangelogs implements MockGrpcService { + private final MockChangelogsImpl serviceImpl; + + public MockChangelogs() { + serviceImpl = new MockChangelogsImpl(); + } + + @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/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockChangelogsImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockChangelogsImpl.java new file mode 100644 index 000000000..aaa92402e --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockChangelogsImpl.java @@ -0,0 +1,102 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +import com.google.api.core.BetaApi; +import com.google.cloud.dialogflow.cx.v3.ChangelogsGrpc.ChangelogsImplBase; +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 MockChangelogsImpl extends ChangelogsImplBase { + private List requests; + private Queue responses; + + public MockChangelogsImpl() { + 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 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/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockDeployments.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockDeployments.java new file mode 100644 index 000000000..9bd707638 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockDeployments.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +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 MockDeployments implements MockGrpcService { + private final MockDeploymentsImpl serviceImpl; + + public MockDeployments() { + serviceImpl = new MockDeploymentsImpl(); + } + + @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/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockDeploymentsImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockDeploymentsImpl.java new file mode 100644 index 000000000..9885852c9 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockDeploymentsImpl.java @@ -0,0 +1,102 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +import com.google.api.core.BetaApi; +import com.google.cloud.dialogflow.cx.v3.DeploymentsGrpc.DeploymentsImplBase; +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 MockDeploymentsImpl extends DeploymentsImplBase { + private List requests; + private Queue responses; + + public MockDeploymentsImpl() { + 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 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()))); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockEnvironmentsImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockEnvironmentsImpl.java index c557bbf91..42ea86dec 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockEnvironmentsImpl.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockEnvironmentsImpl.java @@ -229,4 +229,24 @@ public void listContinuousTestResults( Exception.class.getName()))); } } + + @Override + public void deployFlow(DeployFlowRequest 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 DeployFlow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockVersionsImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockVersionsImpl.java index 230c6c9fd..f9dfba444 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockVersionsImpl.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockVersionsImpl.java @@ -182,4 +182,25 @@ public void loadVersion(LoadVersionRequest request, StreamObserver re Exception.class.getName()))); } } + + @Override + public void compareVersions( + CompareVersionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CompareVersionsResponse) { + requests.add(request); + responseObserver.onNext(((CompareVersionsResponse) 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 CompareVersions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CompareVersionsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java index 05ec9be81..439bad6cc 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java @@ -559,8 +559,7 @@ public void batchRunTestCasesTest() throws Exception { BatchRunTestCasesRequest request = BatchRunTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .setEnvironment( EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") .toString()) @@ -591,8 +590,7 @@ public void batchRunTestCasesExceptionTest() throws Exception { try { BatchRunTestCasesRequest request = BatchRunTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .setEnvironment( EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") .toString()) @@ -666,8 +664,7 @@ public void importTestCasesTest() throws Exception { ImportTestCasesRequest request = ImportTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .build(); ImportTestCasesResponse actualResponse = client.importTestCasesAsync(request).get(); @@ -694,8 +691,7 @@ public void importTestCasesExceptionTest() throws Exception { try { ImportTestCasesRequest request = ImportTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .build(); client.importTestCasesAsync(request).get(); Assert.fail("No exception raised"); @@ -719,8 +715,7 @@ public void exportTestCasesTest() throws Exception { ExportTestCasesRequest request = ExportTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .setFilter("filter-1274492040") .build(); @@ -749,8 +744,7 @@ public void exportTestCasesExceptionTest() throws Exception { try { ExportTestCasesRequest request = ExportTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .setFilter("filter-1274492040") .build(); client.exportTestCasesAsync(request).get(); diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/VersionsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/VersionsClientTest.java index 7fa4081e3..e38c95ffc 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/VersionsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/VersionsClientTest.java @@ -572,4 +572,86 @@ public void loadVersionExceptionTest2() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void compareVersionsTest() throws Exception { + CompareVersionsResponse expectedResponse = + CompareVersionsResponse.newBuilder() + .setBaseVersionContentJson("baseVersionContentJson-856795718") + .setTargetVersionContentJson("targetVersionContentJson813797498") + .setCompareTime(Timestamp.newBuilder().build()) + .build(); + mockVersions.addResponse(expectedResponse); + + VersionName baseVersion = + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"); + + CompareVersionsResponse actualResponse = client.compareVersions(baseVersion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVersions.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CompareVersionsRequest actualRequest = ((CompareVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(baseVersion.toString(), actualRequest.getBaseVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void compareVersionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVersions.addException(exception); + + try { + VersionName baseVersion = + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"); + client.compareVersions(baseVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void compareVersionsTest2() throws Exception { + CompareVersionsResponse expectedResponse = + CompareVersionsResponse.newBuilder() + .setBaseVersionContentJson("baseVersionContentJson-856795718") + .setTargetVersionContentJson("targetVersionContentJson813797498") + .setCompareTime(Timestamp.newBuilder().build()) + .build(); + mockVersions.addResponse(expectedResponse); + + String baseVersion = "baseVersion-1641901881"; + + CompareVersionsResponse actualResponse = client.compareVersions(baseVersion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVersions.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CompareVersionsRequest actualRequest = ((CompareVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(baseVersion, actualRequest.getBaseVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void compareVersionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVersions.addException(exception); + + try { + String baseVersion = "baseVersion-1641901881"; + client.compareVersions(baseVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClientTest.java new file mode 100644 index 000000000..45bd8810a --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClientTest.java @@ -0,0 +1,259 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +import static com.google.cloud.dialogflow.cx.v3beta1.ChangelogsClient.ListChangelogsPagedResponse; + +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.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +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 ChangelogsClientTest { + private static MockChangelogs mockChangelogs; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ChangelogsClient client; + + @BeforeClass + public static void startStaticServer() { + mockChangelogs = new MockChangelogs(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockChangelogs)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ChangelogsSettings settings = + ChangelogsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ChangelogsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listChangelogsTest() throws Exception { + Changelog responsesElement = Changelog.newBuilder().build(); + ListChangelogsResponse expectedResponse = + ListChangelogsResponse.newBuilder() + .setNextPageToken("") + .addAllChangelogs(Arrays.asList(responsesElement)) + .build(); + mockChangelogs.addResponse(expectedResponse); + + AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + + 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 = mockChangelogs.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); + mockChangelogs.addException(exception); + + try { + AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + 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(); + mockChangelogs.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 = mockChangelogs.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); + mockChangelogs.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]", "[AGENT]", "[CHANGELOG]").toString()) + .setUserEmail("userEmail315299473") + .setDisplayName("displayName1714148973") + .setAction("action-1422950858") + .setType("type3575610") + .setResource("resource-341064690") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockChangelogs.addResponse(expectedResponse); + + ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]"); + + Changelog actualResponse = client.getChangelog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChangelogs.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); + mockChangelogs.addException(exception); + + try { + ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[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]", "[AGENT]", "[CHANGELOG]").toString()) + .setUserEmail("userEmail315299473") + .setDisplayName("displayName1714148973") + .setAction("action-1422950858") + .setType("type3575610") + .setResource("resource-341064690") + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockChangelogs.addResponse(expectedResponse); + + String name = "name3373707"; + + Changelog actualResponse = client.getChangelog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChangelogs.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); + mockChangelogs.addException(exception); + + try { + String name = "name3373707"; + client.getChangelog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClientTest.java new file mode 100644 index 000000000..954275de3 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +import static com.google.cloud.dialogflow.cx.v3beta1.DeploymentsClient.ListDeploymentsPagedResponse; + +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.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +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 DeploymentsClientTest { + private static MockDeployments mockDeployments; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DeploymentsClient client; + + @BeforeClass + public static void startStaticServer() { + mockDeployments = new MockDeployments(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockDeployments)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DeploymentsSettings settings = + DeploymentsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DeploymentsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listDeploymentsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockDeployments.addResponse(expectedResponse); + + EnvironmentName parent = + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); + + 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 = mockDeployments.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); + mockDeployments.addException(exception); + + try { + EnvironmentName parent = + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); + 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(); + mockDeployments.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 = mockDeployments.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); + mockDeployments.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]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]") + .toString()) + .setFlowVersion( + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]") + .toString()) + .setResult(Deployment.Result.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockDeployments.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeployments.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); + mockDeployments.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[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]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]") + .toString()) + .setFlowVersion( + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]") + .toString()) + .setResult(Deployment.Result.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + mockDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeployments.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); + mockDeployments.addException(exception); + + try { + String name = "name3373707"; + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java index 31014e742..ff85bee91 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java @@ -187,6 +187,7 @@ public void getEnvironmentTest() throws Exception { .setDescription("description-1724546052") .addAllVersionConfigs(new ArrayList()) .setUpdateTime(Timestamp.newBuilder().build()) + .setTestCasesConfig(Environment.TestCasesConfig.newBuilder().build()) .build(); mockEnvironments.addResponse(expectedResponse); @@ -233,6 +234,7 @@ public void getEnvironmentTest2() throws Exception { .setDescription("description-1724546052") .addAllVersionConfigs(new ArrayList()) .setUpdateTime(Timestamp.newBuilder().build()) + .setTestCasesConfig(Environment.TestCasesConfig.newBuilder().build()) .build(); mockEnvironments.addResponse(expectedResponse); @@ -277,6 +279,7 @@ public void createEnvironmentTest() throws Exception { .setDescription("description-1724546052") .addAllVersionConfigs(new ArrayList()) .setUpdateTime(Timestamp.newBuilder().build()) + .setTestCasesConfig(Environment.TestCasesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -332,6 +335,7 @@ public void createEnvironmentTest2() throws Exception { .setDescription("description-1724546052") .addAllVersionConfigs(new ArrayList()) .setUpdateTime(Timestamp.newBuilder().build()) + .setTestCasesConfig(Environment.TestCasesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -387,6 +391,7 @@ public void updateEnvironmentTest() throws Exception { .setDescription("description-1724546052") .addAllVersionConfigs(new ArrayList()) .setUpdateTime(Timestamp.newBuilder().build()) + .setTestCasesConfig(Environment.TestCasesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -742,4 +747,68 @@ public void listContinuousTestResultsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void deployFlowTest() throws Exception { + DeployFlowResponse expectedResponse = + DeployFlowResponse.newBuilder() + .setEnvironment(Environment.newBuilder().build()) + .setDeployment("deployment1939520197") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deployFlowTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEnvironments.addResponse(resultOperation); + + DeployFlowRequest request = + DeployFlowRequest.newBuilder() + .setEnvironment( + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") + .toString()) + .setFlowVersion( + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]") + .toString()) + .build(); + + DeployFlowResponse actualResponse = client.deployFlowAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnvironments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeployFlowRequest actualRequest = ((DeployFlowRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getEnvironment(), actualRequest.getEnvironment()); + Assert.assertEquals(request.getFlowVersion(), actualRequest.getFlowVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deployFlowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnvironments.addException(exception); + + try { + DeployFlowRequest request = + DeployFlowRequest.newBuilder() + .setEnvironment( + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") + .toString()) + .setFlowVersion( + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]") + .toString()) + .build(); + client.deployFlowAsync(request).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()); + } + } } diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java index d20d0c78e..103eacfef 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java @@ -710,7 +710,7 @@ public void importFlowTest() throws Exception { ImportFlowRequest request = ImportFlowRequest.newBuilder() - .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .build(); ImportFlowResponse actualResponse = client.importFlowAsync(request).get(); @@ -738,7 +738,7 @@ public void importFlowExceptionTest() throws Exception { try { ImportFlowRequest request = ImportFlowRequest.newBuilder() - .setParent(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .build(); client.importFlowAsync(request).get(); Assert.fail("No exception raised"); diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockChangelogs.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockChangelogs.java new file mode 100644 index 000000000..06692b297 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockChangelogs.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +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 MockChangelogs implements MockGrpcService { + private final MockChangelogsImpl serviceImpl; + + public MockChangelogs() { + serviceImpl = new MockChangelogsImpl(); + } + + @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/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockChangelogsImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockChangelogsImpl.java new file mode 100644 index 000000000..ee5118ee1 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockChangelogsImpl.java @@ -0,0 +1,102 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.dialogflow.cx.v3beta1.ChangelogsGrpc.ChangelogsImplBase; +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 MockChangelogsImpl extends ChangelogsImplBase { + private List requests; + private Queue responses; + + public MockChangelogsImpl() { + 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 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/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockDeployments.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockDeployments.java new file mode 100644 index 000000000..5c0de9731 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockDeployments.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +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 MockDeployments implements MockGrpcService { + private final MockDeploymentsImpl serviceImpl; + + public MockDeployments() { + serviceImpl = new MockDeploymentsImpl(); + } + + @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/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockDeploymentsImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockDeploymentsImpl.java new file mode 100644 index 000000000..dd83a83c3 --- /dev/null +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockDeploymentsImpl.java @@ -0,0 +1,102 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.dialogflow.cx.v3beta1.DeploymentsGrpc.DeploymentsImplBase; +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 MockDeploymentsImpl extends DeploymentsImplBase { + private List requests; + private Queue responses; + + public MockDeploymentsImpl() { + 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 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()))); + } + } +} diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockEnvironmentsImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockEnvironmentsImpl.java index a916bfc3d..3264ac681 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockEnvironmentsImpl.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockEnvironmentsImpl.java @@ -229,4 +229,24 @@ public void listContinuousTestResults( Exception.class.getName()))); } } + + @Override + public void deployFlow(DeployFlowRequest 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 DeployFlow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockVersionsImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockVersionsImpl.java index da0d8c6b7..942404116 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockVersionsImpl.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockVersionsImpl.java @@ -182,4 +182,25 @@ public void loadVersion(LoadVersionRequest request, StreamObserver re Exception.class.getName()))); } } + + @Override + public void compareVersions( + CompareVersionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CompareVersionsResponse) { + requests.add(request); + responseObserver.onNext(((CompareVersionsResponse) 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 CompareVersions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CompareVersionsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java index 3718673be..ffa1df3b1 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java @@ -559,8 +559,7 @@ public void batchRunTestCasesTest() throws Exception { BatchRunTestCasesRequest request = BatchRunTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .setEnvironment( EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") .toString()) @@ -591,8 +590,7 @@ public void batchRunTestCasesExceptionTest() throws Exception { try { BatchRunTestCasesRequest request = BatchRunTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .setEnvironment( EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") .toString()) @@ -666,8 +664,7 @@ public void importTestCasesTest() throws Exception { ImportTestCasesRequest request = ImportTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .build(); ImportTestCasesResponse actualResponse = client.importTestCasesAsync(request).get(); @@ -694,8 +691,7 @@ public void importTestCasesExceptionTest() throws Exception { try { ImportTestCasesRequest request = ImportTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .build(); client.importTestCasesAsync(request).get(); Assert.fail("No exception raised"); @@ -719,8 +715,7 @@ public void exportTestCasesTest() throws Exception { ExportTestCasesRequest request = ExportTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .setFilter("filter-1274492040") .build(); @@ -749,8 +744,7 @@ public void exportTestCasesExceptionTest() throws Exception { try { ExportTestCasesRequest request = ExportTestCasesRequest.newBuilder() - .setParent( - TestCaseName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]").toString()) + .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) .setFilter("filter-1274492040") .build(); client.exportTestCasesAsync(request).get(); diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClientTest.java index 2693af313..f70d0c8cc 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClientTest.java @@ -572,4 +572,86 @@ public void loadVersionExceptionTest2() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void compareVersionsTest() throws Exception { + CompareVersionsResponse expectedResponse = + CompareVersionsResponse.newBuilder() + .setBaseVersionContentJson("baseVersionContentJson-856795718") + .setTargetVersionContentJson("targetVersionContentJson813797498") + .setCompareTime(Timestamp.newBuilder().build()) + .build(); + mockVersions.addResponse(expectedResponse); + + VersionName baseVersion = + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"); + + CompareVersionsResponse actualResponse = client.compareVersions(baseVersion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVersions.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CompareVersionsRequest actualRequest = ((CompareVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(baseVersion.toString(), actualRequest.getBaseVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void compareVersionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVersions.addException(exception); + + try { + VersionName baseVersion = + VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"); + client.compareVersions(baseVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void compareVersionsTest2() throws Exception { + CompareVersionsResponse expectedResponse = + CompareVersionsResponse.newBuilder() + .setBaseVersionContentJson("baseVersionContentJson-856795718") + .setTargetVersionContentJson("targetVersionContentJson813797498") + .setCompareTime(Timestamp.newBuilder().build()) + .build(); + mockVersions.addResponse(expectedResponse); + + String baseVersion = "baseVersion-1641901881"; + + CompareVersionsResponse actualResponse = client.compareVersions(baseVersion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVersions.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CompareVersionsRequest actualRequest = ((CompareVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(baseVersion, actualRequest.getBaseVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void compareVersionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVersions.addException(exception); + + try { + String baseVersion = "baseVersion-1641901881"; + client.compareVersions(baseVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/grpc-google-cloud-dialogflow-cx-v3/clirr-ignored-differences.xml b/grpc-google-cloud-dialogflow-cx-v3/clirr-ignored-differences.xml new file mode 100644 index 000000000..d102e9337 --- /dev/null +++ b/grpc-google-cloud-dialogflow-cx-v3/clirr-ignored-differences.xml @@ -0,0 +1,8 @@ + + + + + 8001 + com/google/cloud/location/*Location* + + \ No newline at end of file diff --git a/grpc-google-cloud-dialogflow-cx-v3/pom.xml b/grpc-google-cloud-dialogflow-cx-v3/pom.xml index 62d05a017..6552bdbf7 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/pom.xml +++ b/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.10.1 + 0.11.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.10.1 + 0.11.0 diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java index 0f06eb78e..ade285851 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/agent.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class AgentsGrpc { private AgentsGrpc() {} @@ -588,6 +589,13 @@ public void exportAgent( * Restores the specified agent from a binary file. * Replaces the current agent with a new one. Note that all existing resources * in agent (e.g. intents, entity types, flows) will be removed. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * Note: You should always train flows prior to sending them queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -826,6 +834,13 @@ public void exportAgent( * Restores the specified agent from a binary file. * Replaces the current agent with a new one. Note that all existing resources * in agent (e.g. intents, entity types, flows) will be removed. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * Note: You should always train flows prior to sending them queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -993,6 +1008,13 @@ public com.google.longrunning.Operation exportAgent( * Restores the specified agent from a binary file. * Replaces the current agent with a new one. Note that all existing resources * in agent (e.g. intents, entity types, flows) will be removed. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * Note: You should always train flows prior to sending them queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -1153,6 +1175,13 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * Restores the specified agent from a binary file. * Replaces the current agent with a new one. Note that all existing resources * in agent (e.g. intents, entity types, flows) will be removed. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * Note: You should always train flows prior to sending them queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsGrpc.java new file mode 100644 index 000000000..fa65791d9 --- /dev/null +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsGrpc.java @@ -0,0 +1,476 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.dialogflow.cx.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3.Changelog].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/cx/v3/changelog.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ChangelogsGrpc { + + private ChangelogsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.cx.v3.Changelogs"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest, + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse> + getListChangelogsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListChangelogs", + requestType = com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest, + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse> + getListChangelogsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest, + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse> + getListChangelogsMethod; + if ((getListChangelogsMethod = ChangelogsGrpc.getListChangelogsMethod) == null) { + synchronized (ChangelogsGrpc.class) { + if ((getListChangelogsMethod = ChangelogsGrpc.getListChangelogsMethod) == null) { + ChangelogsGrpc.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.dialogflow.cx.v3.ListChangelogsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ChangelogsMethodDescriptorSupplier("ListChangelogs")) + .build(); + } + } + } + return getListChangelogsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest, + com.google.cloud.dialogflow.cx.v3.Changelog> + getGetChangelogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetChangelog", + requestType = com.google.cloud.dialogflow.cx.v3.GetChangelogRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3.Changelog.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest, + com.google.cloud.dialogflow.cx.v3.Changelog> + getGetChangelogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest, + com.google.cloud.dialogflow.cx.v3.Changelog> + getGetChangelogMethod; + if ((getGetChangelogMethod = ChangelogsGrpc.getGetChangelogMethod) == null) { + synchronized (ChangelogsGrpc.class) { + if ((getGetChangelogMethod = ChangelogsGrpc.getGetChangelogMethod) == null) { + ChangelogsGrpc.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.dialogflow.cx.v3.GetChangelogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.Changelog.getDefaultInstance())) + .setSchemaDescriptor(new ChangelogsMethodDescriptorSupplier("GetChangelog")) + .build(); + } + } + } + return getGetChangelogMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ChangelogsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ChangelogsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsStub(channel, callOptions); + } + }; + return ChangelogsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ChangelogsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ChangelogsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsBlockingStub(channel, callOptions); + } + }; + return ChangelogsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ChangelogsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ChangelogsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsFutureStub(channel, callOptions); + } + }; + return ChangelogsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3.Changelog].
+   * 
+ */ + public abstract static class ChangelogsImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Returns the list of Changelogs.
+     * 
+ */ + public void listChangelogs( + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListChangelogsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified Changelog.
+     * 
+ */ + public void getChangelog( + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetChangelogMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListChangelogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest, + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse>( + this, METHODID_LIST_CHANGELOGS))) + .addMethod( + getGetChangelogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest, + com.google.cloud.dialogflow.cx.v3.Changelog>(this, METHODID_GET_CHANGELOG))) + .build(); + } + } + + /** + * + * + *
+   * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3.Changelog].
+   * 
+ */ + public static final class ChangelogsStub extends io.grpc.stub.AbstractAsyncStub { + private ChangelogsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ChangelogsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of Changelogs.
+     * 
+ */ + public void listChangelogs( + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListChangelogsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified Changelog.
+     * 
+ */ + public void getChangelog( + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetChangelogMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3.Changelog].
+   * 
+ */ + public static final class ChangelogsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ChangelogsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ChangelogsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of Changelogs.
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse listChangelogs( + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListChangelogsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the specified Changelog.
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3.Changelog getChangelog( + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetChangelogMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3.Changelog].
+   * 
+ */ + public static final class ChangelogsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ChangelogsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ChangelogsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of Changelogs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse> + listChangelogs(com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListChangelogsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the specified Changelog.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3.Changelog> + getChangelog(com.google.cloud.dialogflow.cx.v3.GetChangelogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetChangelogMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CHANGELOGS = 0; + private static final int METHODID_GET_CHANGELOG = 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 ChangelogsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ChangelogsImplBase 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_CHANGELOGS: + serviceImpl.listChangelogs( + (com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse>) + responseObserver); + break; + case METHODID_GET_CHANGELOG: + serviceImpl.getChangelog( + (com.google.cloud.dialogflow.cx.v3.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(); + } + } + } + + private abstract static class ChangelogsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ChangelogsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Changelogs"); + } + } + + private static final class ChangelogsFileDescriptorSupplier + extends ChangelogsBaseDescriptorSupplier { + ChangelogsFileDescriptorSupplier() {} + } + + private static final class ChangelogsMethodDescriptorSupplier + extends ChangelogsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ChangelogsMethodDescriptorSupplier(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 (ChangelogsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ChangelogsFileDescriptorSupplier()) + .addMethod(getListChangelogsMethod()) + .addMethod(getGetChangelogMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java new file mode 100644 index 000000000..4df7ddbf8 --- /dev/null +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java @@ -0,0 +1,481 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.dialogflow.cx.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing [Deployments][google.cloud.dialogflow.cx.v3.Deployment].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/cx/v3/deployment.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DeploymentsGrpc { + + private DeploymentsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.cx.v3.Deployments"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest, + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse> + getListDeploymentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeployments", + requestType = com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest, + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse> + getListDeploymentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest, + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse> + getListDeploymentsMethod; + if ((getListDeploymentsMethod = DeploymentsGrpc.getListDeploymentsMethod) == null) { + synchronized (DeploymentsGrpc.class) { + if ((getListDeploymentsMethod = DeploymentsGrpc.getListDeploymentsMethod) == null) { + DeploymentsGrpc.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.dialogflow.cx.v3.ListDeploymentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DeploymentsMethodDescriptorSupplier("ListDeployments")) + .build(); + } + } + } + return getListDeploymentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest, + com.google.cloud.dialogflow.cx.v3.Deployment> + getGetDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDeployment", + requestType = com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest, + com.google.cloud.dialogflow.cx.v3.Deployment> + getGetDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest, + com.google.cloud.dialogflow.cx.v3.Deployment> + getGetDeploymentMethod; + if ((getGetDeploymentMethod = DeploymentsGrpc.getGetDeploymentMethod) == null) { + synchronized (DeploymentsGrpc.class) { + if ((getGetDeploymentMethod = DeploymentsGrpc.getGetDeploymentMethod) == null) { + DeploymentsGrpc.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.dialogflow.cx.v3.GetDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.Deployment.getDefaultInstance())) + .setSchemaDescriptor(new DeploymentsMethodDescriptorSupplier("GetDeployment")) + .build(); + } + } + } + return getGetDeploymentMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DeploymentsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeploymentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsStub(channel, callOptions); + } + }; + return DeploymentsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DeploymentsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeploymentsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsBlockingStub(channel, callOptions); + } + }; + return DeploymentsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DeploymentsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeploymentsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsFutureStub(channel, callOptions); + } + }; + return DeploymentsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing [Deployments][google.cloud.dialogflow.cx.v3.Deployment].
+   * 
+ */ + public abstract static class DeploymentsImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * 
+ */ + public void listDeployments( + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeploymentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * 
+ */ + public void getDeployment( + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDeploymentMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListDeploymentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest, + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse>( + this, METHODID_LIST_DEPLOYMENTS))) + .addMethod( + getGetDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest, + com.google.cloud.dialogflow.cx.v3.Deployment>(this, METHODID_GET_DEPLOYMENT))) + .build(); + } + } + + /** + * + * + *
+   * Service for managing [Deployments][google.cloud.dialogflow.cx.v3.Deployment].
+   * 
+ */ + public static final class DeploymentsStub + extends io.grpc.stub.AbstractAsyncStub { + private DeploymentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeploymentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * 
+ */ + public void listDeployments( + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * 
+ */ + public void getDeployment( + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service for managing [Deployments][google.cloud.dialogflow.cx.v3.Deployment].
+   * 
+ */ + public static final class DeploymentsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DeploymentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeploymentsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse listDeployments( + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3.Deployment getDeployment( + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeploymentMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service for managing [Deployments][google.cloud.dialogflow.cx.v3.Deployment].
+   * 
+ */ + public static final class DeploymentsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DeploymentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeploymentsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse> + listDeployments(com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3.Deployment> + getDeployment(com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_DEPLOYMENTS = 0; + private static final int METHODID_GET_DEPLOYMENT = 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 DeploymentsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DeploymentsImplBase 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_DEPLOYMENTS: + serviceImpl.listDeployments( + (com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse>) + responseObserver); + break; + case METHODID_GET_DEPLOYMENT: + serviceImpl.getDeployment( + (com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class DeploymentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DeploymentsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Deployments"); + } + } + + private static final class DeploymentsFileDescriptorSupplier + extends DeploymentsBaseDescriptorSupplier { + DeploymentsFileDescriptorSupplier() {} + } + + private static final class DeploymentsMethodDescriptorSupplier + extends DeploymentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DeploymentsMethodDescriptorSupplier(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 (DeploymentsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DeploymentsFileDescriptorSupplier()) + .addMethod(getListDeploymentsMethod()) + .addMethod(getGetDeploymentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesGrpc.java index 060903cf3..0fe7c3fdb 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/entity_type.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class EntityTypesGrpc { private EntityTypesGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java index ea9640717..fa70a0ade 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/environment.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class EnvironmentsGrpc { private EnvironmentsGrpc() {} @@ -409,6 +410,48 @@ private EnvironmentsGrpc() {} return getListContinuousTestResultsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest, com.google.longrunning.Operation> + getDeployFlowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeployFlow", + requestType = com.google.cloud.dialogflow.cx.v3.DeployFlowRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest, com.google.longrunning.Operation> + getDeployFlowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest, com.google.longrunning.Operation> + getDeployFlowMethod; + if ((getDeployFlowMethod = EnvironmentsGrpc.getDeployFlowMethod) == null) { + synchronized (EnvironmentsGrpc.class) { + if ((getDeployFlowMethod = EnvironmentsGrpc.getDeployFlowMethod) == null) { + EnvironmentsGrpc.getDeployFlowMethod = + getDeployFlowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeployFlow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentsMethodDescriptorSupplier("DeployFlow")) + .build(); + } + } + } + return getDeployFlowMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static EnvironmentsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -494,6 +537,12 @@ public void getEnvironment( * *
      * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
      * 
*/ public void createEnvironment( @@ -508,6 +557,12 @@ public void createEnvironment( * *
      * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
      * 
*/ public void updateEnvironment( @@ -552,6 +607,11 @@ public void lookupEnvironmentHistory( * *
      * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
+     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
      * 
*/ public void runContinuousTest( @@ -577,6 +637,24 @@ public void listContinuousTestResults( getListContinuousTestResultsMethod(), responseObserver); } + /** + * + * + *
+     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
+     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
+     * 
+ */ + public void deployFlow( + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeployFlowMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -632,6 +710,12 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest, com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse>( this, METHODID_LIST_CONTINUOUS_TEST_RESULTS))) + .addMethod( + getDeployFlowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest, + com.google.longrunning.Operation>(this, METHODID_DEPLOY_FLOW))) .build(); } } @@ -693,6 +777,12 @@ public void getEnvironment( * *
      * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
      * 
*/ public void createEnvironment( @@ -709,6 +799,12 @@ public void createEnvironment( * *
      * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
      * 
*/ public void updateEnvironment( @@ -759,6 +855,11 @@ public void lookupEnvironmentHistory( * *
      * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
+     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
      * 
*/ public void runContinuousTest( @@ -787,6 +888,25 @@ public void listContinuousTestResults( request, responseObserver); } + + /** + * + * + *
+     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
+     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
+     * 
+ */ + public void deployFlow( + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeployFlowMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -839,6 +959,12 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment( * *
      * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
      * 
*/ public com.google.longrunning.Operation createEnvironment( @@ -852,6 +978,12 @@ public com.google.longrunning.Operation createEnvironment( * *
      * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
      * 
*/ public com.google.longrunning.Operation updateEnvironment( @@ -892,6 +1024,11 @@ public com.google.protobuf.Empty deleteEnvironment( * *
      * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
+     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
      * 
*/ public com.google.longrunning.Operation runContinuousTest( @@ -913,6 +1050,24 @@ public com.google.longrunning.Operation runContinuousTest( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListContinuousTestResultsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
+     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
+     * 
+ */ + public com.google.longrunning.Operation deployFlow( + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployFlowMethod(), getCallOptions(), request); + } } /** @@ -967,6 +1122,12 @@ protected EnvironmentsFutureStub build( * *
      * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -980,6 +1141,12 @@ protected EnvironmentsFutureStub build( * *
      * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1021,6 +1188,11 @@ protected EnvironmentsFutureStub build( * *
      * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
+     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1043,6 +1215,24 @@ protected EnvironmentsFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListContinuousTestResultsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
+     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deployFlow(com.google.cloud.dialogflow.cx.v3.DeployFlowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeployFlowMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_ENVIRONMENTS = 0; @@ -1053,6 +1243,7 @@ protected EnvironmentsFutureStub build( private static final int METHODID_LOOKUP_ENVIRONMENT_HISTORY = 5; private static final int METHODID_RUN_CONTINUOUS_TEST = 6; private static final int METHODID_LIST_CONTINUOUS_TEST_RESULTS = 7; + private static final int METHODID_DEPLOY_FLOW = 8; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1118,6 +1309,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse>) responseObserver); break; + case METHODID_DEPLOY_FLOW: + serviceImpl.deployFlow( + (com.google.cloud.dialogflow.cx.v3.DeployFlowRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1190,6 +1386,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getLookupEnvironmentHistoryMethod()) .addMethod(getRunContinuousTestMethod()) .addMethod(getListContinuousTestResultsMethod()) + .addMethod(getDeployFlowMethod()) .build(); } } diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java index cd9fb04f4..00b424a9f 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/experiment.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class ExperimentsGrpc { private ExperimentsGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java index 4cf4592c6..893d5819a 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/flow.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class FlowsGrpc { private FlowsGrpc() {} @@ -602,6 +603,13 @@ public void updateFlow( *
      * Trains the specified flow. Note that only the flow in 'draft' environment
      * is trained.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -651,6 +659,12 @@ public void getFlowValidationResult(
      *
      * 
      * Imports the specified flow to the specified agent from a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse]
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -667,6 +681,12 @@ public void importFlow(
      *
      * 
      * Exports the specified flow to a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse]
      * Note that resources (e.g. intents, entities, webhooks) that the flow
      * references will also be exported.
      * 
@@ -847,6 +867,13 @@ public void updateFlow( *
      * Trains the specified flow. Note that only the flow in 'draft' environment
      * is trained.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -901,6 +928,12 @@ public void getFlowValidationResult(
      *
      * 
      * Imports the specified flow to the specified agent from a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse]
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -918,6 +951,12 @@ public void importFlow(
      *
      * 
      * Exports the specified flow to a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse]
      * Note that resources (e.g. intents, entities, webhooks) that the flow
      * references will also be exported.
      * 
@@ -1025,6 +1064,13 @@ public com.google.cloud.dialogflow.cx.v3.Flow updateFlow( *
      * Trains the specified flow. Note that only the flow in 'draft' environment
      * is trained.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -1070,6 +1116,12 @@ public com.google.cloud.dialogflow.cx.v3.FlowValidationResult getFlowValidationR
      *
      * 
      * Imports the specified flow to the specified agent from a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse]
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -1086,6 +1138,12 @@ public com.google.longrunning.Operation importFlow(
      *
      * 
      * Exports the specified flow to a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse]
      * Note that resources (e.g. intents, entities, webhooks) that the flow
      * references will also be exported.
      * 
@@ -1196,6 +1254,13 @@ public com.google.common.util.concurrent.ListenableFuture * Trains the specified flow. Note that only the flow in 'draft' environment * is trained. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -1244,6 +1309,12 @@ public com.google.common.util.concurrent.ListenableFuture * Imports the specified flow to the specified agent from a binary file. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -1260,6 +1331,12 @@ public com.google.common.util.concurrent.ListenableFuture * Exports the specified flow to a binary file. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] * Note that resources (e.g. intents, entities, webhooks) that the flow * references will also be exported. *
diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsGrpc.java index a35857be1..6befb93cd 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/intent.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class IntentsGrpc { private IntentsGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesGrpc.java index 02c4442a3..0aef725f8 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/page.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class PagesGrpc { private PagesGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java index 8ced2a61d..ee0c0221a 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/security_settings.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class SecuritySettingsServiceGrpc { private SecuritySettingsServiceGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java index 164ff4b5e..386651e38 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/session_entity_type.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class SessionEntityTypesGrpc { private SessionEntityTypesGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java index 1719e59fc..3c57c2fec 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java @@ -29,6 +29,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/session.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class SessionsGrpc { private SessionsGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java index bacac2595..debb55e00 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java @@ -28,6 +28,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/test_case.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class TestCasesGrpc { private TestCasesGrpc() {} @@ -726,6 +727,11 @@ public void runTestCase( * *
      * Kicks off a batch run of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata]
+     * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]
      * 
*/ public void batchRunTestCases( @@ -757,6 +763,11 @@ public void calculateCoverage( * Imports the test cases from a Cloud Storage bucket or a local file. It * always creates new test cases and won't overwite any existing ones. The * provided ID in the imported test case is neglected. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] + * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] *
*/ public void importTestCases( @@ -772,6 +783,11 @@ public void importTestCases( *
      * Exports the test cases under the agent to a Cloud Storage bucket or a local
      * file. Filter can be applied to export a subset of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata]
+     * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
      * 
*/ public void exportTestCases( @@ -1019,6 +1035,11 @@ public void runTestCase( * *
      * Kicks off a batch run of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata]
+     * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]
      * 
*/ public void batchRunTestCases( @@ -1054,6 +1075,11 @@ public void calculateCoverage( * Imports the test cases from a Cloud Storage bucket or a local file. It * always creates new test cases and won't overwite any existing ones. The * provided ID in the imported test case is neglected. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] + * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] *
*/ public void importTestCases( @@ -1071,6 +1097,11 @@ public void importTestCases( *
      * Exports the test cases under the agent to a Cloud Storage bucket or a local
      * file. Filter can be applied to export a subset of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata]
+     * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
      * 
*/ public void exportTestCases( @@ -1225,6 +1256,11 @@ public com.google.longrunning.Operation runTestCase( * *
      * Kicks off a batch run of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata]
+     * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]
      * 
*/ public com.google.longrunning.Operation batchRunTestCases( @@ -1253,6 +1289,11 @@ public com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse calculateCove * Imports the test cases from a Cloud Storage bucket or a local file. It * always creates new test cases and won't overwite any existing ones. The * provided ID in the imported test case is neglected. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] + * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] *
*/ public com.google.longrunning.Operation importTestCases( @@ -1267,6 +1308,11 @@ public com.google.longrunning.Operation importTestCases( *
      * Exports the test cases under the agent to a Cloud Storage bucket or a local
      * file. Filter can be applied to export a subset of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata]
+     * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
      * 
*/ public com.google.longrunning.Operation exportTestCases( @@ -1414,6 +1460,11 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
      * Kicks off a batch run of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata]
+     * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1443,6 +1494,11 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * Imports the test cases from a Cloud Storage bucket or a local file. It * always creates new test cases and won't overwite any existing ones. The * provided ID in the imported test case is neglected. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] + * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] *
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1457,6 +1513,11 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions *
      * Exports the test cases under the agent to a Cloud Storage bucket or a local
      * file. Filter can be applied to export a subset of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata]
+     * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java index f3bf4a512..f4dd552f5 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/transition_route_group.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class TransitionRouteGroupsGrpc { private TransitionRouteGroupsGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java index f032bff54..e3f655762 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/version.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class VersionsGrpc { private VersionsGrpc() {} @@ -297,6 +298,52 @@ private VersionsGrpc() {} return getLoadVersionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest, + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse> + getCompareVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CompareVersions", + requestType = com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest, + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse> + getCompareVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest, + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse> + getCompareVersionsMethod; + if ((getCompareVersionsMethod = VersionsGrpc.getCompareVersionsMethod) == null) { + synchronized (VersionsGrpc.class) { + if ((getCompareVersionsMethod = VersionsGrpc.getCompareVersionsMethod) == null) { + VersionsGrpc.getCompareVersionsMethod = + getCompareVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompareVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("CompareVersions")) + .build(); + } + } + } + return getCompareVersionsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static VersionsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -379,6 +426,11 @@ public void getVersion( * *
      * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
+     * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
      * 
*/ public void createVersion( @@ -421,6 +473,13 @@ public void deleteVersion( * *
      * Loads resources in the specified version to the draft flow.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ public void loadVersion( @@ -430,6 +489,21 @@ public void loadVersion( getLoadVersionMethod(), responseObserver); } + /** + * + * + *
+     * Compares the specified base version with target version.
+     * 
+ */ + public void compareVersions( + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCompareVersionsMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -470,6 +544,13 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.dialogflow.cx.v3.LoadVersionRequest, com.google.longrunning.Operation>(this, METHODID_LOAD_VERSION))) + .addMethod( + getCompareVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest, + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse>( + this, METHODID_COMPARE_VERSIONS))) .build(); } } @@ -527,6 +608,11 @@ public void getVersion( * *
      * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
+     * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
      * 
*/ public void createVersion( @@ -575,6 +661,13 @@ public void deleteVersion( * *
      * Loads resources in the specified version to the draft flow.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ public void loadVersion( @@ -585,6 +678,23 @@ public void loadVersion( request, responseObserver); } + + /** + * + * + *
+     * Compares the specified base version with target version.
+     * 
+ */ + public void compareVersions( + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCompareVersionsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -636,6 +746,11 @@ public com.google.cloud.dialogflow.cx.v3.Version getVersion( * *
      * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
+     * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
      * 
*/ public com.google.longrunning.Operation createVersion( @@ -675,6 +790,13 @@ public com.google.protobuf.Empty deleteVersion( * *
      * Loads resources in the specified version to the draft flow.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ public com.google.longrunning.Operation loadVersion( @@ -682,6 +804,19 @@ public com.google.longrunning.Operation loadVersion( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getLoadVersionMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Compares the specified base version with target version.
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse compareVersions( + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCompareVersionsMethod(), getCallOptions(), request); + } } /** @@ -735,6 +870,11 @@ protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
      * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
+     * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -775,6 +915,13 @@ protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
      * Loads resources in the specified version to the draft flow.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -782,6 +929,20 @@ protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getLoadVersionMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Compares the specified base version with target version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse> + compareVersions(com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCompareVersionsMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_VERSIONS = 0; @@ -790,6 +951,7 @@ protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_UPDATE_VERSION = 3; private static final int METHODID_DELETE_VERSION = 4; private static final int METHODID_LOAD_VERSION = 5; + private static final int METHODID_COMPARE_VERSIONS = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -841,6 +1003,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dialogflow.cx.v3.LoadVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_COMPARE_VERSIONS: + serviceImpl.compareVersions( + (com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -909,6 +1078,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateVersionMethod()) .addMethod(getDeleteVersionMethod()) .addMethod(getLoadVersionMethod()) + .addMethod(getCompareVersionsMethod()) .build(); } } diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksGrpc.java index 3c43a4207..2ba41f61b 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3/webhook.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class WebhooksGrpc { private WebhooksGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java deleted file mode 100644 index 16f28b5c2..000000000 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.location; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * An abstract interface that provides location-related information for
- * a service. Service-specific metadata is provided through the
- * [Location.metadata][google.cloud.location.Location.metadata] field.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/location/locations.proto") -public final class LocationsGrpc { - - private LocationsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.location.Locations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLocations", - requestType = com.google.cloud.location.ListLocationsRequest.class, - responseType = com.google.cloud.location.ListLocationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod; - if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { - synchronized (LocationsGrpc.class) { - if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { - LocationsGrpc.getListLocationsMethod = - getListLocationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.ListLocationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations")) - .build(); - } - } - } - return getListLocationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLocation", - requestType = com.google.cloud.location.GetLocationRequest.class, - responseType = com.google.cloud.location.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod; - if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { - synchronized (LocationsGrpc.class) { - if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { - LocationsGrpc.getGetLocationMethod = - getGetLocationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.GetLocationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.Location.getDefaultInstance())) - .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation")) - .build(); - } - } - } - return getGetLocationMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static LocationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsStub(channel, callOptions); - } - }; - return LocationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - }; - return LocationsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsFutureStub(channel, callOptions); - } - }; - return LocationsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public abstract static class LocationsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLocationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLocationMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - this, METHODID_LIST_LOCATIONS))) - .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>(this, METHODID_GET_LOCATION))) - .build(); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public com.google.cloud.location.ListLocationsResponse listLocations( - com.google.cloud.location.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLocationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public com.google.cloud.location.Location getLocation( - com.google.cloud.location.GetLocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLocationMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.location.ListLocationsResponse> - listLocations(com.google.cloud.location.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getLocation(com.google.cloud.location.GetLocationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_LOCATIONS = 0; - private static final int METHODID_GET_LOCATION = 1; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final LocationsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(LocationsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_LOCATIONS: - serviceImpl.listLocations( - (com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_LOCATION: - serviceImpl.getLocation( - (com.google.cloud.location.GetLocationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - LocationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.location.LocationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Locations"); - } - } - - private static final class LocationsFileDescriptorSupplier - extends LocationsBaseDescriptorSupplier { - LocationsFileDescriptorSupplier() {} - } - - private static final class LocationsMethodDescriptorSupplier - extends LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - LocationsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (LocationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/clirr-ignored-differences.xml b/grpc-google-cloud-dialogflow-cx-v3beta1/clirr-ignored-differences.xml new file mode 100644 index 000000000..7f41d632e --- /dev/null +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/clirr-ignored-differences.xml @@ -0,0 +1,8 @@ + + + + + 8001 + com/google/cloud/location/*Location* + + diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml b/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml index cd04a21bd..06670c415 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/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.10.1 + 0.11.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.10.1 + 0.11.0 diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsGrpc.java index 34b90bd21..826745766 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/agent.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class AgentsGrpc { private AgentsGrpc() {} @@ -597,6 +598,13 @@ public void exportAgent( * Restores the specified agent from a binary file. * Replaces the current agent with a new one. Note that all existing resources * in agent (e.g. intents, entity types, flows) will be removed. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -838,6 +846,13 @@ public void exportAgent( * Restores the specified agent from a binary file. * Replaces the current agent with a new one. Note that all existing resources * in agent (e.g. intents, entity types, flows) will be removed. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -1005,6 +1020,13 @@ public com.google.longrunning.Operation exportAgent( * Restores the specified agent from a binary file. * Replaces the current agent with a new one. Note that all existing resources * in agent (e.g. intents, entity types, flows) will be removed. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -1165,6 +1187,13 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * Restores the specified agent from a binary file. * Replaces the current agent with a new one. Note that all existing resources * in agent (e.g. intents, entity types, flows) will be removed. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsGrpc.java new file mode 100644 index 000000000..f81a26edd --- /dev/null +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsGrpc.java @@ -0,0 +1,480 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.dialogflow.cx.v3beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3beta1.Changelog].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/cx/v3beta1/changelog.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ChangelogsGrpc { + + private ChangelogsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.cx.v3beta1.Changelogs"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse> + getListChangelogsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListChangelogs", + requestType = com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse> + getListChangelogsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse> + getListChangelogsMethod; + if ((getListChangelogsMethod = ChangelogsGrpc.getListChangelogsMethod) == null) { + synchronized (ChangelogsGrpc.class) { + if ((getListChangelogsMethod = ChangelogsGrpc.getListChangelogsMethod) == null) { + ChangelogsGrpc.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.dialogflow.cx.v3beta1.ListChangelogsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ChangelogsMethodDescriptorSupplier("ListChangelogs")) + .build(); + } + } + } + return getListChangelogsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, + com.google.cloud.dialogflow.cx.v3beta1.Changelog> + getGetChangelogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetChangelog", + requestType = com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3beta1.Changelog.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, + com.google.cloud.dialogflow.cx.v3beta1.Changelog> + getGetChangelogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, + com.google.cloud.dialogflow.cx.v3beta1.Changelog> + getGetChangelogMethod; + if ((getGetChangelogMethod = ChangelogsGrpc.getGetChangelogMethod) == null) { + synchronized (ChangelogsGrpc.class) { + if ((getGetChangelogMethod = ChangelogsGrpc.getGetChangelogMethod) == null) { + ChangelogsGrpc.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.dialogflow.cx.v3beta1.GetChangelogRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3beta1.Changelog + .getDefaultInstance())) + .setSchemaDescriptor(new ChangelogsMethodDescriptorSupplier("GetChangelog")) + .build(); + } + } + } + return getGetChangelogMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ChangelogsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ChangelogsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsStub(channel, callOptions); + } + }; + return ChangelogsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ChangelogsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ChangelogsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsBlockingStub(channel, callOptions); + } + }; + return ChangelogsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ChangelogsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ChangelogsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsFutureStub(channel, callOptions); + } + }; + return ChangelogsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3beta1.Changelog].
+   * 
+ */ + public abstract static class ChangelogsImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Returns the list of Changelogs.
+     * 
+ */ + public void listChangelogs( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListChangelogsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified Changelog.
+     * 
+ */ + public void getChangelog( + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetChangelogMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListChangelogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse>( + this, METHODID_LIST_CHANGELOGS))) + .addMethod( + getGetChangelogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, + com.google.cloud.dialogflow.cx.v3beta1.Changelog>( + this, METHODID_GET_CHANGELOG))) + .build(); + } + } + + /** + * + * + *
+   * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3beta1.Changelog].
+   * 
+ */ + public static final class ChangelogsStub extends io.grpc.stub.AbstractAsyncStub { + private ChangelogsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ChangelogsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of Changelogs.
+     * 
+ */ + public void listChangelogs( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListChangelogsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified Changelog.
+     * 
+ */ + public void getChangelog( + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetChangelogMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3beta1.Changelog].
+   * 
+ */ + public static final class ChangelogsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ChangelogsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ChangelogsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of Changelogs.
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse listChangelogs( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListChangelogsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the specified Changelog.
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3beta1.Changelog getChangelog( + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetChangelogMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service for managing [Changelogs][google.cloud.dialogflow.cx.v3beta1.Changelog].
+   * 
+ */ + public static final class ChangelogsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ChangelogsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ChangelogsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChangelogsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of Changelogs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse> + listChangelogs(com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListChangelogsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the specified Changelog.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3beta1.Changelog> + getChangelog(com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetChangelogMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CHANGELOGS = 0; + private static final int METHODID_GET_CHANGELOG = 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 ChangelogsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ChangelogsImplBase 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_CHANGELOGS: + serviceImpl.listChangelogs( + (com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse>) + responseObserver); + break; + case METHODID_GET_CHANGELOG: + serviceImpl.getChangelog( + (com.google.cloud.dialogflow.cx.v3beta1.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(); + } + } + } + + private abstract static class ChangelogsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ChangelogsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Changelogs"); + } + } + + private static final class ChangelogsFileDescriptorSupplier + extends ChangelogsBaseDescriptorSupplier { + ChangelogsFileDescriptorSupplier() {} + } + + private static final class ChangelogsMethodDescriptorSupplier + extends ChangelogsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ChangelogsMethodDescriptorSupplier(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 (ChangelogsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ChangelogsFileDescriptorSupplier()) + .addMethod(getListChangelogsMethod()) + .addMethod(getGetChangelogMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsGrpc.java new file mode 100644 index 000000000..3d3e02d9a --- /dev/null +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsGrpc.java @@ -0,0 +1,483 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.dialogflow.cx.v3beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/cx/v3beta1/deployment.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DeploymentsGrpc { + + private DeploymentsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.cx.v3beta1.Deployments"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse> + getListDeploymentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeployments", + requestType = com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse> + getListDeploymentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse> + getListDeploymentsMethod; + if ((getListDeploymentsMethod = DeploymentsGrpc.getListDeploymentsMethod) == null) { + synchronized (DeploymentsGrpc.class) { + if ((getListDeploymentsMethod = DeploymentsGrpc.getListDeploymentsMethod) == null) { + DeploymentsGrpc.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.dialogflow.cx.v3beta1.ListDeploymentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DeploymentsMethodDescriptorSupplier("ListDeployments")) + .build(); + } + } + } + return getListDeploymentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, + com.google.cloud.dialogflow.cx.v3beta1.Deployment> + getGetDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDeployment", + requestType = com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3beta1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, + com.google.cloud.dialogflow.cx.v3beta1.Deployment> + getGetDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, + com.google.cloud.dialogflow.cx.v3beta1.Deployment> + getGetDeploymentMethod; + if ((getGetDeploymentMethod = DeploymentsGrpc.getGetDeploymentMethod) == null) { + synchronized (DeploymentsGrpc.class) { + if ((getGetDeploymentMethod = DeploymentsGrpc.getGetDeploymentMethod) == null) { + DeploymentsGrpc.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.dialogflow.cx.v3beta1.GetDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3beta1.Deployment + .getDefaultInstance())) + .setSchemaDescriptor(new DeploymentsMethodDescriptorSupplier("GetDeployment")) + .build(); + } + } + } + return getGetDeploymentMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DeploymentsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeploymentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsStub(channel, callOptions); + } + }; + return DeploymentsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DeploymentsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeploymentsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsBlockingStub(channel, callOptions); + } + }; + return DeploymentsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DeploymentsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeploymentsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsFutureStub(channel, callOptions); + } + }; + return DeploymentsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
+   * 
+ */ + public abstract static class DeploymentsImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * 
+ */ + public void listDeployments( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeploymentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+     * 
+ */ + public void getDeployment( + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDeploymentMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListDeploymentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse>( + this, METHODID_LIST_DEPLOYMENTS))) + .addMethod( + getGetDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, + com.google.cloud.dialogflow.cx.v3beta1.Deployment>( + this, METHODID_GET_DEPLOYMENT))) + .build(); + } + } + + /** + * + * + *
+   * Service for managing [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
+   * 
+ */ + public static final class DeploymentsStub + extends io.grpc.stub.AbstractAsyncStub { + private DeploymentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeploymentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * 
+ */ + public void listDeployments( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+     * 
+ */ + public void getDeployment( + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service for managing [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
+   * 
+ */ + public static final class DeploymentsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DeploymentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeploymentsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse listDeployments( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3beta1.Deployment getDeployment( + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeploymentMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service for managing [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment].
+   * 
+ */ + public static final class DeploymentsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DeploymentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeploymentsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse> + listDeployments(com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3beta1.Deployment> + getDeployment(com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_DEPLOYMENTS = 0; + private static final int METHODID_GET_DEPLOYMENT = 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 DeploymentsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DeploymentsImplBase 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_DEPLOYMENTS: + serviceImpl.listDeployments( + (com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse>) + responseObserver); + break; + case METHODID_GET_DEPLOYMENT: + serviceImpl.getDeployment( + (com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class DeploymentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DeploymentsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Deployments"); + } + } + + private static final class DeploymentsFileDescriptorSupplier + extends DeploymentsBaseDescriptorSupplier { + DeploymentsFileDescriptorSupplier() {} + } + + private static final class DeploymentsMethodDescriptorSupplier + extends DeploymentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DeploymentsMethodDescriptorSupplier(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 (DeploymentsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DeploymentsFileDescriptorSupplier()) + .addMethod(getListDeploymentsMethod()) + .addMethod(getGetDeploymentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesGrpc.java index 2f56b1410..7f34266d6 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/entity_type.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class EntityTypesGrpc { private EntityTypesGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsGrpc.java index 4643dc874..a1cc5a89e 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/environment.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class EnvironmentsGrpc { private EnvironmentsGrpc() {} @@ -413,6 +414,51 @@ private EnvironmentsGrpc() {} return getListContinuousTestResultsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, + com.google.longrunning.Operation> + getDeployFlowMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeployFlow", + requestType = com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, + com.google.longrunning.Operation> + getDeployFlowMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, + com.google.longrunning.Operation> + getDeployFlowMethod; + if ((getDeployFlowMethod = EnvironmentsGrpc.getDeployFlowMethod) == null) { + synchronized (EnvironmentsGrpc.class) { + if ((getDeployFlowMethod = EnvironmentsGrpc.getDeployFlowMethod) == null) { + EnvironmentsGrpc.getDeployFlowMethod = + getDeployFlowMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeployFlow")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentsMethodDescriptorSupplier("DeployFlow")) + .build(); + } + } + } + return getDeployFlowMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static EnvironmentsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -498,6 +544,12 @@ public void getEnvironment( * *
      * Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
      * 
*/ public void createEnvironment( @@ -512,6 +564,12 @@ public void createEnvironment( * *
      * Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
      * 
*/ public void updateEnvironment( @@ -556,6 +614,11 @@ public void lookupEnvironmentHistory( * *
      * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata]
+     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]
      * 
*/ public void runContinuousTest( @@ -581,6 +644,24 @@ public void listContinuousTestResults( getListContinuousTestResultsMethod(), responseObserver); } + /** + * + * + *
+     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata]
+     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]
+     * 
+ */ + public void deployFlow( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeployFlowMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -636,6 +717,12 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse>( this, METHODID_LIST_CONTINUOUS_TEST_RESULTS))) + .addMethod( + getDeployFlowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, + com.google.longrunning.Operation>(this, METHODID_DEPLOY_FLOW))) .build(); } } @@ -697,6 +784,12 @@ public void getEnvironment( * *
      * Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
      * 
*/ public void createEnvironment( @@ -713,6 +806,12 @@ public void createEnvironment( * *
      * Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
      * 
*/ public void updateEnvironment( @@ -763,6 +862,11 @@ public void lookupEnvironmentHistory( * *
      * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata]
+     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]
      * 
*/ public void runContinuousTest( @@ -791,6 +895,25 @@ public void listContinuousTestResults( request, responseObserver); } + + /** + * + * + *
+     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata]
+     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]
+     * 
+ */ + public void deployFlow( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeployFlowMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -843,6 +966,12 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment getEnvironment( * *
      * Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
      * 
*/ public com.google.longrunning.Operation createEnvironment( @@ -856,6 +985,12 @@ public com.google.longrunning.Operation createEnvironment( * *
      * Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
      * 
*/ public com.google.longrunning.Operation updateEnvironment( @@ -896,6 +1031,11 @@ public com.google.protobuf.Empty deleteEnvironment( * *
      * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata]
+     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]
      * 
*/ public com.google.longrunning.Operation runContinuousTest( @@ -917,6 +1057,24 @@ public com.google.longrunning.Operation runContinuousTest( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListContinuousTestResultsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata]
+     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]
+     * 
+ */ + public com.google.longrunning.Operation deployFlow( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeployFlowMethod(), getCallOptions(), request); + } } /** @@ -971,6 +1129,12 @@ protected EnvironmentsFutureStub build( * *
      * Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -984,6 +1148,12 @@ protected EnvironmentsFutureStub build( * *
      * Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1025,6 +1195,11 @@ protected EnvironmentsFutureStub build( * *
      * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata]
+     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1047,6 +1222,24 @@ protected EnvironmentsFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListContinuousTestResultsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata]
+     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deployFlow(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeployFlowMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_ENVIRONMENTS = 0; @@ -1057,6 +1250,7 @@ protected EnvironmentsFutureStub build( private static final int METHODID_LOOKUP_ENVIRONMENT_HISTORY = 5; private static final int METHODID_RUN_CONTINUOUS_TEST = 6; private static final int METHODID_LIST_CONTINUOUS_TEST_RESULTS = 7; + private static final int METHODID_DEPLOY_FLOW = 8; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1122,6 +1316,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse>) responseObserver); break; + case METHODID_DEPLOY_FLOW: + serviceImpl.deployFlow( + (com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1194,6 +1393,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getLookupEnvironmentHistoryMethod()) .addMethod(getRunContinuousTestMethod()) .addMethod(getListContinuousTestResultsMethod()) + .addMethod(getDeployFlowMethod()) .build(); } } diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsGrpc.java index 2211af302..12f2b1df1 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/experiment.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class ExperimentsGrpc { private ExperimentsGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsGrpc.java index 76b873cc1..c7f6e7622 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/flow.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class FlowsGrpc { private FlowsGrpc() {} @@ -611,6 +612,13 @@ public void updateFlow( *
      * Trains the specified flow. Note that only the flow in 'draft' environment
      * is trained.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -660,6 +668,12 @@ public void getFlowValidationResult(
      *
      * 
      * Imports the specified flow to the specified agent from a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse]
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -676,6 +690,12 @@ public void importFlow(
      *
      * 
      * Exports the specified flow to a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse]
      * Note that resources (e.g. intents, entities, webhooks) that the flow
      * references will also be exported.
      * 
@@ -856,6 +876,13 @@ public void updateFlow( *
      * Trains the specified flow. Note that only the flow in 'draft' environment
      * is trained.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -910,6 +937,12 @@ public void getFlowValidationResult(
      *
      * 
      * Imports the specified flow to the specified agent from a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse]
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -927,6 +960,12 @@ public void importFlow(
      *
      * 
      * Exports the specified flow to a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse]
      * Note that resources (e.g. intents, entities, webhooks) that the flow
      * references will also be exported.
      * 
@@ -1034,6 +1073,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.Flow updateFlow( *
      * Trains the specified flow. Note that only the flow in 'draft' environment
      * is trained.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -1079,6 +1125,12 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult getFlowValida
      *
      * 
      * Imports the specified flow to the specified agent from a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse]
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -1095,6 +1147,12 @@ public com.google.longrunning.Operation importFlow(
      *
      * 
      * Exports the specified flow to a binary file.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse]
      * Note that resources (e.g. intents, entities, webhooks) that the flow
      * references will also be exported.
      * 
@@ -1205,6 +1263,13 @@ public com.google.common.util.concurrent.ListenableFuture * Trains the specified flow. Note that only the flow in 'draft' environment * is trained. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: An [Empty + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -1253,6 +1318,12 @@ public com.google.common.util.concurrent.ListenableFuture * Imports the specified flow to the specified agent from a binary file. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse] * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -1269,6 +1340,12 @@ public com.google.common.util.concurrent.ListenableFuture * Exports the specified flow to a binary file. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: An empty [Struct + * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse] * Note that resources (e.g. intents, entities, webhooks) that the flow * references will also be exported. *
diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsGrpc.java index bdf589c72..1acddfd2d 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/intent.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class IntentsGrpc { private IntentsGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesGrpc.java index add1774c4..40738ed9a 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/page.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class PagesGrpc { private PagesGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceGrpc.java index 07a747707..ed2b93c85 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/security_settings.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class SecuritySettingsServiceGrpc { private SecuritySettingsServiceGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java index b1c892946..e0433373d 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class SessionEntityTypesGrpc { private SessionEntityTypesGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsGrpc.java index e3903c569..f62ddea96 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsGrpc.java @@ -29,6 +29,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/session.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class SessionsGrpc { private SessionsGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java index 0096bac5a..0d81900f5 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java @@ -28,6 +28,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/test_case.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class TestCasesGrpc { private TestCasesGrpc() {} @@ -734,6 +735,11 @@ public void runTestCase( * *
      * Kicks off a batch run of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata]
+     * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse]
      * 
*/ public void batchRunTestCases( @@ -766,6 +772,11 @@ public void calculateCoverage( * Imports the test cases from a Cloud Storage bucket or a local file. It * always creates new test cases and won't overwite any existing ones. The * provided ID in the imported test case is neglected. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata] + * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse] *
*/ public void importTestCases( @@ -781,6 +792,11 @@ public void importTestCases( *
      * Exports the test cases under the agent to a Cloud Storage bucket or a local
      * file. Filter can be applied to export a subset of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata]
+     * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse]
      * 
*/ public void exportTestCases( @@ -1035,6 +1051,11 @@ public void runTestCase( * *
      * Kicks off a batch run of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata]
+     * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse]
      * 
*/ public void batchRunTestCases( @@ -1071,6 +1092,11 @@ public void calculateCoverage( * Imports the test cases from a Cloud Storage bucket or a local file. It * always creates new test cases and won't overwite any existing ones. The * provided ID in the imported test case is neglected. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata] + * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse] *
*/ public void importTestCases( @@ -1088,6 +1114,11 @@ public void importTestCases( *
      * Exports the test cases under the agent to a Cloud Storage bucket or a local
      * file. Filter can be applied to export a subset of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata]
+     * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse]
      * 
*/ public void exportTestCases( @@ -1243,6 +1274,11 @@ public com.google.longrunning.Operation runTestCase( * *
      * Kicks off a batch run of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata]
+     * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse]
      * 
*/ public com.google.longrunning.Operation batchRunTestCases( @@ -1271,6 +1307,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse calculat * Imports the test cases from a Cloud Storage bucket or a local file. It * always creates new test cases and won't overwite any existing ones. The * provided ID in the imported test case is neglected. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata] + * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse] *
*/ public com.google.longrunning.Operation importTestCases( @@ -1285,6 +1326,11 @@ public com.google.longrunning.Operation importTestCases( *
      * Exports the test cases under the agent to a Cloud Storage bucket or a local
      * file. Filter can be applied to export a subset of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata]
+     * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse]
      * 
*/ public com.google.longrunning.Operation exportTestCases( @@ -1432,6 +1478,11 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
      * Kicks off a batch run of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata]
+     * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1461,6 +1512,11 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * Imports the test cases from a Cloud Storage bucket or a local file. It * always creates new test cases and won't overwite any existing ones. The * provided ID in the imported test case is neglected. + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata] + * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse] *
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1475,6 +1531,11 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions *
      * Exports the test cases under the agent to a Cloud Storage bucket or a local
      * file. Filter can be applied to export a subset of test cases.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata]
+     * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsGrpc.java index db07e8446..0baec3fe1 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class TransitionRouteGroupsGrpc { private TransitionRouteGroupsGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsGrpc.java index f9ebf75da..663253092 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/version.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class VersionsGrpc { private VersionsGrpc() {} @@ -302,6 +303,52 @@ private VersionsGrpc() {} return getLoadVersionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse> + getCompareVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CompareVersions", + requestType = com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse> + getCompareVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse> + getCompareVersionsMethod; + if ((getCompareVersionsMethod = VersionsGrpc.getCompareVersionsMethod) == null) { + synchronized (VersionsGrpc.class) { + if ((getCompareVersionsMethod = VersionsGrpc.getCompareVersionsMethod) == null) { + VersionsGrpc.getCompareVersionsMethod = + getCompareVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompareVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("CompareVersions")) + .build(); + } + } + } + return getCompareVersionsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static VersionsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -385,6 +432,11 @@ public void getVersion( * *
      * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata]
+     * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version]
      * 
*/ public void createVersion( @@ -428,6 +480,13 @@ public void deleteVersion( * *
      * Loads resources in the specified version to the draft flow.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ public void loadVersion( @@ -437,6 +496,21 @@ public void loadVersion( getLoadVersionMethod(), responseObserver); } + /** + * + * + *
+     * Compares the specified base version with target version.
+     * 
+ */ + public void compareVersions( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCompareVersionsMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -478,6 +552,13 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, com.google.longrunning.Operation>(this, METHODID_LOAD_VERSION))) + .addMethod( + getCompareVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse>( + this, METHODID_COMPARE_VERSIONS))) .build(); } } @@ -536,6 +617,11 @@ public void getVersion( * *
      * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata]
+     * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version]
      * 
*/ public void createVersion( @@ -585,6 +671,13 @@ public void deleteVersion( * *
      * Loads resources in the specified version to the draft flow.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ public void loadVersion( @@ -595,6 +688,23 @@ public void loadVersion( request, responseObserver); } + + /** + * + * + *
+     * Compares the specified base version with target version.
+     * 
+ */ + public void compareVersions( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCompareVersionsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -646,6 +756,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.Version getVersion( * *
      * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata]
+     * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version]
      * 
*/ public com.google.longrunning.Operation createVersion( @@ -685,6 +800,13 @@ public com.google.protobuf.Empty deleteVersion( * *
      * Loads resources in the specified version to the draft flow.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ public com.google.longrunning.Operation loadVersion( @@ -692,6 +814,19 @@ public com.google.longrunning.Operation loadVersion( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getLoadVersionMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Compares the specified base version with target version.
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse compareVersions( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCompareVersionsMethod(), getCallOptions(), request); + } } /** @@ -745,6 +880,11 @@ protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
      * Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata]
+     * - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -785,6 +925,13 @@ protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
      * Loads resources in the specified version to the draft flow.
+     * This method is a [long-running
+     * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
+     * The returned `Operation` type has the following method-specific fields:
+     * - `metadata`: An empty [Struct
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
+     * - `response`: An [Empty
+     *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -792,6 +939,20 @@ protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getLoadVersionMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Compares the specified base version with target version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse> + compareVersions(com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCompareVersionsMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_VERSIONS = 0; @@ -800,6 +961,7 @@ protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_UPDATE_VERSION = 3; private static final int METHODID_DELETE_VERSION = 4; private static final int METHODID_LOAD_VERSION = 5; + private static final int METHODID_COMPARE_VERSIONS = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -852,6 +1014,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_COMPARE_VERSIONS: + serviceImpl.compareVersions( + (com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -920,6 +1089,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateVersionMethod()) .addMethod(getDeleteVersionMethod()) .addMethod(getLoadVersionMethod()) + .addMethod(getCompareVersionsMethod()) .build(); } } diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksGrpc.java index 84dc44eaa..a8ddca445 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksGrpc.java @@ -27,6 +27,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/webhook.proto") +@io.grpc.stub.annotations.GrpcGenerated public final class WebhooksGrpc { private WebhooksGrpc() {} diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java deleted file mode 100644 index 16f28b5c2..000000000 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.location; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * An abstract interface that provides location-related information for
- * a service. Service-specific metadata is provided through the
- * [Location.metadata][google.cloud.location.Location.metadata] field.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/location/locations.proto") -public final class LocationsGrpc { - - private LocationsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.location.Locations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLocations", - requestType = com.google.cloud.location.ListLocationsRequest.class, - responseType = com.google.cloud.location.ListLocationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod; - if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { - synchronized (LocationsGrpc.class) { - if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { - LocationsGrpc.getListLocationsMethod = - getListLocationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.ListLocationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations")) - .build(); - } - } - } - return getListLocationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLocation", - requestType = com.google.cloud.location.GetLocationRequest.class, - responseType = com.google.cloud.location.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod; - if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { - synchronized (LocationsGrpc.class) { - if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { - LocationsGrpc.getGetLocationMethod = - getGetLocationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.GetLocationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.Location.getDefaultInstance())) - .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation")) - .build(); - } - } - } - return getGetLocationMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static LocationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsStub(channel, callOptions); - } - }; - return LocationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - }; - return LocationsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsFutureStub(channel, callOptions); - } - }; - return LocationsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public abstract static class LocationsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLocationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLocationMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - this, METHODID_LIST_LOCATIONS))) - .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>(this, METHODID_GET_LOCATION))) - .build(); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public com.google.cloud.location.ListLocationsResponse listLocations( - com.google.cloud.location.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLocationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public com.google.cloud.location.Location getLocation( - com.google.cloud.location.GetLocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLocationMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.location.ListLocationsResponse> - listLocations(com.google.cloud.location.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getLocation(com.google.cloud.location.GetLocationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_LOCATIONS = 0; - private static final int METHODID_GET_LOCATION = 1; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final LocationsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(LocationsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_LOCATIONS: - serviceImpl.listLocations( - (com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_LOCATION: - serviceImpl.getLocation( - (com.google.cloud.location.GetLocationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - LocationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.location.LocationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Locations"); - } - } - - private static final class LocationsFileDescriptorSupplier - extends LocationsBaseDescriptorSupplier { - LocationsFileDescriptorSupplier() {} - } - - private static final class LocationsMethodDescriptorSupplier - extends LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - LocationsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (LocationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/pom.xml b/pom.xml index 06cb67129..85aaadc33 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-cx-parent pom - 0.10.1 + 0.11.0 Google Dialogflow CX Parent https://github.com/googleapis/java-dialogflow-cx @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.2 + 1.2.4 @@ -61,33 +61,33 @@ com.google.cloud google-cloud-dialogflow-cx - 0.10.1 + 0.11.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.10.1 + 0.11.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.10.1 + 0.11.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.10.1 + 0.11.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.10.1 + 0.11.0 com.google.cloud google-cloud-shared-dependencies - 2.3.0 + 2.6.0 pom import diff --git a/proto-google-cloud-dialogflow-cx-v3/clirr-ignored-differences.xml b/proto-google-cloud-dialogflow-cx-v3/clirr-ignored-differences.xml index 06330a597..a09674428 100644 --- a/proto-google-cloud-dialogflow-cx-v3/clirr-ignored-differences.xml +++ b/proto-google-cloud-dialogflow-cx-v3/clirr-ignored-differences.xml @@ -30,4 +30,9 @@ com/google/cloud/location/*OrBuilder boolean has*(*) + + + 8001 + com/google/cloud/location/*Location* + diff --git a/proto-google-cloud-dialogflow-cx-v3/pom.xml b/proto-google-cloud-dialogflow-cx-v3/pom.xml index c59b25db6..a7f5913e5 100644 --- a/proto-google-cloud-dialogflow-cx-v3/pom.xml +++ b/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.10.1 + 0.11.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.10.1 + 0.11.0 diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java index a4a938c5a..ad8a25f30 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java @@ -890,35 +890,35 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDefaultLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultLanguageCode_); } for (int i = 0; i < supportedLanguageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 4, supportedLanguageCodes_.getRaw(i)); } - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, timeZone_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } - if (!getAvatarUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avatarUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, avatarUri_); } if (speechToTextSettings_ != null) { output.writeMessage(13, getSpeechToTextSettings()); } - if (!getStartFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startFlow_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, startFlow_); } - if (!getSecuritySettingsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securitySettings_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, securitySettings_); } if (enableStackdriverLogging_ != false) { @@ -939,13 +939,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDefaultLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultLanguageCode_); } { @@ -956,23 +956,23 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSupportedLanguageCodesList().size(); } - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, timeZone_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } - if (!getAvatarUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avatarUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, avatarUri_); } if (speechToTextSettings_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSpeechToTextSettings()); } - if (!getStartFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startFlow_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, startFlow_); } - if (!getSecuritySettingsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securitySettings_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, securitySettings_); } if (enableStackdriverLogging_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResult.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResult.java index 4ad612c18..a3e7daa63 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResult.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResult.java @@ -275,7 +275,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < flowValidationResults_.size(); i++) { @@ -290,7 +290,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < flowValidationResults_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchDeleteTestCasesRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchDeleteTestCasesRequest.java index 32a894f1d..286bf8d75 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchDeleteTestCasesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchDeleteTestCasesRequest.java @@ -268,7 +268,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } for (int i = 0; i < names_.size(); i++) { @@ -283,7 +283,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequest.java index 574b55b51..df3f8d6d1 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequest.java @@ -333,10 +333,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environment_); } for (int i = 0; i < testCases_.size(); i++) { @@ -351,10 +351,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environment_); } { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageRequest.java index 0aae863d9..60ea80ba5 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageRequest.java @@ -417,7 +417,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, type_); } - if (!getAgentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, agent_); } unknownFields.writeTo(output); @@ -435,7 +435,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } - if (!getAgentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, agent_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageResponse.java index a168fbc50..6721dd43f 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageResponse.java @@ -449,7 +449,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (coverageTypeCase_ == 4) { output.writeMessage(4, (com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_); } - if (!getAgentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, agent_); } if (coverageTypeCase_ == 6) { @@ -475,7 +475,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_); } - if (!getAgentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, agent_); } if (coverageTypeCase_ == 6) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Changelog.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Changelog.java new file mode 100644 index 000000000..3ee5bda65 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Changelog.java @@ -0,0 +1,1815 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/changelog.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * Changelogs represents a change made to a given agent.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Changelog} + */ +public final class Changelog extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Changelog) + ChangelogOrBuilder { + private static final long serialVersionUID = 0L; + // Use Changelog.newBuilder() to construct. + private Changelog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Changelog() { + name_ = ""; + userEmail_ = ""; + displayName_ = ""; + action_ = ""; + type_ = ""; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Changelog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Changelog( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + userEmail_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + resource_ = s; + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + action_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_Changelog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_Changelog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Changelog.class, + com.google.cloud.dialogflow.cx.v3.Changelog.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The unique identifier of the changelog.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The unique identifier of the changelog.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog 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 USER_EMAIL_FIELD_NUMBER = 2; + private volatile java.lang.Object userEmail_; + /** + * + * + *
+   * Email address of the authenticated user.
+   * 
+ * + * string user_email = 2; + * + * @return The userEmail. + */ + @java.lang.Override + public java.lang.String getUserEmail() { + java.lang.Object ref = userEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Email address of the authenticated user.
+   * 
+ * + * string user_email = 2; + * + * @return The bytes for userEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserEmailBytes() { + java.lang.Object ref = userEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * The affected resource display name of the change.
+   * 
+ * + * string display_name = 7; + * + * @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 affected resource display name of the change.
+   * 
+ * + * string display_name = 7; + * + * @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 ACTION_FIELD_NUMBER = 11; + private volatile java.lang.Object action_; + /** + * + * + *
+   * The action of the change.
+   * 
+ * + * string action = 11; + * + * @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; + } + } + /** + * + * + *
+   * The action of the change.
+   * 
+ * + * string action = 11; + * + * @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 TYPE_FIELD_NUMBER = 8; + private volatile java.lang.Object type_; + /** + * + * + *
+   * The affected resource type.
+   * 
+ * + * string type = 8; + * + * @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 affected resource type.
+   * 
+ * + * string type = 8; + * + * @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 RESOURCE_FIELD_NUMBER = 3; + private volatile java.lang.Object resource_; + /** + * + * + *
+   * The affected resource name of the change.
+   * 
+ * + * string resource = 3; + * + * @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; + } + } + /** + * + * + *
+   * The affected resource name of the change.
+   * 
+ * + * string resource = 3; + * + * @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 CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userEmail_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resource_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, action_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userEmail_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resource_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, action_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Changelog)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.Changelog other = + (com.google.cloud.dialogflow.cx.v3.Changelog) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUserEmail().equals(other.getUserEmail())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getAction().equals(other.getAction())) return false; + if (!getType().equals(other.getType())) return false; + if (!getResource().equals(other.getResource())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + USER_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getUserEmail().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.Changelog parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.Changelog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.Changelog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Changelog parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Changelog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Changelog parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Changelog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Changelog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Changelog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Changelog parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Changelogs represents a change made to a given agent.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Changelog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Changelog) + com.google.cloud.dialogflow.cx.v3.ChangelogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_Changelog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_Changelog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Changelog.class, + com.google.cloud.dialogflow.cx.v3.Changelog.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.Changelog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + userEmail_ = ""; + + displayName_ = ""; + + action_ = ""; + + type_ = ""; + + resource_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_Changelog_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Changelog getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.Changelog.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Changelog build() { + com.google.cloud.dialogflow.cx.v3.Changelog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Changelog buildPartial() { + com.google.cloud.dialogflow.cx.v3.Changelog result = + new com.google.cloud.dialogflow.cx.v3.Changelog(this); + result.name_ = name_; + result.userEmail_ = userEmail_; + result.displayName_ = displayName_; + result.action_ = action_; + result.type_ = type_; + result.resource_ = resource_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.Changelog) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.Changelog) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Changelog other) { + if (other == com.google.cloud.dialogflow.cx.v3.Changelog.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getUserEmail().isEmpty()) { + userEmail_ = other.userEmail_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getAction().isEmpty()) { + action_ = other.action_; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.Changelog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.cx.v3.Changelog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The unique identifier of the changelog.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The unique identifier of the changelog.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The unique identifier of the changelog.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The unique identifier of the changelog.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The unique identifier of the changelog.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog 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; + onChanged(); + return this; + } + + private java.lang.Object userEmail_ = ""; + /** + * + * + *
+     * Email address of the authenticated user.
+     * 
+ * + * string user_email = 2; + * + * @return The userEmail. + */ + public java.lang.String getUserEmail() { + java.lang.Object ref = userEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Email address of the authenticated user.
+     * 
+ * + * string user_email = 2; + * + * @return The bytes for userEmail. + */ + public com.google.protobuf.ByteString getUserEmailBytes() { + java.lang.Object ref = userEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Email address of the authenticated user.
+     * 
+ * + * string user_email = 2; + * + * @param value The userEmail to set. + * @return This builder for chaining. + */ + public Builder setUserEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userEmail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the authenticated user.
+     * 
+ * + * string user_email = 2; + * + * @return This builder for chaining. + */ + public Builder clearUserEmail() { + + userEmail_ = getDefaultInstance().getUserEmail(); + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the authenticated user.
+     * 
+ * + * string user_email = 2; + * + * @param value The bytes for userEmail to set. + * @return This builder for chaining. + */ + public Builder setUserEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userEmail_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The affected resource display name of the change.
+     * 
+ * + * string display_name = 7; + * + * @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 affected resource display name of the change.
+     * 
+ * + * string display_name = 7; + * + * @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 affected resource display name of the change.
+     * 
+ * + * string display_name = 7; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource display name of the change.
+     * 
+ * + * string display_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource display name of the change.
+     * 
+ * + * string display_name = 7; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object action_ = ""; + /** + * + * + *
+     * The action of the change.
+     * 
+ * + * string action = 11; + * + * @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; + } + } + /** + * + * + *
+     * The action of the change.
+     * 
+ * + * string action = 11; + * + * @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; + } + } + /** + * + * + *
+     * The action of the change.
+     * 
+ * + * string action = 11; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The action of the change.
+     * 
+ * + * string action = 11; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + + action_ = getDefaultInstance().getAction(); + onChanged(); + return this; + } + /** + * + * + *
+     * The action of the change.
+     * 
+ * + * string action = 11; + * + * @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; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * The affected resource type.
+     * 
+ * + * string type = 8; + * + * @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 affected resource type.
+     * 
+ * + * string type = 8; + * + * @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 affected resource type.
+     * 
+ * + * string type = 8; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource type.
+     * 
+ * + * string type = 8; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource type.
+     * 
+ * + * string type = 8; + * + * @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; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + /** + * + * + *
+     * The affected resource name of the change.
+     * 
+ * + * string resource = 3; + * + * @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; + } + } + /** + * + * + *
+     * The affected resource name of the change.
+     * 
+ * + * string resource = 3; + * + * @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; + } + } + /** + * + * + *
+     * The affected resource name of the change.
+     * 
+ * + * string resource = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource name of the change.
+     * 
+ * + * string resource = 3; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource name of the change.
+     * 
+ * + * string resource = 3; + * + * @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; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @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(); + } + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Changelog) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Changelog) + private static final com.google.cloud.dialogflow.cx.v3.Changelog DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Changelog(); + } + + public static com.google.cloud.dialogflow.cx.v3.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 { + return new Changelog(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Changelog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogName.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogName.java new file mode 100644 index 000000000..621ef6d6e --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +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_AGENT_CHANGELOG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String agent; + private final String changelog; + + @Deprecated + protected ChangelogName() { + project = null; + location = null; + agent = null; + changelog = null; + } + + private ChangelogName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + agent = Preconditions.checkNotNull(builder.getAgent()); + changelog = Preconditions.checkNotNull(builder.getChangelog()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + 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 agent, String changelog) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .setChangelog(changelog) + .build(); + } + + public static String format(String project, String location, String agent, String changelog) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .setChangelog(changelog) + .build() + .toString(); + } + + public static ChangelogName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AGENT_CHANGELOG.validatedMatch( + formattedString, "ChangelogName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("agent"), + 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_AGENT_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 (agent != null) { + fieldMapBuilder.put("agent", agent); + } + 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_AGENT_CHANGELOG.instantiate( + "project", project, "location", location, "agent", agent, "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.agent, that.agent) + && 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(agent); + h *= 1000003; + h ^= Objects.hashCode(changelog); + return h; + } + + /** Builder for projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}. */ + public static class Builder { + private String project; + private String location; + private String agent; + private String changelog; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + 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 setAgent(String agent) { + this.agent = agent; + 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.agent = changelogName.agent; + this.changelog = changelogName.changelog; + } + + public ChangelogName build() { + return new ChangelogName(this); + } + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogOrBuilder.java new file mode 100644 index 000000000..92745e3e9 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogOrBuilder.java @@ -0,0 +1,214 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/changelog.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface ChangelogOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Changelog) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The unique identifier of the changelog.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The unique identifier of the changelog.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Email address of the authenticated user.
+   * 
+ * + * string user_email = 2; + * + * @return The userEmail. + */ + java.lang.String getUserEmail(); + /** + * + * + *
+   * Email address of the authenticated user.
+   * 
+ * + * string user_email = 2; + * + * @return The bytes for userEmail. + */ + com.google.protobuf.ByteString getUserEmailBytes(); + + /** + * + * + *
+   * The affected resource display name of the change.
+   * 
+ * + * string display_name = 7; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The affected resource display name of the change.
+   * 
+ * + * string display_name = 7; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The action of the change.
+   * 
+ * + * string action = 11; + * + * @return The action. + */ + java.lang.String getAction(); + /** + * + * + *
+   * The action of the change.
+   * 
+ * + * string action = 11; + * + * @return The bytes for action. + */ + com.google.protobuf.ByteString getActionBytes(); + + /** + * + * + *
+   * The affected resource type.
+   * 
+ * + * string type = 8; + * + * @return The type. + */ + java.lang.String getType(); + /** + * + * + *
+   * The affected resource type.
+   * 
+ * + * string type = 8; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * The affected resource name of the change.
+   * 
+ * + * string resource = 3; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * The affected resource name of the change.
+   * 
+ * + * string resource = 3; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogProto.java new file mode 100644 index 000000000..d3e4a66a4 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogProto.java @@ -0,0 +1,160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/changelog.proto + +package com.google.cloud.dialogflow.cx.v3; + +public final class ChangelogProto { + private 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_dialogflow_cx_v3_ListChangelogsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_GetChangelogRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_GetChangelogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_Changelog_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_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/dialogflow/cx/v3/changelo" + + "g.proto\022\035google.cloud.dialogflow.cx.v3\032\034" + + "google/api/annotations.proto\032\027google/api" + + "/client.proto\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032\034googl" + + "e/protobuf/struct.proto\032\037google/protobuf" + + "/timestamp.proto\"\213\001\n\025ListChangelogsReque" + + "st\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#dialogflow.g" + + "oogleapis.com/Changelog\022\016\n\006filter\030\002 \001(\t\022" + + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"o" + + "\n\026ListChangelogsResponse\022<\n\nchangelogs\030\001" + + " \003(\0132(.google.cloud.dialogflow.cx.v3.Cha" + + "ngelog\022\027\n\017next_page_token\030\002 \001(\t\"P\n\023GetCh" + + "angelogRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#di" + + "alogflow.googleapis.com/Changelog\"\235\002\n\tCh" + + "angelog\022\014\n\004name\030\001 \001(\t\022\022\n\nuser_email\030\002 \001(" + + "\t\022\024\n\014display_name\030\007 \001(\t\022\016\n\006action\030\013 \001(\t\022" + + "\014\n\004type\030\010 \001(\t\022\020\n\010resource\030\003 \001(\t\022/\n\013creat" + + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + ":w\352At\n#dialogflow.googleapis.com/Changel" + + "og\022Mprojects/{project}/locations/{locati" + + "on}/agents/{agent}/changelogs/{changelog" + + "}2\207\004\n\nChangelogs\022\307\001\n\016ListChangelogs\0224.go" + + "ogle.cloud.dialogflow.cx.v3.ListChangelo" + + "gsRequest\0325.google.cloud.dialogflow.cx.v" + + "3.ListChangelogsResponse\"H\202\323\344\223\0029\0227/v3/{p" + + "arent=projects/*/locations/*/agents/*}/c" + + "hangelogs\332A\006parent\022\264\001\n\014GetChangelog\0222.go" + + "ogle.cloud.dialogflow.cx.v3.GetChangelog" + + "Request\032(.google.cloud.dialogflow.cx.v3." + + "Changelog\"F\202\323\344\223\0029\0227/v3/{name=projects/*/" + + "locations/*/agents/*/changelogs/*}\332A\004nam" + + "e\032x\312A\031dialogflow.googleapis.com\322AYhttps:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/dialogf" + + "lowB\302\001\n!com.google.cloud.dialogflow.cx.v" + + "3B\016ChangelogProtoP\001Z?google.golang.org/g" + + "enproto/googleapis/cloud/dialogflow/cx/v" + + "3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.C" + + "x.V3\352\002!Google::Cloud::Dialogflow::CX::V3" + + "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.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsResponse_descriptor, + new java.lang.String[] { + "Changelogs", "NextPageToken", + }); + internal_static_google_cloud_dialogflow_cx_v3_GetChangelogRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_cx_v3_GetChangelogRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_GetChangelogRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dialogflow_cx_v3_Changelog_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_cx_v3_Changelog_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_Changelog_descriptor, + new java.lang.String[] { + "Name", "UserEmail", "DisplayName", "Action", "Type", "Resource", "CreateTime", + }); + 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.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequest.java new file mode 100644 index 000000000..7014c6e60 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequest.java @@ -0,0 +1,1100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/version.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.CompareVersionsRequest} + */ +public final class CompareVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.CompareVersionsRequest) + CompareVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompareVersionsRequest.newBuilder() to construct. + private CompareVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompareVersionsRequest() { + baseVersion_ = ""; + targetVersion_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompareVersionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompareVersionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + baseVersion_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + targetVersion_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest.class, + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest.Builder.class); + } + + public static final int BASE_VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object baseVersion_; + /** + * + * + *
+   * Required. Name of the base flow version to compare with the target version. Use
+   * version ID `0` to indicate the draft version of the specified flow.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+   * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The baseVersion. + */ + @java.lang.Override + public java.lang.String getBaseVersion() { + java.lang.Object ref = baseVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the base flow version to compare with the target version. Use
+   * version ID `0` to indicate the draft version of the specified flow.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+   * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for baseVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseVersionBytes() { + java.lang.Object ref = baseVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object targetVersion_; + /** + * + * + *
+   * Required. Name of the target flow version to compare with the
+   * base version. Use version ID `0` to indicate the draft version of the
+   * specified flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetVersion. + */ + @java.lang.Override + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the target flow version to compare with the
+   * base version. Use version ID `0` to indicate the draft version of the
+   * specified flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * The language to compare the flow versions for.
+   * If not specified, the agent's default language is used.
+   * [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+   * supported. Note: languages must be enabled in the agent before they can be
+   * used.
+   * 
+ * + * string language_code = 3; + * + * @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; + } + } + /** + * + * + *
+   * The language to compare the flow versions for.
+   * If not specified, the agent's default language is used.
+   * [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+   * supported. Note: languages must be enabled in the agent before they can be
+   * used.
+   * 
+ * + * string language_code = 3; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest other = + (com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest) obj; + + if (!getBaseVersion().equals(other.getBaseVersion())) return false; + if (!getTargetVersion().equals(other.getTargetVersion())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BASE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getBaseVersion().hashCode(); + hash = (37 * hash) + TARGET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getTargetVersion().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.CompareVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.CompareVersionsRequest) + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest.class, + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + baseVersion_ = ""; + + targetVersion_ = ""; + + languageCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest build() { + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest result = + new com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest(this); + result.baseVersion_ = baseVersion_; + result.targetVersion_ = targetVersion_; + result.languageCode_ = languageCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest.getDefaultInstance()) + return this; + if (!other.getBaseVersion().isEmpty()) { + baseVersion_ = other.baseVersion_; + onChanged(); + } + if (!other.getTargetVersion().isEmpty()) { + targetVersion_ = other.targetVersion_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object baseVersion_ = ""; + /** + * + * + *
+     * Required. Name of the base flow version to compare with the target version. Use
+     * version ID `0` to indicate the draft version of the specified flow.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+     * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The baseVersion. + */ + public java.lang.String getBaseVersion() { + java.lang.Object ref = baseVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the base flow version to compare with the target version. Use
+     * version ID `0` to indicate the draft version of the specified flow.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+     * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for baseVersion. + */ + public com.google.protobuf.ByteString getBaseVersionBytes() { + java.lang.Object ref = baseVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the base flow version to compare with the target version. Use
+     * version ID `0` to indicate the draft version of the specified flow.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+     * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The baseVersion to set. + * @return This builder for chaining. + */ + public Builder setBaseVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + baseVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the base flow version to compare with the target version. Use
+     * version ID `0` to indicate the draft version of the specified flow.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+     * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBaseVersion() { + + baseVersion_ = getDefaultInstance().getBaseVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the base flow version to compare with the target version. Use
+     * version ID `0` to indicate the draft version of the specified flow.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+     * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for baseVersion to set. + * @return This builder for chaining. + */ + public Builder setBaseVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + baseVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetVersion_ = ""; + /** + * + * + *
+     * Required. Name of the target flow version to compare with the
+     * base version. Use version ID `0` to indicate the draft version of the
+     * specified flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetVersion. + */ + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the target flow version to compare with the
+     * base version. Use version ID `0` to indicate the draft version of the
+     * specified flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetVersion. + */ + public com.google.protobuf.ByteString getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the target flow version to compare with the
+     * base version. Use version ID `0` to indicate the draft version of the
+     * specified flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the target flow version to compare with the
+     * base version. Use version ID `0` to indicate the draft version of the
+     * specified flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetVersion() { + + targetVersion_ = getDefaultInstance().getTargetVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the target flow version to compare with the
+     * base version. Use version ID `0` to indicate the draft version of the
+     * specified flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * The language to compare the flow versions for.
+     * If not specified, the agent's default language is used.
+     * [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+     * supported. Note: languages must be enabled in the agent before they can be
+     * used.
+     * 
+ * + * string language_code = 3; + * + * @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; + } + } + /** + * + * + *
+     * The language to compare the flow versions for.
+     * If not specified, the agent's default language is used.
+     * [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+     * supported. Note: languages must be enabled in the agent before they can be
+     * used.
+     * 
+ * + * string language_code = 3; + * + * @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; + } + } + /** + * + * + *
+     * The language to compare the flow versions for.
+     * If not specified, the agent's default language is used.
+     * [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+     * supported. Note: languages must be enabled in the agent before they can be
+     * used.
+     * 
+ * + * string language_code = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The language to compare the flow versions for.
+     * If not specified, the agent's default language is used.
+     * [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+     * supported. Note: languages must be enabled in the agent before they can be
+     * used.
+     * 
+ * + * string language_code = 3; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * The language to compare the flow versions for.
+     * If not specified, the agent's default language is used.
+     * [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+     * supported. Note: languages must be enabled in the agent before they can be
+     * used.
+     * 
+ * + * string language_code = 3; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.CompareVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.CompareVersionsRequest) + private static final com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompareVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompareVersionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequestOrBuilder.java new file mode 100644 index 000000000..03f828e8a --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/version.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface CompareVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.CompareVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the base flow version to compare with the target version. Use
+   * version ID `0` to indicate the draft version of the specified flow.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+   * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The baseVersion. + */ + java.lang.String getBaseVersion(); + /** + * + * + *
+   * Required. Name of the base flow version to compare with the target version. Use
+   * version ID `0` to indicate the draft version of the specified flow.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+   * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for baseVersion. + */ + com.google.protobuf.ByteString getBaseVersionBytes(); + + /** + * + * + *
+   * Required. Name of the target flow version to compare with the
+   * base version. Use version ID `0` to indicate the draft version of the
+   * specified flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetVersion. + */ + java.lang.String getTargetVersion(); + /** + * + * + *
+   * Required. Name of the target flow version to compare with the
+   * base version. Use version ID `0` to indicate the draft version of the
+   * specified flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetVersion. + */ + com.google.protobuf.ByteString getTargetVersionBytes(); + + /** + * + * + *
+   * The language to compare the flow versions for.
+   * If not specified, the agent's default language is used.
+   * [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+   * supported. Note: languages must be enabled in the agent before they can be
+   * used.
+   * 
+ * + * string language_code = 3; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * The language to compare the flow versions for.
+   * If not specified, the agent's default language is used.
+   * [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+   * supported. Note: languages must be enabled in the agent before they can be
+   * used.
+   * 
+ * + * string language_code = 3; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsResponse.java new file mode 100644 index 000000000..861f27d1d --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsResponse.java @@ -0,0 +1,1091 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/version.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.CompareVersionsResponse} + */ +public final class CompareVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.CompareVersionsResponse) + CompareVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompareVersionsResponse.newBuilder() to construct. + private CompareVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompareVersionsResponse() { + baseVersionContentJson_ = ""; + targetVersionContentJson_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompareVersionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompareVersionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + baseVersionContentJson_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + targetVersionContentJson_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (compareTime_ != null) { + subBuilder = compareTime_.toBuilder(); + } + compareTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareTime_); + compareTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse.class, + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse.Builder.class); + } + + public static final int BASE_VERSION_CONTENT_JSON_FIELD_NUMBER = 1; + private volatile java.lang.Object baseVersionContentJson_; + /** + * + * + *
+   * JSON representation of the base version content.
+   * 
+ * + * string base_version_content_json = 1; + * + * @return The baseVersionContentJson. + */ + @java.lang.Override + public java.lang.String getBaseVersionContentJson() { + java.lang.Object ref = baseVersionContentJson_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseVersionContentJson_ = s; + return s; + } + } + /** + * + * + *
+   * JSON representation of the base version content.
+   * 
+ * + * string base_version_content_json = 1; + * + * @return The bytes for baseVersionContentJson. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseVersionContentJsonBytes() { + java.lang.Object ref = baseVersionContentJson_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseVersionContentJson_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_VERSION_CONTENT_JSON_FIELD_NUMBER = 2; + private volatile java.lang.Object targetVersionContentJson_; + /** + * + * + *
+   * JSON representation of the target version content.
+   * 
+ * + * string target_version_content_json = 2; + * + * @return The targetVersionContentJson. + */ + @java.lang.Override + public java.lang.String getTargetVersionContentJson() { + java.lang.Object ref = targetVersionContentJson_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersionContentJson_ = s; + return s; + } + } + /** + * + * + *
+   * JSON representation of the target version content.
+   * 
+ * + * string target_version_content_json = 2; + * + * @return The bytes for targetVersionContentJson. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetVersionContentJsonBytes() { + java.lang.Object ref = targetVersionContentJson_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersionContentJson_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPARE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp compareTime_; + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return Whether the compareTime field is set. + */ + @java.lang.Override + public boolean hasCompareTime() { + return compareTime_ != null; + } + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return The compareTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompareTime() { + return compareTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : compareTime_; + } + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompareTimeOrBuilder() { + return getCompareTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseVersionContentJson_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseVersionContentJson_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersionContentJson_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetVersionContentJson_); + } + if (compareTime_ != null) { + output.writeMessage(3, getCompareTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseVersionContentJson_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseVersionContentJson_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersionContentJson_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetVersionContentJson_); + } + if (compareTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCompareTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse other = + (com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse) obj; + + if (!getBaseVersionContentJson().equals(other.getBaseVersionContentJson())) return false; + if (!getTargetVersionContentJson().equals(other.getTargetVersionContentJson())) return false; + if (hasCompareTime() != other.hasCompareTime()) return false; + if (hasCompareTime()) { + if (!getCompareTime().equals(other.getCompareTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BASE_VERSION_CONTENT_JSON_FIELD_NUMBER; + hash = (53 * hash) + getBaseVersionContentJson().hashCode(); + hash = (37 * hash) + TARGET_VERSION_CONTENT_JSON_FIELD_NUMBER; + hash = (53 * hash) + getTargetVersionContentJson().hashCode(); + if (hasCompareTime()) { + hash = (37 * hash) + COMPARE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompareTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.CompareVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.CompareVersionsResponse) + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse.class, + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + baseVersionContentJson_ = ""; + + targetVersionContentJson_ = ""; + + if (compareTimeBuilder_ == null) { + compareTime_ = null; + } else { + compareTime_ = null; + compareTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse build() { + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse buildPartial() { + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse result = + new com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse(this); + result.baseVersionContentJson_ = baseVersionContentJson_; + result.targetVersionContentJson_ = targetVersionContentJson_; + if (compareTimeBuilder_ == null) { + result.compareTime_ = compareTime_; + } else { + result.compareTime_ = compareTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse other) { + if (other == com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse.getDefaultInstance()) + return this; + if (!other.getBaseVersionContentJson().isEmpty()) { + baseVersionContentJson_ = other.baseVersionContentJson_; + onChanged(); + } + if (!other.getTargetVersionContentJson().isEmpty()) { + targetVersionContentJson_ = other.targetVersionContentJson_; + onChanged(); + } + if (other.hasCompareTime()) { + mergeCompareTime(other.getCompareTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object baseVersionContentJson_ = ""; + /** + * + * + *
+     * JSON representation of the base version content.
+     * 
+ * + * string base_version_content_json = 1; + * + * @return The baseVersionContentJson. + */ + public java.lang.String getBaseVersionContentJson() { + java.lang.Object ref = baseVersionContentJson_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseVersionContentJson_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * JSON representation of the base version content.
+     * 
+ * + * string base_version_content_json = 1; + * + * @return The bytes for baseVersionContentJson. + */ + public com.google.protobuf.ByteString getBaseVersionContentJsonBytes() { + java.lang.Object ref = baseVersionContentJson_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseVersionContentJson_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * JSON representation of the base version content.
+     * 
+ * + * string base_version_content_json = 1; + * + * @param value The baseVersionContentJson to set. + * @return This builder for chaining. + */ + public Builder setBaseVersionContentJson(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + baseVersionContentJson_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * JSON representation of the base version content.
+     * 
+ * + * string base_version_content_json = 1; + * + * @return This builder for chaining. + */ + public Builder clearBaseVersionContentJson() { + + baseVersionContentJson_ = getDefaultInstance().getBaseVersionContentJson(); + onChanged(); + return this; + } + /** + * + * + *
+     * JSON representation of the base version content.
+     * 
+ * + * string base_version_content_json = 1; + * + * @param value The bytes for baseVersionContentJson to set. + * @return This builder for chaining. + */ + public Builder setBaseVersionContentJsonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + baseVersionContentJson_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetVersionContentJson_ = ""; + /** + * + * + *
+     * JSON representation of the target version content.
+     * 
+ * + * string target_version_content_json = 2; + * + * @return The targetVersionContentJson. + */ + public java.lang.String getTargetVersionContentJson() { + java.lang.Object ref = targetVersionContentJson_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersionContentJson_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * JSON representation of the target version content.
+     * 
+ * + * string target_version_content_json = 2; + * + * @return The bytes for targetVersionContentJson. + */ + public com.google.protobuf.ByteString getTargetVersionContentJsonBytes() { + java.lang.Object ref = targetVersionContentJson_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersionContentJson_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * JSON representation of the target version content.
+     * 
+ * + * string target_version_content_json = 2; + * + * @param value The targetVersionContentJson to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionContentJson(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetVersionContentJson_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * JSON representation of the target version content.
+     * 
+ * + * string target_version_content_json = 2; + * + * @return This builder for chaining. + */ + public Builder clearTargetVersionContentJson() { + + targetVersionContentJson_ = getDefaultInstance().getTargetVersionContentJson(); + onChanged(); + return this; + } + /** + * + * + *
+     * JSON representation of the target version content.
+     * 
+ * + * string target_version_content_json = 2; + * + * @param value The bytes for targetVersionContentJson to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionContentJsonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetVersionContentJson_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp compareTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + compareTimeBuilder_; + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return Whether the compareTime field is set. + */ + public boolean hasCompareTime() { + return compareTimeBuilder_ != null || compareTime_ != null; + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return The compareTime. + */ + public com.google.protobuf.Timestamp getCompareTime() { + if (compareTimeBuilder_ == null) { + return compareTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : compareTime_; + } else { + return compareTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public Builder setCompareTime(com.google.protobuf.Timestamp value) { + if (compareTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compareTime_ = value; + onChanged(); + } else { + compareTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public Builder setCompareTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (compareTimeBuilder_ == null) { + compareTime_ = builderForValue.build(); + onChanged(); + } else { + compareTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public Builder mergeCompareTime(com.google.protobuf.Timestamp value) { + if (compareTimeBuilder_ == null) { + if (compareTime_ != null) { + compareTime_ = + com.google.protobuf.Timestamp.newBuilder(compareTime_) + .mergeFrom(value) + .buildPartial(); + } else { + compareTime_ = value; + } + onChanged(); + } else { + compareTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public Builder clearCompareTime() { + if (compareTimeBuilder_ == null) { + compareTime_ = null; + onChanged(); + } else { + compareTime_ = null; + compareTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getCompareTimeBuilder() { + + onChanged(); + return getCompareTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getCompareTimeOrBuilder() { + if (compareTimeBuilder_ != null) { + return compareTimeBuilder_.getMessageOrBuilder(); + } else { + return compareTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : compareTime_; + } + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCompareTimeFieldBuilder() { + if (compareTimeBuilder_ == null) { + compareTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompareTime(), getParentForChildren(), isClean()); + compareTime_ = null; + } + return compareTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.CompareVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.CompareVersionsResponse) + private static final com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse(); + } + + public static com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompareVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompareVersionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsResponseOrBuilder.java new file mode 100644 index 000000000..4ba2cd07b --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/version.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface CompareVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.CompareVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * JSON representation of the base version content.
+   * 
+ * + * string base_version_content_json = 1; + * + * @return The baseVersionContentJson. + */ + java.lang.String getBaseVersionContentJson(); + /** + * + * + *
+   * JSON representation of the base version content.
+   * 
+ * + * string base_version_content_json = 1; + * + * @return The bytes for baseVersionContentJson. + */ + com.google.protobuf.ByteString getBaseVersionContentJsonBytes(); + + /** + * + * + *
+   * JSON representation of the target version content.
+   * 
+ * + * string target_version_content_json = 2; + * + * @return The targetVersionContentJson. + */ + java.lang.String getTargetVersionContentJson(); + /** + * + * + *
+   * JSON representation of the target version content.
+   * 
+ * + * string target_version_content_json = 2; + * + * @return The bytes for targetVersionContentJson. + */ + com.google.protobuf.ByteString getTargetVersionContentJsonBytes(); + + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return Whether the compareTime field is set. + */ + boolean hasCompareTime(); + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return The compareTime. + */ + com.google.protobuf.Timestamp getCompareTime(); + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getCompareTimeOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java index ef9a7696a..d327ab070 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java @@ -530,7 +530,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (result_ @@ -554,7 +554,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (result_ diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateAgentRequest.java index 07e85fa25..b1b1e459b 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateAgentRequest.java @@ -245,7 +245,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (agent_ != null) { @@ -260,7 +260,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (agent_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEntityTypeRequest.java index 3430ece99..3c230c753 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEntityTypeRequest.java @@ -323,13 +323,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (entityType_ != null) { output.writeMessage(2, getEntityType()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -341,13 +341,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (entityType_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntityType()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequest.java index 9783c9410..6592d95d7 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequest.java @@ -250,7 +250,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (environment_ != null) { @@ -265,7 +265,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (environment_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequest.java index 5a4f5cc03..55efb137b 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequest.java @@ -252,7 +252,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (experiment_ != null) { @@ -267,7 +267,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (experiment_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateFlowRequest.java index 32c8c8f4f..6f34710a1 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateFlowRequest.java @@ -320,13 +320,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (flow_ != null) { output.writeMessage(2, getFlow()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -338,13 +338,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (flow_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFlow()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateIntentRequest.java index 6b30d6f53..8e4feca2c 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateIntentRequest.java @@ -319,13 +319,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (intent_ != null) { output.writeMessage(2, getIntent()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -337,13 +337,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (intent_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIntent()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreatePageRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreatePageRequest.java index 99645ef86..43b8623cc 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreatePageRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreatePageRequest.java @@ -338,13 +338,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (page_ != null) { output.writeMessage(2, getPage()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -356,13 +356,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (page_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPage()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequest.java index 55fdd5c27..9191134ee 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequest.java @@ -252,7 +252,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (securitySettings_ != null) { @@ -267,7 +267,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (securitySettings_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSessionEntityTypeRequest.java index 3a1504507..a696d33ff 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSessionEntityTypeRequest.java @@ -261,7 +261,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (sessionEntityType_ != null) { @@ -276,7 +276,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sessionEntityType_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTestCaseRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTestCaseRequest.java index d6be672d9..21c7aeb96 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTestCaseRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTestCaseRequest.java @@ -250,7 +250,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (testCase_ != null) { @@ -265,7 +265,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (testCase_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequest.java index 7cb4622d1..d1cd5f6b6 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequest.java @@ -328,13 +328,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (transitionRouteGroup_ != null) { output.writeMessage(2, getTransitionRouteGroup()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -346,14 +346,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (transitionRouteGroup_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransitionRouteGroup()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionOperationMetadata.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionOperationMetadata.java index 19089f1e3..7fd27f0a0 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionOperationMetadata.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionOperationMetadata.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequest.java index a60ae3f78..4ad3fceb1 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequest.java @@ -252,7 +252,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (version_ != null) { @@ -267,7 +267,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (version_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateWebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateWebhookRequest.java index 5fc4e61ae..61e64c4a6 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateWebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateWebhookRequest.java @@ -250,7 +250,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (webhook_ != null) { @@ -265,7 +265,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (webhook_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteAgentRequest.java index d99110523..57e4ba236 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteAgentRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequest.java index 6aca39ad8..addfbadc6 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequest.java @@ -213,7 +213,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (force_ != false) { @@ -228,7 +228,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequest.java index 9b51797bb..de7f85f74 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequest.java index 453bc158a..f4d3f2bb7 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteFlowRequest.java index 9e360e048..f44db62d5 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteFlowRequest.java @@ -213,7 +213,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (force_ != false) { @@ -228,7 +228,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteIntentRequest.java index 6d90a7c4a..bfc611906 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteIntentRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeletePageRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeletePageRequest.java index a8bdb72a1..e8dcf473f 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeletePageRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeletePageRequest.java @@ -213,7 +213,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (force_ != false) { @@ -228,7 +228,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequest.java index 28100bc80..d93a9c084 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSessionEntityTypeRequest.java index 542a3a06e..57d364a67 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSessionEntityTypeRequest.java @@ -191,7 +191,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -203,7 +203,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequest.java index 36168831e..8fef37684 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequest.java @@ -211,7 +211,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (force_ != false) { @@ -226,7 +226,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequest.java index 760bcb03b..eb580cf9d 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequest.java index b946069db..ee0ec2b48 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequest.java @@ -212,7 +212,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (force_ != false) { @@ -227,7 +227,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowMetadata.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowMetadata.java new file mode 100644 index 000000000..da017b33f --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowMetadata.java @@ -0,0 +1,954 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow] long running
+ * operation.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowMetadata} + */ +public final class DeployFlowMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DeployFlowMetadata) + DeployFlowMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployFlowMetadata.newBuilder() to construct. + private DeployFlowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployFlowMetadata() { + testErrors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployFlowMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployFlowMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + testErrors_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + testErrors_.add( + input.readMessage( + com.google.cloud.dialogflow.cx.v3.TestError.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + testErrors_ = java.util.Collections.unmodifiableList(testErrors_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata.class, + com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata.Builder.class); + } + + public static final int TEST_ERRORS_FIELD_NUMBER = 1; + private java.util.List testErrors_; + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + @java.lang.Override + public java.util.List getTestErrorsList() { + return testErrors_; + } + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + @java.lang.Override + public java.util.List + getTestErrorsOrBuilderList() { + return testErrors_; + } + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + @java.lang.Override + public int getTestErrorsCount() { + return testErrors_.size(); + } + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TestError getTestErrors(int index) { + return testErrors_.get(index); + } + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder getTestErrorsOrBuilder(int index) { + return testErrors_.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 < testErrors_.size(); i++) { + output.writeMessage(1, testErrors_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < testErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, testErrors_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata other = + (com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata) obj; + + if (!getTestErrorsList().equals(other.getTestErrorsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTestErrorsCount() > 0) { + hash = (37 * hash) + TEST_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getTestErrorsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow] long running
+   * operation.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DeployFlowMetadata) + com.google.cloud.dialogflow.cx.v3.DeployFlowMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata.class, + com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTestErrorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (testErrorsBuilder_ == null) { + testErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + testErrorsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata build() { + com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata result = + new com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata(this); + int from_bitField0_ = bitField0_; + if (testErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + testErrors_ = java.util.Collections.unmodifiableList(testErrors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.testErrors_ = testErrors_; + } else { + result.testErrors_ = testErrorsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata other) { + if (other == com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata.getDefaultInstance()) + return this; + if (testErrorsBuilder_ == null) { + if (!other.testErrors_.isEmpty()) { + if (testErrors_.isEmpty()) { + testErrors_ = other.testErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTestErrorsIsMutable(); + testErrors_.addAll(other.testErrors_); + } + onChanged(); + } + } else { + if (!other.testErrors_.isEmpty()) { + if (testErrorsBuilder_.isEmpty()) { + testErrorsBuilder_.dispose(); + testErrorsBuilder_ = null; + testErrors_ = other.testErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + testErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTestErrorsFieldBuilder() + : null; + } else { + testErrorsBuilder_.addAllMessages(other.testErrors_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List testErrors_ = + java.util.Collections.emptyList(); + + private void ensureTestErrorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + testErrors_ = + new java.util.ArrayList(testErrors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.TestError, + com.google.cloud.dialogflow.cx.v3.TestError.Builder, + com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder> + testErrorsBuilder_; + + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public java.util.List getTestErrorsList() { + if (testErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(testErrors_); + } else { + return testErrorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public int getTestErrorsCount() { + if (testErrorsBuilder_ == null) { + return testErrors_.size(); + } else { + return testErrorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3.TestError getTestErrors(int index) { + if (testErrorsBuilder_ == null) { + return testErrors_.get(index); + } else { + return testErrorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public Builder setTestErrors(int index, com.google.cloud.dialogflow.cx.v3.TestError value) { + if (testErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestErrorsIsMutable(); + testErrors_.set(index, value); + onChanged(); + } else { + testErrorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public Builder setTestErrors( + int index, com.google.cloud.dialogflow.cx.v3.TestError.Builder builderForValue) { + if (testErrorsBuilder_ == null) { + ensureTestErrorsIsMutable(); + testErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + testErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public Builder addTestErrors(com.google.cloud.dialogflow.cx.v3.TestError value) { + if (testErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestErrorsIsMutable(); + testErrors_.add(value); + onChanged(); + } else { + testErrorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public Builder addTestErrors(int index, com.google.cloud.dialogflow.cx.v3.TestError value) { + if (testErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestErrorsIsMutable(); + testErrors_.add(index, value); + onChanged(); + } else { + testErrorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public Builder addTestErrors( + com.google.cloud.dialogflow.cx.v3.TestError.Builder builderForValue) { + if (testErrorsBuilder_ == null) { + ensureTestErrorsIsMutable(); + testErrors_.add(builderForValue.build()); + onChanged(); + } else { + testErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public Builder addTestErrors( + int index, com.google.cloud.dialogflow.cx.v3.TestError.Builder builderForValue) { + if (testErrorsBuilder_ == null) { + ensureTestErrorsIsMutable(); + testErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + testErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public Builder addAllTestErrors( + java.lang.Iterable values) { + if (testErrorsBuilder_ == null) { + ensureTestErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, testErrors_); + onChanged(); + } else { + testErrorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public Builder clearTestErrors() { + if (testErrorsBuilder_ == null) { + testErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + testErrorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public Builder removeTestErrors(int index) { + if (testErrorsBuilder_ == null) { + ensureTestErrorsIsMutable(); + testErrors_.remove(index); + onChanged(); + } else { + testErrorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3.TestError.Builder getTestErrorsBuilder(int index) { + return getTestErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder getTestErrorsOrBuilder(int index) { + if (testErrorsBuilder_ == null) { + return testErrors_.get(index); + } else { + return testErrorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public java.util.List + getTestErrorsOrBuilderList() { + if (testErrorsBuilder_ != null) { + return testErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(testErrors_); + } + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3.TestError.Builder addTestErrorsBuilder() { + return getTestErrorsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3.TestError.getDefaultInstance()); + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3.TestError.Builder addTestErrorsBuilder(int index) { + return getTestErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3.TestError.getDefaultInstance()); + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + public java.util.List + getTestErrorsBuilderList() { + return getTestErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.TestError, + com.google.cloud.dialogflow.cx.v3.TestError.Builder, + com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder> + getTestErrorsFieldBuilder() { + if (testErrorsBuilder_ == null) { + testErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.TestError, + com.google.cloud.dialogflow.cx.v3.TestError.Builder, + com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder>( + testErrors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + testErrors_ = null; + } + return testErrorsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DeployFlowMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DeployFlowMetadata) + private static final com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployFlowMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployFlowMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowMetadataOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowMetadataOrBuilder.java new file mode 100644 index 000000000..6c67c1a70 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowMetadataOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface DeployFlowMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DeployFlowMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + java.util.List getTestErrorsList(); + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + com.google.cloud.dialogflow.cx.v3.TestError getTestErrors(int index); + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + int getTestErrorsCount(); + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + java.util.List + getTestErrorsOrBuilderList(); + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError test_errors = 1; + */ + com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder getTestErrorsOrBuilder(int index); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowRequest.java new file mode 100644 index 000000000..37e53ee1b --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowRequest.java @@ -0,0 +1,871 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowRequest} + */ +public final class DeployFlowRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DeployFlowRequest) + DeployFlowRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployFlowRequest.newBuilder() to construct. + private DeployFlowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployFlowRequest() { + environment_ = ""; + flowVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployFlowRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployFlowRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + environment_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + flowVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest.class, + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest.Builder.class); + } + + public static final int ENVIRONMENT_FIELD_NUMBER = 1; + private volatile java.lang.Object environment_; + /** + * + * + *
+   * Required. The environment to deploy the flow to.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The environment. + */ + @java.lang.Override + public java.lang.String getEnvironment() { + java.lang.Object ref = environment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environment_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The environment to deploy the flow to.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for environment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEnvironmentBytes() { + java.lang.Object ref = environment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + environment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLOW_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object flowVersion_; + /** + * + * + *
+   * Required. The flow version to deploy.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flowVersion. + */ + @java.lang.Override + public java.lang.String getFlowVersion() { + java.lang.Object ref = flowVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flowVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The flow version to deploy.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flowVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlowVersionBytes() { + java.lang.Object ref = flowVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flowVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flowVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, environment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flowVersion_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.DeployFlowRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest other = + (com.google.cloud.dialogflow.cx.v3.DeployFlowRequest) obj; + + if (!getEnvironment().equals(other.getEnvironment())) return false; + if (!getFlowVersion().equals(other.getFlowVersion())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + getEnvironment().hashCode(); + hash = (37 * hash) + FLOW_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getFlowVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.DeployFlowRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DeployFlowRequest) + com.google.cloud.dialogflow.cx.v3.DeployFlowRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest.class, + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.DeployFlowRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + environment_ = ""; + + flowVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DeployFlowRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowRequest build() { + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest result = + new com.google.cloud.dialogflow.cx.v3.DeployFlowRequest(this); + result.environment_ = environment_; + result.flowVersion_ = flowVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.DeployFlowRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.DeployFlowRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeployFlowRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3.DeployFlowRequest.getDefaultInstance()) + return this; + if (!other.getEnvironment().isEmpty()) { + environment_ = other.environment_; + onChanged(); + } + if (!other.getFlowVersion().isEmpty()) { + flowVersion_ = other.flowVersion_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.DeployFlowRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.DeployFlowRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object environment_ = ""; + /** + * + * + *
+     * Required. The environment to deploy the flow to.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The environment. + */ + public java.lang.String getEnvironment() { + java.lang.Object ref = environment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The environment to deploy the flow to.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for environment. + */ + public com.google.protobuf.ByteString getEnvironmentBytes() { + java.lang.Object ref = environment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + environment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The environment to deploy the flow to.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + environment_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The environment to deploy the flow to.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEnvironment() { + + environment_ = getDefaultInstance().getEnvironment(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The environment to deploy the flow to.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + environment_ = value; + onChanged(); + return this; + } + + private java.lang.Object flowVersion_ = ""; + /** + * + * + *
+     * Required. The flow version to deploy.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flowVersion. + */ + public java.lang.String getFlowVersion() { + java.lang.Object ref = flowVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flowVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The flow version to deploy.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flowVersion. + */ + public com.google.protobuf.ByteString getFlowVersionBytes() { + java.lang.Object ref = flowVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flowVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The flow version to deploy.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The flowVersion to set. + * @return This builder for chaining. + */ + public Builder setFlowVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + flowVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The flow version to deploy.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFlowVersion() { + + flowVersion_ = getDefaultInstance().getFlowVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The flow version to deploy.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for flowVersion to set. + * @return This builder for chaining. + */ + public Builder setFlowVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + flowVersion_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DeployFlowRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DeployFlowRequest) + private static final com.google.cloud.dialogflow.cx.v3.DeployFlowRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.DeployFlowRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployFlowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployFlowRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowRequestOrBuilder.java new file mode 100644 index 000000000..b83b938be --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface DeployFlowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DeployFlowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The environment to deploy the flow to.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The environment. + */ + java.lang.String getEnvironment(); + /** + * + * + *
+   * Required. The environment to deploy the flow to.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for environment. + */ + com.google.protobuf.ByteString getEnvironmentBytes(); + + /** + * + * + *
+   * Required. The flow version to deploy.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flowVersion. + */ + java.lang.String getFlowVersion(); + /** + * + * + *
+   * Required. The flow version to deploy.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flowVersion. + */ + com.google.protobuf.ByteString getFlowVersionBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponse.java new file mode 100644 index 000000000..566a132c4 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponse.java @@ -0,0 +1,928 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowResponse} + */ +public final class DeployFlowResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.DeployFlowResponse) + DeployFlowResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployFlowResponse.newBuilder() to construct. + private DeployFlowResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployFlowResponse() { + deployment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployFlowResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployFlowResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.cx.v3.Environment.Builder subBuilder = null; + if (environment_ != null) { + subBuilder = environment_.toBuilder(); + } + environment_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.Environment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(environment_); + environment_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + deployment_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DeployFlowResponse.class, + com.google.cloud.dialogflow.cx.v3.DeployFlowResponse.Builder.class); + } + + public static final int ENVIRONMENT_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.cx.v3.Environment environment_; + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + * + * @return Whether the environment field is set. + */ + @java.lang.Override + public boolean hasEnvironment() { + return environment_ != null; + } + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + * + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment() { + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance() + : environment_; + } + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentOrBuilder() { + return getEnvironment(); + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 2; + private volatile java.lang.Object deployment_; + /** + * + * + *
+   * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>/deployments/<Deployment ID>`.
+   * 
+ * + * string deployment = 2; + * + * @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; + } + } + /** + * + * + *
+   * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>/deployments/<Deployment ID>`.
+   * 
+ * + * string deployment = 2; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (environment_ != null) { + output.writeMessage(1, getEnvironment()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployment_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (environment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnvironment()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployment_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.DeployFlowResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.DeployFlowResponse other = + (com.google.cloud.dialogflow.cx.v3.DeployFlowResponse) obj; + + if (hasEnvironment() != other.hasEnvironment()) return false; + if (hasEnvironment()) { + if (!getEnvironment().equals(other.getEnvironment())) return false; + } + if (!getDeployment().equals(other.getDeployment())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnvironment()) { + hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + getEnvironment().hashCode(); + } + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.DeployFlowResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.DeployFlowResponse) + com.google.cloud.dialogflow.cx.v3.DeployFlowResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.DeployFlowResponse.class, + com.google.cloud.dialogflow.cx.v3.DeployFlowResponse.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.DeployFlowResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (environmentBuilder_ == null) { + environment_ = null; + } else { + environment_ = null; + environmentBuilder_ = null; + } + deployment_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_DeployFlowResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowResponse getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.DeployFlowResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowResponse build() { + com.google.cloud.dialogflow.cx.v3.DeployFlowResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowResponse buildPartial() { + com.google.cloud.dialogflow.cx.v3.DeployFlowResponse result = + new com.google.cloud.dialogflow.cx.v3.DeployFlowResponse(this); + if (environmentBuilder_ == null) { + result.environment_ = environment_; + } else { + result.environment_ = environmentBuilder_.build(); + } + result.deployment_ = deployment_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.DeployFlowResponse) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.DeployFlowResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeployFlowResponse other) { + if (other == com.google.cloud.dialogflow.cx.v3.DeployFlowResponse.getDefaultInstance()) + return this; + if (other.hasEnvironment()) { + mergeEnvironment(other.getEnvironment()); + } + if (!other.getDeployment().isEmpty()) { + deployment_ = other.deployment_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.DeployFlowResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.DeployFlowResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dialogflow.cx.v3.Environment environment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Environment, + com.google.cloud.dialogflow.cx.v3.Environment.Builder, + com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder> + environmentBuilder_; + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + * + * @return Whether the environment field is set. + */ + public boolean hasEnvironment() { + return environmentBuilder_ != null || environment_ != null; + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + * + * @return The environment. + */ + public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment() { + if (environmentBuilder_ == null) { + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance() + : environment_; + } else { + return environmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + */ + public Builder setEnvironment(com.google.cloud.dialogflow.cx.v3.Environment value) { + if (environmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environment_ = value; + onChanged(); + } else { + environmentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + */ + public Builder setEnvironment( + com.google.cloud.dialogflow.cx.v3.Environment.Builder builderForValue) { + if (environmentBuilder_ == null) { + environment_ = builderForValue.build(); + onChanged(); + } else { + environmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + */ + public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3.Environment value) { + if (environmentBuilder_ == null) { + if (environment_ != null) { + environment_ = + com.google.cloud.dialogflow.cx.v3.Environment.newBuilder(environment_) + .mergeFrom(value) + .buildPartial(); + } else { + environment_ = value; + } + onChanged(); + } else { + environmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + */ + public Builder clearEnvironment() { + if (environmentBuilder_ == null) { + environment_ = null; + onChanged(); + } else { + environment_ = null; + environmentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + */ + public com.google.cloud.dialogflow.cx.v3.Environment.Builder getEnvironmentBuilder() { + + onChanged(); + return getEnvironmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + */ + public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentOrBuilder() { + if (environmentBuilder_ != null) { + return environmentBuilder_.getMessageOrBuilder(); + } else { + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance() + : environment_; + } + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Environment, + com.google.cloud.dialogflow.cx.v3.Environment.Builder, + com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder> + getEnvironmentFieldBuilder() { + if (environmentBuilder_ == null) { + environmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Environment, + com.google.cloud.dialogflow.cx.v3.Environment.Builder, + com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder>( + getEnvironment(), getParentForChildren(), isClean()); + environment_ = null; + } + return environmentBuilder_; + } + + private java.lang.Object deployment_ = ""; + /** + * + * + *
+     * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * string deployment = 2; + * + * @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; + } + } + /** + * + * + *
+     * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * string deployment = 2; + * + * @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; + } + } + /** + * + * + *
+     * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * string deployment = 2; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * string deployment = 2; + * + * @return This builder for chaining. + */ + public Builder clearDeployment() { + + deployment_ = getDefaultInstance().getDeployment(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * string deployment = 2; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.DeployFlowResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.DeployFlowResponse) + private static final com.google.cloud.dialogflow.cx.v3.DeployFlowResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.DeployFlowResponse(); + } + + public static com.google.cloud.dialogflow.cx.v3.DeployFlowResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployFlowResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployFlowResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeployFlowResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponseOrBuilder.java new file mode 100644 index 000000000..cc0df10e0 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponseOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface DeployFlowResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.DeployFlowResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + * + * @return Whether the environment field is set. + */ + boolean hasEnvironment(); + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + * + * @return The environment. + */ + com.google.cloud.dialogflow.cx.v3.Environment getEnvironment(); + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment environment = 1; + */ + com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentOrBuilder(); + + /** + * + * + *
+   * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>/deployments/<Deployment ID>`.
+   * 
+ * + * string deployment = 2; + * + * @return The deployment. + */ + java.lang.String getDeployment(); + /** + * + * + *
+   * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>/deployments/<Deployment ID>`.
+   * 
+ * + * string deployment = 2; + * + * @return The bytes for deployment. + */ + com.google.protobuf.ByteString getDeploymentBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Deployment.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Deployment.java new file mode 100644 index 000000000..3a82c4e0c --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Deployment.java @@ -0,0 +1,3062 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/deployment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * Represents an deployment in an environment. A deployment happens when a flow
+ * version configured to be active in the environment. You can configure running
+ * pre-deployment steps, e.g. running validation test cases, experiment
+ * auto-rollout, etc.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Deployment} + */ +public final class Deployment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Deployment) + DeploymentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Deployment.newBuilder() to construct. + private Deployment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Deployment() { + name_ = ""; + flowVersion_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Deployment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Deployment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + flowVersion_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 34: + { + com.google.cloud.dialogflow.cx.v3.Deployment.Result.Builder subBuilder = null; + if (result_ != null) { + subBuilder = result_.toBuilder(); + } + result_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.Deployment.Result.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(result_); + result_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_Deployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Deployment.class, + com.google.cloud.dialogflow.cx.v3.Deployment.Builder.class); + } + + /** + * + * + *
+   * The state of the deployment.
+   * 
+ * + * Protobuf enum {@code google.cloud.dialogflow.cx.v3.Deployment.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * State unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The deployment is running.
+     * 
+ * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
+     * The deployment succeeded.
+     * 
+ * + * SUCCEEDED = 2; + */ + SUCCEEDED(2), + /** + * + * + *
+     * The deployment failed.
+     * 
+ * + * FAILED = 3; + */ + FAILED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * State unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The deployment is running.
+     * 
+ * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + /** + * + * + *
+     * The deployment succeeded.
+     * 
+ * + * SUCCEEDED = 2; + */ + public static final int SUCCEEDED_VALUE = 2; + /** + * + * + *
+     * The deployment 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.Deployment.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.dialogflow.cx.v3.Deployment.State) + } + + public interface ResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Deployment.Result) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the deploymentTestResults. + */ + java.util.List getDeploymentTestResultsList(); + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of deploymentTestResults. + */ + int getDeploymentTestResultsCount(); + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The deploymentTestResults at the given index. + */ + java.lang.String getDeploymentTestResults(int index); + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the deploymentTestResults at the given index. + */ + com.google.protobuf.ByteString getDeploymentTestResultsBytes(int index); + + /** + * + * + *
+     * The name of the experiment triggered by this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+     * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The experiment. + */ + java.lang.String getExperiment(); + /** + * + * + *
+     * The name of the experiment triggered by this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+     * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for experiment. + */ + com.google.protobuf.ByteString getExperimentBytes(); + } + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Deployment.Result} + */ + public static final class Result extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Deployment.Result) + ResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use Result.newBuilder() to construct. + private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Result() { + deploymentTestResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; + experiment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Result(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Result( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deploymentTestResults_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deploymentTestResults_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + experiment_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + deploymentTestResults_ = deploymentTestResults_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_Deployment_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_Deployment_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Deployment.Result.class, + com.google.cloud.dialogflow.cx.v3.Deployment.Result.Builder.class); + } + + public static final int DEPLOYMENT_TEST_RESULTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList deploymentTestResults_; + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the deploymentTestResults. + */ + public com.google.protobuf.ProtocolStringList getDeploymentTestResultsList() { + return deploymentTestResults_; + } + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of deploymentTestResults. + */ + public int getDeploymentTestResultsCount() { + return deploymentTestResults_.size(); + } + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The deploymentTestResults at the given index. + */ + public java.lang.String getDeploymentTestResults(int index) { + return deploymentTestResults_.get(index); + } + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the deploymentTestResults at the given index. + */ + public com.google.protobuf.ByteString getDeploymentTestResultsBytes(int index) { + return deploymentTestResults_.getByteString(index); + } + + public static final int EXPERIMENT_FIELD_NUMBER = 2; + private volatile java.lang.Object experiment_; + /** + * + * + *
+     * The name of the experiment triggered by this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+     * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The experiment. + */ + @java.lang.Override + public java.lang.String getExperiment() { + java.lang.Object ref = experiment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + experiment_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the experiment triggered by this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+     * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for experiment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExperimentBytes() { + java.lang.Object ref = experiment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + experiment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < deploymentTestResults_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, deploymentTestResults_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(experiment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, experiment_); + } + unknownFields.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 < deploymentTestResults_.size(); i++) { + dataSize += computeStringSizeNoTag(deploymentTestResults_.getRaw(i)); + } + size += dataSize; + size += 1 * getDeploymentTestResultsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(experiment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, experiment_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Deployment.Result)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.Deployment.Result other = + (com.google.cloud.dialogflow.cx.v3.Deployment.Result) obj; + + if (!getDeploymentTestResultsList().equals(other.getDeploymentTestResultsList())) + return false; + if (!getExperiment().equals(other.getExperiment())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDeploymentTestResultsCount() > 0) { + hash = (37 * hash) + DEPLOYMENT_TEST_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentTestResultsList().hashCode(); + } + hash = (37 * hash) + EXPERIMENT_FIELD_NUMBER; + hash = (53 * hash) + getExperiment().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.Deployment.Result prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Deployment.Result} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Deployment.Result) + com.google.cloud.dialogflow.cx.v3.Deployment.ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_Deployment_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_Deployment_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Deployment.Result.class, + com.google.cloud.dialogflow.cx.v3.Deployment.Result.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.Deployment.Result.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + deploymentTestResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + experiment_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_Deployment_Result_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment.Result getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.Deployment.Result.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment.Result build() { + com.google.cloud.dialogflow.cx.v3.Deployment.Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment.Result buildPartial() { + com.google.cloud.dialogflow.cx.v3.Deployment.Result result = + new com.google.cloud.dialogflow.cx.v3.Deployment.Result(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + deploymentTestResults_ = deploymentTestResults_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deploymentTestResults_ = deploymentTestResults_; + result.experiment_ = experiment_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.Deployment.Result) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.Deployment.Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Deployment.Result other) { + if (other == com.google.cloud.dialogflow.cx.v3.Deployment.Result.getDefaultInstance()) + return this; + if (!other.deploymentTestResults_.isEmpty()) { + if (deploymentTestResults_.isEmpty()) { + deploymentTestResults_ = other.deploymentTestResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentTestResultsIsMutable(); + deploymentTestResults_.addAll(other.deploymentTestResults_); + } + onChanged(); + } + if (!other.getExperiment().isEmpty()) { + experiment_ = other.experiment_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.Deployment.Result parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.Deployment.Result) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList deploymentTestResults_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureDeploymentTestResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deploymentTestResults_ = + new com.google.protobuf.LazyStringArrayList(deploymentTestResults_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the deploymentTestResults. + */ + public com.google.protobuf.ProtocolStringList getDeploymentTestResultsList() { + return deploymentTestResults_.getUnmodifiableView(); + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of deploymentTestResults. + */ + public int getDeploymentTestResultsCount() { + return deploymentTestResults_.size(); + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The deploymentTestResults at the given index. + */ + public java.lang.String getDeploymentTestResults(int index) { + return deploymentTestResults_.get(index); + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the deploymentTestResults at the given index. + */ + public com.google.protobuf.ByteString getDeploymentTestResultsBytes(int index) { + return deploymentTestResults_.getByteString(index); + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The deploymentTestResults to set. + * @return This builder for chaining. + */ + public Builder setDeploymentTestResults(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentTestResultsIsMutable(); + deploymentTestResults_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param value The deploymentTestResults to add. + * @return This builder for chaining. + */ + public Builder addDeploymentTestResults(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentTestResultsIsMutable(); + deploymentTestResults_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param values The deploymentTestResults to add. + * @return This builder for chaining. + */ + public Builder addAllDeploymentTestResults(java.lang.Iterable values) { + ensureDeploymentTestResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deploymentTestResults_); + onChanged(); + return this; + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentTestResults() { + deploymentTestResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the deploymentTestResults to add. + * @return This builder for chaining. + */ + public Builder addDeploymentTestResultsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDeploymentTestResultsIsMutable(); + deploymentTestResults_.add(value); + onChanged(); + return this; + } + + private java.lang.Object experiment_ = ""; + /** + * + * + *
+       * The name of the experiment triggered by this deployment.
+       * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+       * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The experiment. + */ + public java.lang.String getExperiment() { + java.lang.Object ref = experiment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + experiment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the experiment triggered by this deployment.
+       * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+       * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for experiment. + */ + public com.google.protobuf.ByteString getExperimentBytes() { + java.lang.Object ref = experiment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + experiment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the experiment triggered by this deployment.
+       * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+       * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The experiment to set. + * @return This builder for chaining. + */ + public Builder setExperiment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + experiment_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the experiment triggered by this deployment.
+       * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+       * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearExperiment() { + + experiment_ = getDefaultInstance().getExperiment(); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the experiment triggered by this deployment.
+       * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+       * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for experiment to set. + * @return This builder for chaining. + */ + public Builder setExperimentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + experiment_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Deployment.Result) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Deployment.Result) + private static final com.google.cloud.dialogflow.cx.v3.Deployment.Result DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Deployment.Result(); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment.Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment.Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of the deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment 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 FLOW_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object flowVersion_; + /** + * + * + *
+   * The name of the flow version for this deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/versions/<Verion ID>.
+   * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The flowVersion. + */ + @java.lang.Override + public java.lang.String getFlowVersion() { + java.lang.Object ref = flowVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flowVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the flow version for this deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/versions/<Verion ID>.
+   * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for flowVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlowVersionBytes() { + java.lang.Object ref = flowVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flowVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_; + /** + * + * + *
+   * The current state of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The current state of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.State state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.cx.v3.Deployment.State result = + com.google.cloud.dialogflow.cx.v3.Deployment.State.valueOf(state_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.Deployment.State.UNRECOGNIZED + : result; + } + + public static final int RESULT_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.cx.v3.Deployment.Result result_; + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + * + * @return Whether the result field is set. + */ + @java.lang.Override + public boolean hasResult() { + return result_ != null; + } + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment.Result getResult() { + return result_ == null + ? com.google.cloud.dialogflow.cx.v3.Deployment.Result.getDefaultInstance() + : result_; + } + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment.ResultOrBuilder getResultOrBuilder() { + return getResult(); + } + + public static final int START_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flowVersion_); + } + if (state_ + != com.google.cloud.dialogflow.cx.v3.Deployment.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (result_ != null) { + output.writeMessage(4, getResult()); + } + if (startTime_ != null) { + output.writeMessage(5, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(6, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flowVersion_); + } + if (state_ + != com.google.cloud.dialogflow.cx.v3.Deployment.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (result_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResult()); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Deployment)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.Deployment other = + (com.google.cloud.dialogflow.cx.v3.Deployment) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFlowVersion().equals(other.getFlowVersion())) return false; + if (state_ != other.state_) return false; + if (hasResult() != other.hasResult()) return false; + if (hasResult()) { + if (!getResult().equals(other.getResult())) 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FLOW_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getFlowVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasResult()) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().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(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.Deployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.Deployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Deployment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents an deployment in an environment. A deployment happens when a flow
+   * version configured to be active in the environment. You can configure running
+   * pre-deployment steps, e.g. running validation test cases, experiment
+   * auto-rollout, etc.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Deployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Deployment) + com.google.cloud.dialogflow.cx.v3.DeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_Deployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Deployment.class, + com.google.cloud.dialogflow.cx.v3.Deployment.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.Deployment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + flowVersion_ = ""; + + state_ = 0; + + if (resultBuilder_ == null) { + result_ = null; + } else { + result_ = null; + resultBuilder_ = null; + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_Deployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.Deployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment build() { + com.google.cloud.dialogflow.cx.v3.Deployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment buildPartial() { + com.google.cloud.dialogflow.cx.v3.Deployment result = + new com.google.cloud.dialogflow.cx.v3.Deployment(this); + result.name_ = name_; + result.flowVersion_ = flowVersion_; + result.state_ = state_; + if (resultBuilder_ == null) { + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.Deployment) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.Deployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Deployment other) { + if (other == com.google.cloud.dialogflow.cx.v3.Deployment.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getFlowVersion().isEmpty()) { + flowVersion_ = other.flowVersion_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasResult()) { + mergeResult(other.getResult()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.Deployment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.cx.v3.Deployment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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; + onChanged(); + return this; + } + + private java.lang.Object flowVersion_ = ""; + /** + * + * + *
+     * The name of the flow version for this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/versions/<Verion ID>.
+     * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The flowVersion. + */ + public java.lang.String getFlowVersion() { + java.lang.Object ref = flowVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flowVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the flow version for this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/versions/<Verion ID>.
+     * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for flowVersion. + */ + public com.google.protobuf.ByteString getFlowVersionBytes() { + java.lang.Object ref = flowVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flowVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the flow version for this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/versions/<Verion ID>.
+     * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The flowVersion to set. + * @return This builder for chaining. + */ + public Builder setFlowVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + flowVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the flow version for this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/versions/<Verion ID>.
+     * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearFlowVersion() { + + flowVersion_ = getDefaultInstance().getFlowVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the flow version for this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/versions/<Verion ID>.
+     * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for flowVersion to set. + * @return This builder for chaining. + */ + public Builder setFlowVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + flowVersion_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * The current state of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The current state of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.State state = 3; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The current state of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.State state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.cx.v3.Deployment.State result = + com.google.cloud.dialogflow.cx.v3.Deployment.State.valueOf(state_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.Deployment.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The current state of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.State state = 3; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dialogflow.cx.v3.Deployment.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The current state of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.State state = 3; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.cx.v3.Deployment.Result result_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Deployment.Result, + com.google.cloud.dialogflow.cx.v3.Deployment.Result.Builder, + com.google.cloud.dialogflow.cx.v3.Deployment.ResultOrBuilder> + resultBuilder_; + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + * + * @return Whether the result field is set. + */ + public boolean hasResult() { + return resultBuilder_ != null || result_ != null; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + * + * @return The result. + */ + public com.google.cloud.dialogflow.cx.v3.Deployment.Result getResult() { + if (resultBuilder_ == null) { + return result_ == null + ? com.google.cloud.dialogflow.cx.v3.Deployment.Result.getDefaultInstance() + : result_; + } else { + return resultBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + */ + public Builder setResult(com.google.cloud.dialogflow.cx.v3.Deployment.Result value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + resultBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + */ + public Builder setResult( + com.google.cloud.dialogflow.cx.v3.Deployment.Result.Builder builderForValue) { + if (resultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + resultBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + */ + public Builder mergeResult(com.google.cloud.dialogflow.cx.v3.Deployment.Result value) { + if (resultBuilder_ == null) { + if (result_ != null) { + result_ = + com.google.cloud.dialogflow.cx.v3.Deployment.Result.newBuilder(result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + resultBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + */ + public Builder clearResult() { + if (resultBuilder_ == null) { + result_ = null; + onChanged(); + } else { + result_ = null; + resultBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + */ + public com.google.cloud.dialogflow.cx.v3.Deployment.Result.Builder getResultBuilder() { + + onChanged(); + return getResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + */ + public com.google.cloud.dialogflow.cx.v3.Deployment.ResultOrBuilder getResultOrBuilder() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilder(); + } else { + return result_ == null + ? com.google.cloud.dialogflow.cx.v3.Deployment.Result.getDefaultInstance() + : result_; + } + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Deployment.Result, + com.google.cloud.dialogflow.cx.v3.Deployment.Result.Builder, + com.google.cloud.dialogflow.cx.v3.Deployment.ResultOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Deployment.Result, + com.google.cloud.dialogflow.cx.v3.Deployment.Result.Builder, + com.google.cloud.dialogflow.cx.v3.Deployment.ResultOrBuilder>( + getResult(), getParentForChildren(), isClean()); + result_ = null; + } + return resultBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @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(); + } + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @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(); + } + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Deployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Deployment) + private static final com.google.cloud.dialogflow.cx.v3.Deployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Deployment(); + } + + public static com.google.cloud.dialogflow.cx.v3.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 { + return new Deployment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentName.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentName.java new file mode 100644 index 000000000..8c10d5213 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentName.java @@ -0,0 +1,298 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +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_AGENT_ENVIRONMENT_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String agent; + private final String environment; + private final String deployment; + + @Deprecated + protected DeploymentName() { + project = null; + location = null; + agent = null; + environment = null; + deployment = null; + } + + private DeploymentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + agent = Preconditions.checkNotNull(builder.getAgent()); + environment = Preconditions.checkNotNull(builder.getEnvironment()); + deployment = Preconditions.checkNotNull(builder.getDeployment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + public String getEnvironment() { + return environment; + } + + 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 agent, String environment, String deployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .setEnvironment(environment) + .setDeployment(deployment) + .build(); + } + + public static String format( + String project, String location, String agent, String environment, String deployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .setEnvironment(environment) + .setDeployment(deployment) + .build() + .toString(); + } + + public static DeploymentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AGENT_ENVIRONMENT_DEPLOYMENT.validatedMatch( + formattedString, "DeploymentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("agent"), + matchMap.get("environment"), + 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_AGENT_ENVIRONMENT_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 (agent != null) { + fieldMapBuilder.put("agent", agent); + } + if (environment != null) { + fieldMapBuilder.put("environment", environment); + } + 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_AGENT_ENVIRONMENT_DEPLOYMENT.instantiate( + "project", + project, + "location", + location, + "agent", + agent, + "environment", + environment, + "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.agent, that.agent) + && Objects.equals(this.environment, that.environment) + && 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(agent); + h *= 1000003; + h ^= Objects.hashCode(environment); + h *= 1000003; + h ^= Objects.hashCode(deployment); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}. + */ + public static class Builder { + private String project; + private String location; + private String agent; + private String environment; + private String deployment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + public String getEnvironment() { + return environment; + } + + 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 setAgent(String agent) { + this.agent = agent; + return this; + } + + public Builder setEnvironment(String environment) { + this.environment = environment; + 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.agent = deploymentName.agent; + this.environment = deploymentName.environment; + this.deployment = deploymentName.deployment; + } + + public DeploymentName build() { + return new DeploymentName(this); + } + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentOrBuilder.java new file mode 100644 index 000000000..3ac53d66f --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentOrBuilder.java @@ -0,0 +1,213 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/deployment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface DeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Deployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The name of the flow version for this deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/versions/<Verion ID>.
+   * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The flowVersion. + */ + java.lang.String getFlowVersion(); + /** + * + * + *
+   * The name of the flow version for this deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/versions/<Verion ID>.
+   * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for flowVersion. + */ + com.google.protobuf.ByteString getFlowVersionBytes(); + + /** + * + * + *
+   * The current state of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * The current state of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.State state = 3; + * + * @return The state. + */ + com.google.cloud.dialogflow.cx.v3.Deployment.State getState(); + + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + * + * @return Whether the result field is set. + */ + boolean hasResult(); + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + * + * @return The result. + */ + com.google.cloud.dialogflow.cx.v3.Deployment.Result getResult(); + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; + */ + com.google.cloud.dialogflow.cx.v3.Deployment.ResultOrBuilder getResultOrBuilder(); + + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentProto.java new file mode 100644 index 000000000..06584e1d1 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentProto.java @@ -0,0 +1,185 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/deployment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public final class DeploymentProto { + private DeploymentProto() {} + + 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_dialogflow_cx_v3_Deployment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_Deployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_Deployment_Result_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_Deployment_Result_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_GetDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_GetDeploymentRequest_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/dialogflow/cx/v3/deployme" + + "nt.proto\022\035google.cloud.dialogflow.cx.v3\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032\033goog" + + "le/protobuf/empty.proto\032 google/protobuf" + + "/field_mask.proto\032\037google/protobuf/times" + + "tamp.proto\"\263\005\n\nDeployment\022\014\n\004name\030\001 \001(\t\022" + + "<\n\014flow_version\030\002 \001(\tB&\372A#\n!dialogflow.g" + + "oogleapis.com/Version\022>\n\005state\030\003 \001(\0162/.g" + + "oogle.cloud.dialogflow.cx.v3.Deployment." + + "State\022@\n\006result\030\004 \001(\01320.google.cloud.dia" + + "logflow.cx.v3.Deployment.Result\022.\n\nstart" + + "_time\030\005 \001(\0132\032.google.protobuf.Timestamp\022" + + ",\n\010end_time\030\006 \001(\0132\032.google.protobuf.Time" + + "stamp\032\227\001\n\006Result\022N\n\027deployment_test_resu" + + "lts\030\001 \003(\tB-\372A*\n(dialogflow.googleapis.co" + + "m/TestCaseResult\022=\n\nexperiment\030\002 \001(\tB)\372A" + + "&\n$dialogflow.googleapis.com/Experiment\"" + + "F\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNI" + + "NG\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003:\226\001\352A\222\001\n$" + + "dialogflow.googleapis.com/Deployment\022jpr" + + "ojects/{project}/locations/{location}/ag" + + "ents/{agent}/environments/{environment}/" + + "deployments/{deployment}\"}\n\026ListDeployme" + + "ntsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$dial" + + "ogflow.googleapis.com/Deployment\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n\027ListD" + + "eploymentsResponse\022>\n\013deployments\030\001 \003(\0132" + + ").google.cloud.dialogflow.cx.v3.Deployme" + + "nt\022\027\n\017next_page_token\030\002 \001(\t\"R\n\024GetDeploy" + + "mentRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$dialo" + + "gflow.googleapis.com/Deployment2\256\004\n\013Depl" + + "oyments\022\332\001\n\017ListDeployments\0225.google.clo" + + "ud.dialogflow.cx.v3.ListDeploymentsReque" + + "st\0326.google.cloud.dialogflow.cx.v3.ListD" + + "eploymentsResponse\"X\202\323\344\223\002I\022G/v3/{parent=" + + "projects/*/locations/*/agents/*/environm" + + "ents/*}/deployments\332A\006parent\022\307\001\n\rGetDepl" + + "oyment\0223.google.cloud.dialogflow.cx.v3.G" + + "etDeploymentRequest\032).google.cloud.dialo" + + "gflow.cx.v3.Deployment\"V\202\323\344\223\002I\022G/v3/{nam" + + "e=projects/*/locations/*/agents/*/enviro" + + "nments/*/deployments/*}\332A\004name\032x\312A\031dialo" + + "gflow.googleapis.com\322AYhttps://www.googl" + + "eapis.com/auth/cloud-platform,https://ww" + + "w.googleapis.com/auth/dialogflowB\303\001\n!com" + + ".google.cloud.dialogflow.cx.v3B\017Deployme" + + "ntProtoP\001Z?google.golang.org/genproto/go" + + "ogleapis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002" + + "DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Goo" + + "gle::Cloud::Dialogflow::CX::V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_cx_v3_Deployment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_cx_v3_Deployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_Deployment_descriptor, + new java.lang.String[] { + "Name", "FlowVersion", "State", "Result", "StartTime", "EndTime", + }); + internal_static_google_cloud_dialogflow_cx_v3_Deployment_Result_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_Deployment_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_cx_v3_Deployment_Result_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_Deployment_Result_descriptor, + new java.lang.String[] { + "DeploymentTestResults", "Experiment", + }); + internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsResponse_descriptor, + new java.lang.String[] { + "Deployments", "NextPageToken", + }); + internal_static_google_cloud_dialogflow_cx_v3_GetDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_cx_v3_GetDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_GetDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentRequest.java index 1d9119871..07d0a8501 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentRequest.java @@ -405,7 +405,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSessionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } if (queryParams_ != null) { @@ -426,7 +426,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSessionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); } if (queryParams_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponse.java index c7792b32b..25cddba58 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponse.java @@ -575,7 +575,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, responseId_); } if (queryResult_ != null) { @@ -605,7 +605,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, responseId_); } if (queryResult_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DtmfInput.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DtmfInput.java index 00df0bfa4..cb2b267e8 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DtmfInput.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DtmfInput.java @@ -231,10 +231,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDigitsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digits_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, digits_); } - if (!getFinishDigitBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, finishDigit_); } unknownFields.writeTo(output); @@ -246,10 +246,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDigitsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digits_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, digits_); } - if (!getFinishDigitBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, finishDigit_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityType.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityType.java index e97f598b9..450e45309 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityType.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityType.java @@ -903,7 +903,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } for (int i = 0; i < synonyms_.size(); i++) { @@ -918,7 +918,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } { @@ -1831,7 +1831,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); @@ -1843,7 +1843,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); @@ -2706,10 +2706,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (kind_ != com.google.cloud.dialogflow.cx.v3.EntityType.Kind.KIND_UNSPECIFIED.getNumber()) { @@ -2742,10 +2742,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (kind_ != com.google.cloud.dialogflow.cx.v3.EntityType.Kind.KIND_UNSPECIFIED.getNumber()) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Environment.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Environment.java index 361fce7fc..ebfc3f004 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Environment.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Environment.java @@ -131,6 +131,24 @@ private Environment( extensionRegistry)); break; } + case 58: + { + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.Builder subBuilder = + null; + if (testCasesConfig_ != null) { + subBuilder = testCasesConfig_.toBuilder(); + } + testCasesConfig_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(testCasesConfig_); + testCasesConfig_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -366,7 +384,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } unknownFields.writeTo(output); @@ -378,7 +396,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } size += unknownFields.getSerializedSize(); @@ -678,98 +696,1140 @@ public Builder mergeFrom( return this; } - private java.lang.Object version_ = ""; + private java.lang.Object version_ = ""; + /** + * + * + *
+       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * 
+ * + * + * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * 
+ * + * + * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * 
+ * + * + * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * 
+ * + * + * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * 
+ * + * + * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Environment.VersionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Environment.VersionConfig) + private static final com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig(); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VersionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VersionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TestCasesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the testCases. + */ + java.util.List getTestCasesList(); + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of testCases. + */ + int getTestCasesCount(); + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The testCases at the given index. + */ + java.lang.String getTestCases(int index); + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the testCases at the given index. + */ + com.google.protobuf.ByteString getTestCasesBytes(int index); + + /** + * + * + *
+     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
+     * Default false. If set to ture, run once a day.
+     * 
+ * + * bool enable_continuous_run = 2; + * + * @return The enableContinuousRun. + */ + boolean getEnableContinuousRun(); + + /** + * + * + *
+     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
+     * deploying a flow version to the environment. Default false.
+     * 
+ * + * bool enable_predeployment_run = 3; + * + * @return The enablePredeploymentRun. + */ + boolean getEnablePredeploymentRun(); + } + /** + * + * + *
+   * The configuration for continuous tests.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} + */ + public static final class TestCasesConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) + TestCasesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TestCasesConfig.newBuilder() to construct. + private TestCasesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TestCasesConfig() { + testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TestCasesConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TestCasesConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + testCases_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + testCases_.add(s); + break; + } + case 16: + { + enableContinuousRun_ = input.readBool(); + break; + } + case 24: + { + enablePredeploymentRun_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + testCases_ = testCases_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Environment_TestCasesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Environment_TestCasesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.class, + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.Builder.class); + } + + public static final int TEST_CASES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList testCases_; + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the testCases. + */ + public com.google.protobuf.ProtocolStringList getTestCasesList() { + return testCases_; + } + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of testCases. + */ + public int getTestCasesCount() { + return testCases_.size(); + } + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The testCases at the given index. + */ + public java.lang.String getTestCases(int index) { + return testCases_.get(index); + } + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the testCases at the given index. + */ + public com.google.protobuf.ByteString getTestCasesBytes(int index) { + return testCases_.getByteString(index); + } + + public static final int ENABLE_CONTINUOUS_RUN_FIELD_NUMBER = 2; + private boolean enableContinuousRun_; + /** + * + * + *
+     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
+     * Default false. If set to ture, run once a day.
+     * 
+ * + * bool enable_continuous_run = 2; + * + * @return The enableContinuousRun. + */ + @java.lang.Override + public boolean getEnableContinuousRun() { + return enableContinuousRun_; + } + + public static final int ENABLE_PREDEPLOYMENT_RUN_FIELD_NUMBER = 3; + private boolean enablePredeploymentRun_; + /** + * + * + *
+     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
+     * deploying a flow version to the environment. Default false.
+     * 
+ * + * bool enable_predeployment_run = 3; + * + * @return The enablePredeploymentRun. + */ + @java.lang.Override + public boolean getEnablePredeploymentRun() { + return enablePredeploymentRun_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < testCases_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, testCases_.getRaw(i)); + } + if (enableContinuousRun_ != false) { + output.writeBool(2, enableContinuousRun_); + } + if (enablePredeploymentRun_ != false) { + output.writeBool(3, enablePredeploymentRun_); + } + unknownFields.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 < testCases_.size(); i++) { + dataSize += computeStringSizeNoTag(testCases_.getRaw(i)); + } + size += dataSize; + size += 1 * getTestCasesList().size(); + } + if (enableContinuousRun_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableContinuousRun_); + } + if (enablePredeploymentRun_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enablePredeploymentRun_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig other = + (com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) obj; + + if (!getTestCasesList().equals(other.getTestCasesList())) return false; + if (getEnableContinuousRun() != other.getEnableContinuousRun()) return false; + if (getEnablePredeploymentRun() != other.getEnablePredeploymentRun()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTestCasesCount() > 0) { + hash = (37 * hash) + TEST_CASES_FIELD_NUMBER; + hash = (53 * hash) + getTestCasesList().hashCode(); + } + hash = (37 * hash) + ENABLE_CONTINUOUS_RUN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableContinuousRun()); + hash = (37 * hash) + ENABLE_PREDEPLOYMENT_RUN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePredeploymentRun()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The configuration for continuous tests.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Environment_TestCasesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Environment_TestCasesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.class, + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + enableContinuousRun_ = false; + + enablePredeploymentRun_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Environment_TestCasesConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig build() { + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig buildPartial() { + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig result = + new com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + testCases_ = testCases_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.testCases_ = testCases_; + result.enableContinuousRun_ = enableContinuousRun_; + result.enablePredeploymentRun_ = enablePredeploymentRun_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig other) { + if (other + == com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.getDefaultInstance()) + return this; + if (!other.testCases_.isEmpty()) { + if (testCases_.isEmpty()) { + testCases_ = other.testCases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTestCasesIsMutable(); + testCases_.addAll(other.testCases_); + } + onChanged(); + } + if (other.getEnableContinuousRun() != false) { + setEnableContinuousRun(other.getEnableContinuousRun()); + } + if (other.getEnablePredeploymentRun() != false) { + setEnablePredeploymentRun(other.getEnablePredeploymentRun()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList testCases_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTestCasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + testCases_ = new com.google.protobuf.LazyStringArrayList(testCases_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the testCases. + */ + public com.google.protobuf.ProtocolStringList getTestCasesList() { + return testCases_.getUnmodifiableView(); + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of testCases. + */ + public int getTestCasesCount() { + return testCases_.size(); + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The testCases at the given index. + */ + public java.lang.String getTestCases(int index) { + return testCases_.get(index); + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the testCases at the given index. + */ + public com.google.protobuf.ByteString getTestCasesBytes(int index) { + return testCases_.getByteString(index); + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The testCases to set. + * @return This builder for chaining. + */ + public Builder setTestCases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestCasesIsMutable(); + testCases_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The testCases to add. + * @return This builder for chaining. + */ + public Builder addTestCases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestCasesIsMutable(); + testCases_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param values The testCases to add. + * @return This builder for chaining. + */ + public Builder addAllTestCases(java.lang.Iterable values) { + ensureTestCasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, testCases_); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTestCases() { + testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the testCases to add. + * @return This builder for chaining. + */ + public Builder addTestCasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTestCasesIsMutable(); + testCases_.add(value); + onChanged(); + return this; + } + + private boolean enableContinuousRun_; /** * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
+       * Default false. If set to ture, run once a day.
        * 
* - * - * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * bool enable_continuous_run = 2; * - * @return The version. + * @return The enableContinuousRun. */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean getEnableContinuousRun() { + return enableContinuousRun_; } /** * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
+       * Default false. If set to ture, run once a day.
        * 
* - * - * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * bool enable_continuous_run = 2; * - * @return The bytes for version. + * @param value The enableContinuousRun to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setEnableContinuousRun(boolean value) { + + enableContinuousRun_ = value; + onChanged(); + return this; } /** * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
+       * Default false. If set to ture, run once a day.
        * 
* - * - * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * bool enable_continuous_run = 2; * - * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder clearEnableContinuousRun() { - version_ = value; + enableContinuousRun_ = false; onChanged(); return this; } + + private boolean enablePredeploymentRun_; /** * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
+       * deploying a flow version to the environment. Default false.
        * 
* - * - * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * bool enable_predeployment_run = 3; + * + * @return The enablePredeploymentRun. + */ + @java.lang.Override + public boolean getEnablePredeploymentRun() { + return enablePredeploymentRun_; + } + /** + * + * + *
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
+       * deploying a flow version to the environment. Default false.
+       * 
+ * + * bool enable_predeployment_run = 3; * + * @param value The enablePredeploymentRun to set. * @return This builder for chaining. */ - public Builder clearVersion() { + public Builder setEnablePredeploymentRun(boolean value) { - version_ = getDefaultInstance().getVersion(); + enablePredeploymentRun_ = value; onChanged(); return this; } @@ -777,24 +1837,17 @@ public Builder clearVersion() { * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
+       * deploying a flow version to the environment. Default false.
        * 
* - * - * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * bool enable_predeployment_run = 3; * - * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearEnablePredeploymentRun() { - version_ = value; + enablePredeploymentRun_ = false; onChanged(); return this; } @@ -811,43 +1864,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Environment.VersionConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Environment.VersionConfig) - private static final com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) + private static final com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig(); } - public static com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig getDefaultInstance() { + public static com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig + 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 VersionConfig parsePartialFrom( + public TestCasesConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VersionConfig(input, extensionRegistry); + return new TestCasesConfig(input, extensionRegistry); } }; - 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.dialogflow.cx.v3.Environment.VersionConfig getDefaultInstanceForType() { + public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -1154,6 +2209,55 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); } + public static final int TEST_CASES_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig testCasesConfig_; + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + * @return Whether the testCasesConfig field is set. + */ + @java.lang.Override + public boolean hasTestCasesConfig() { + return testCasesConfig_ != null; + } + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + * @return The testCasesConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig getTestCasesConfig() { + return testCasesConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.getDefaultInstance() + : testCasesConfig_; + } + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfigOrBuilder + getTestCasesConfigOrBuilder() { + return getTestCasesConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1168,13 +2272,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (updateTime_ != null) { @@ -1183,6 +2287,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < versionConfigs_.size(); i++) { output.writeMessage(6, versionConfigs_.get(i)); } + if (testCasesConfig_ != null) { + output.writeMessage(7, getTestCasesConfig()); + } unknownFields.writeTo(output); } @@ -1192,13 +2299,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (updateTime_ != null) { @@ -1207,6 +2314,9 @@ public int getSerializedSize() { for (int i = 0; i < versionConfigs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, versionConfigs_.get(i)); } + if (testCasesConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTestCasesConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1231,6 +2341,10 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (hasTestCasesConfig() != other.hasTestCasesConfig()) return false; + if (hasTestCasesConfig()) { + if (!getTestCasesConfig().equals(other.getTestCasesConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1256,6 +2370,10 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + if (hasTestCasesConfig()) { + hash = (37 * hash) + TEST_CASES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTestCasesConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1428,6 +2546,12 @@ public Builder clear() { updateTime_ = null; updateTimeBuilder_ = null; } + if (testCasesConfigBuilder_ == null) { + testCasesConfig_ = null; + } else { + testCasesConfig_ = null; + testCasesConfigBuilder_ = null; + } return this; } @@ -1473,6 +2597,11 @@ public com.google.cloud.dialogflow.cx.v3.Environment buildPartial() { } else { result.updateTime_ = updateTimeBuilder_.build(); } + if (testCasesConfigBuilder_ == null) { + result.testCasesConfig_ = testCasesConfig_; + } else { + result.testCasesConfig_ = testCasesConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1564,6 +2693,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Environment other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (other.hasTestCasesConfig()) { + mergeTestCasesConfig(other.getTestCasesConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2595,6 +3727,206 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig testCasesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig, + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.Builder, + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfigOrBuilder> + testCasesConfigBuilder_; + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + * + * @return Whether the testCasesConfig field is set. + */ + public boolean hasTestCasesConfig() { + return testCasesConfigBuilder_ != null || testCasesConfig_ != null; + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + * + * @return The testCasesConfig. + */ + public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig getTestCasesConfig() { + if (testCasesConfigBuilder_ == null) { + return testCasesConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.getDefaultInstance() + : testCasesConfig_; + } else { + return testCasesConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public Builder setTestCasesConfig( + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig value) { + if (testCasesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testCasesConfig_ = value; + onChanged(); + } else { + testCasesConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public Builder setTestCasesConfig( + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.Builder builderForValue) { + if (testCasesConfigBuilder_ == null) { + testCasesConfig_ = builderForValue.build(); + onChanged(); + } else { + testCasesConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public Builder mergeTestCasesConfig( + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig value) { + if (testCasesConfigBuilder_ == null) { + if (testCasesConfig_ != null) { + testCasesConfig_ = + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.newBuilder( + testCasesConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + testCasesConfig_ = value; + } + onChanged(); + } else { + testCasesConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public Builder clearTestCasesConfig() { + if (testCasesConfigBuilder_ == null) { + testCasesConfig_ = null; + onChanged(); + } else { + testCasesConfig_ = null; + testCasesConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.Builder + getTestCasesConfigBuilder() { + + onChanged(); + return getTestCasesConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfigOrBuilder + getTestCasesConfigOrBuilder() { + if (testCasesConfigBuilder_ != null) { + return testCasesConfigBuilder_.getMessageOrBuilder(); + } else { + return testCasesConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.getDefaultInstance() + : testCasesConfig_; + } + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig, + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.Builder, + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfigOrBuilder> + getTestCasesConfigFieldBuilder() { + if (testCasesConfigBuilder_ == null) { + testCasesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig, + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.Builder, + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfigOrBuilder>( + getTestCasesConfig(), getParentForChildren(), isClean()); + testCasesConfig_ = null; + } + return testCasesConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentOrBuilder.java index 7230d2f0c..eedd5299a 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentOrBuilder.java @@ -222,4 +222,40 @@ com.google.cloud.dialogflow.cx.v3.Environment.VersionConfigOrBuilder getVersionC * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + * @return Whether the testCasesConfig field is set. + */ + boolean hasTestCasesConfig(); + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + * + * @return The testCasesConfig. + */ + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig getTestCasesConfig(); + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7; + */ + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfigOrBuilder + getTestCasesConfigOrBuilder(); } diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java index 63a951db5..5544ea8d1 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java @@ -35,6 +35,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_Environment_VersionConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_Environment_VersionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_Environment_TestCasesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_Environment_TestCasesConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3_ListEnvironmentsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -91,6 +95,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -106,129 +122,150 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/client.proto\032\037google/api/field_behavi" + "or.proto\032\031google/api/resource.proto\032-goo" + "gle/cloud/dialogflow/cx/v3/test_case.pro" - + "to\032#google/longrunning/operations.proto\032" - + "\033google/protobuf/empty.proto\032 google/pro" - + "tobuf/field_mask.proto\032\037google/protobuf/" - + "timestamp.proto\"\245\003\n\013Environment\022\014\n\004name\030" - + "\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013desc" - + "ription\030\003 \001(\t\022V\n\017version_configs\030\006 \003(\01328" - + ".google.cloud.dialogflow.cx.v3.Environme" - + "nt.VersionConfigB\003\340A\002\0224\n\013update_time\030\005 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\032K\n\rV" - + "ersionConfig\022:\n\007version\030\001 \001(\tB)\340A\002\372A#\n!d" - + "ialogflow.googleapis.com/Version:}\352Az\n%d" - + "ialogflow.googleapis.com/Environment\022Qpr" - + "ojects/{project}/locations/{location}/ag" - + "ents/{agent}/environments/{environment}\"" - + "\177\n\027ListEnvironmentsRequest\022=\n\006parent\030\001 \001" - + "(\tB-\340A\002\372A\'\022%dialogflow.googleapis.com/En" - + "vironment\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"u\n\030ListEnvironmentsResponse\022@\n\014" - + "environments\030\001 \003(\0132*.google.cloud.dialog" - + "flow.cx.v3.Environment\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"T\n\025GetEnvironmentRequest\022;\n\004name" - + "\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googleapis.co" - + "m/Environment\"\237\001\n\030CreateEnvironmentReque" - + "st\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dialogflow.g" - + "oogleapis.com/Environment\022D\n\013environment" - + "\030\002 \001(\0132*.google.cloud.dialogflow.cx.v3.E" - + "nvironmentB\003\340A\002\"\226\001\n\030UpdateEnvironmentReq" - + "uest\022D\n\013environment\030\001 \001(\0132*.google.cloud" - + ".dialogflow.cx.v3.EnvironmentB\003\340A\002\0224\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\"W\n\030DeleteEnvironmentRequest\022;\n\004" - + "name\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googleapi" - + "s.com/Environment\"\205\001\n\037LookupEnvironmentH" - + "istoryRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dia" - + "logflow.googleapis.com/Environment\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"}\n Loo" - + "kupEnvironmentHistoryResponse\022@\n\014environ" - + "ments\030\001 \003(\0132*.google.cloud.dialogflow.cx" - + ".v3.Environment\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\210\004\n\024ContinuousTestResult\022\014\n\004name\030\001 \001(\t\022" - + "X\n\006result\030\002 \001(\0162H.google.cloud.dialogflo" - + "w.cx.v3.ContinuousTestResult.AggregatedT" - + "estResult\022H\n\021test_case_results\030\003 \003(\tB-\372A" - + "*\n(dialogflow.googleapis.com/TestCaseRes" - + "ult\022,\n\010run_time\030\004 \001(\0132\032.google.protobuf." - + "Timestamp\"V\n\024AggregatedTestResult\022&\n\"AGG" - + "REGATED_TEST_RESULT_UNSPECIFIED\020\000\022\n\n\006PAS" - + "SED\020\001\022\n\n\006FAILED\020\002:\267\001\352A\263\001\n.dialogflow.goo" - + "gleapis.com/ContinuousTestResult\022\200\001proje" - + "cts/{project}/locations/{location}/agent" - + "s/{agent}/environments/{environment}/con" - + "tinuousTestResults/{continuous_test_resu" - + "lt}\"^\n\030RunContinuousTestRequest\022B\n\013envir" - + "onment\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googlea" - + "pis.com/Environment\"p\n\031RunContinuousTest" - + "Response\022S\n\026continuous_test_result\030\001 \001(\013" - + "23.google.cloud.dialogflow.cx.v3.Continu" - + "ousTestResult\"U\n\031RunContinuousTestMetada" - + "ta\0228\n\006errors\030\001 \003(\0132(.google.cloud.dialog" - + "flow.cx.v3.TestError\"\221\001\n ListContinuousT" - + "estResultsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A" - + "0\022.dialogflow.googleapis.com/ContinuousT" - + "estResult\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"\222\001\n!ListContinuousTestResultsRe" - + "sponse\022T\n\027continuous_test_results\030\001 \003(\0132" - + "3.google.cloud.dialogflow.cx.v3.Continuo" - + "usTestResult\022\027\n\017next_page_token\030\002 \001(\t2\340\017" - + "\n\014Environments\022\317\001\n\020ListEnvironments\0226.go" - + "ogle.cloud.dialogflow.cx.v3.ListEnvironm" - + "entsRequest\0327.google.cloud.dialogflow.cx" - + ".v3.ListEnvironmentsResponse\"J\202\323\344\223\002;\0229/v" - + "3/{parent=projects/*/locations/*/agents/" - + "*}/environments\332A\006parent\022\274\001\n\016GetEnvironm" - + "ent\0224.google.cloud.dialogflow.cx.v3.GetE" - + "nvironmentRequest\032*.google.cloud.dialogf" - + "low.cx.v3.Environment\"H\202\323\344\223\002;\0229/v3/{name" + + "to\032+google/cloud/dialogflow/cx/v3/webhoo" + + "k.proto\032#google/longrunning/operations.p" + + "roto\032\033google/protobuf/empty.proto\032 googl" + + "e/protobuf/field_mask.proto\032\037google/prot" + + "obuf/timestamp.proto\"\216\005\n\013Environment\022\014\n\004" + + "name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n" + + "\013description\030\003 \001(\t\022V\n\017version_configs\030\006 " + + "\003(\01328.google.cloud.dialogflow.cx.v3.Envi" + + "ronment.VersionConfigB\003\340A\002\0224\n\013update_tim" + + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022U\n\021test_cases_config\030\007 \001(\0132:.google.clo" + + "ud.dialogflow.cx.v3.Environment.TestCase" + + "sConfig\032K\n\rVersionConfig\022:\n\007version\030\001 \001(" + + "\tB)\340A\002\372A#\n!dialogflow.googleapis.com/Ver" + + "sion\032\217\001\n\017TestCasesConfig\022;\n\ntest_cases\030\001" + + " \003(\tB\'\372A$\n\"dialogflow.googleapis.com/Tes" + + "tCase\022\035\n\025enable_continuous_run\030\002 \001(\010\022 \n\030" + + "enable_predeployment_run\030\003 \001(\010:}\352Az\n%dia" + + "logflow.googleapis.com/Environment\022Qproj" + + "ects/{project}/locations/{location}/agen" + + "ts/{agent}/environments/{environment}\"\177\n" + + "\027ListEnvironmentsRequest\022=\n\006parent\030\001 \001(\t" + + "B-\340A\002\372A\'\022%dialogflow.googleapis.com/Envi" + + "ronment\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"u\n\030ListEnvironmentsResponse\022@\n\014en" + + "vironments\030\001 \003(\0132*.google.cloud.dialogfl" + + "ow.cx.v3.Environment\022\027\n\017next_page_token\030" + + "\002 \001(\t\"T\n\025GetEnvironmentRequest\022;\n\004name\030\001" + + " \001(\tB-\340A\002\372A\'\n%dialogflow.googleapis.com/" + + "Environment\"\237\001\n\030CreateEnvironmentRequest" + + "\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dialogflow.goo" + + "gleapis.com/Environment\022D\n\013environment\030\002" + + " \001(\0132*.google.cloud.dialogflow.cx.v3.Env" + + "ironmentB\003\340A\002\"\226\001\n\030UpdateEnvironmentReque" + + "st\022D\n\013environment\030\001 \001(\0132*.google.cloud.d" + + "ialogflow.cx.v3.EnvironmentB\003\340A\002\0224\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\002\"W\n\030DeleteEnvironmentRequest\022;\n\004na" + + "me\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googleapis." + + "com/Environment\"\205\001\n\037LookupEnvironmentHis" + + "toryRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dialo" + + "gflow.googleapis.com/Environment\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"}\n Looku" + + "pEnvironmentHistoryResponse\022@\n\014environme" + + "nts\030\001 \003(\0132*.google.cloud.dialogflow.cx.v" + + "3.Environment\022\027\n\017next_page_token\030\002 \001(\t\"\210" + + "\004\n\024ContinuousTestResult\022\014\n\004name\030\001 \001(\t\022X\n" + + "\006result\030\002 \001(\0162H.google.cloud.dialogflow." + + "cx.v3.ContinuousTestResult.AggregatedTes" + + "tResult\022H\n\021test_case_results\030\003 \003(\tB-\372A*\n" + + "(dialogflow.googleapis.com/TestCaseResul" + + "t\022,\n\010run_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\"V\n\024AggregatedTestResult\022&\n\"AGGRE" + + "GATED_TEST_RESULT_UNSPECIFIED\020\000\022\n\n\006PASSE" + + "D\020\001\022\n\n\006FAILED\020\002:\267\001\352A\263\001\n.dialogflow.googl" + + "eapis.com/ContinuousTestResult\022\200\001project" + + "s/{project}/locations/{location}/agents/" + + "{agent}/environments/{environment}/conti" + + "nuousTestResults/{continuous_test_result" + + "}\"^\n\030RunContinuousTestRequest\022B\n\013environ" + + "ment\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googleapi" + + "s.com/Environment\"p\n\031RunContinuousTestRe" + + "sponse\022S\n\026continuous_test_result\030\001 \001(\01323" + + ".google.cloud.dialogflow.cx.v3.Continuou" + + "sTestResult\"U\n\031RunContinuousTestMetadata" + + "\0228\n\006errors\030\001 \003(\0132(.google.cloud.dialogfl" + + "ow.cx.v3.TestError\"\221\001\n ListContinuousTes" + + "tResultsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022" + + ".dialogflow.googleapis.com/ContinuousTes" + + "tResult\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\222\001\n!ListContinuousTestResultsResp" + + "onse\022T\n\027continuous_test_results\030\001 \003(\01323." + + "google.cloud.dialogflow.cx.v3.Continuous" + + "TestResult\022\027\n\017next_page_token\030\002 \001(\t\"\230\001\n\021" + + "DeployFlowRequest\022B\n\013environment\030\001 \001(\tB-" + + "\340A\002\372A\'\n%dialogflow.googleapis.com/Enviro" + + "nment\022?\n\014flow_version\030\002 \001(\tB)\340A\002\372A#\n!dia" + + "logflow.googleapis.com/Version\"i\n\022Deploy" + + "FlowResponse\022?\n\013environment\030\001 \001(\0132*.goog" + + "le.cloud.dialogflow.cx.v3.Environment\022\022\n" + + "\ndeployment\030\002 \001(\t\"S\n\022DeployFlowMetadata\022" + + "=\n\013test_errors\030\001 \003(\0132(.google.cloud.dial" + + "ogflow.cx.v3.TestError2\304\021\n\014Environments\022" + + "\317\001\n\020ListEnvironments\0226.google.cloud.dial" + + "ogflow.cx.v3.ListEnvironmentsRequest\0327.g" + + "oogle.cloud.dialogflow.cx.v3.ListEnviron" + + "mentsResponse\"J\202\323\344\223\002;\0229/v3/{parent=proje" + + "cts/*/locations/*/agents/*}/environments" + + "\332A\006parent\022\274\001\n\016GetEnvironment\0224.google.cl" + + "oud.dialogflow.cx.v3.GetEnvironmentReque" + + "st\032*.google.cloud.dialogflow.cx.v3.Envir" + + "onment\"H\202\323\344\223\002;\0229/v3/{name=projects/*/loc" + + "ations/*/agents/*/environments/*}\332A\004name" + + "\022\371\001\n\021CreateEnvironment\0227.google.cloud.di" + + "alogflow.cx.v3.CreateEnvironmentRequest\032" + + "\035.google.longrunning.Operation\"\213\001\202\323\344\223\002H\"" + + "9/v3/{parent=projects/*/locations/*/agen" + + "ts/*}/environments:\013environment\332A\022parent" + + ",environment\312A%\n\013Environment\022\026google.pro" + + "tobuf.Struct\022\212\002\n\021UpdateEnvironment\0227.goo" + + "gle.cloud.dialogflow.cx.v3.UpdateEnviron" + + "mentRequest\032\035.google.longrunning.Operati" + + "on\"\234\001\202\323\344\223\002T2E/v3/{environment.name=proje" + + "cts/*/locations/*/agents/*/environments/" + + "*}:\013environment\332A\027environment,update_mas" + + "k\312A%\n\013Environment\022\026google.protobuf.Struc" + + "t\022\256\001\n\021DeleteEnvironment\0227.google.cloud.d" + + "ialogflow.cx.v3.DeleteEnvironmentRequest" + + "\032\026.google.protobuf.Empty\"H\202\323\344\223\002;*9/v3/{n" + + "ame=projects/*/locations/*/agents/*/envi" + + "ronments/*}\332A\004name\022\376\001\n\030LookupEnvironment" + + "History\022>.google.cloud.dialogflow.cx.v3." + + "LookupEnvironmentHistoryRequest\032?.google" + + ".cloud.dialogflow.cx.v3.LookupEnvironmen" + + "tHistoryResponse\"a\202\323\344\223\002T\022R/v3/{name=proj" + + "ects/*/locations/*/agents/*/environments" + + "/*}:lookupEnvironmentHistory\332A\004name\022\204\002\n\021" + + "RunContinuousTest\0227.google.cloud.dialogf" + + "low.cx.v3.RunContinuousTestRequest\032\035.goo" + + "gle.longrunning.Operation\"\226\001\202\323\344\223\002W\"R/v3/" + + "{environment=projects/*/locations/*/agen" + + "ts/*/environments/*}:runContinuousTest:\001" + + "*\312A6\n\031RunContinuousTestResponse\022\031RunCont" + + "inuousTestMetadata\022\202\002\n\031ListContinuousTes" + + "tResults\022?.google.cloud.dialogflow.cx.v3" + + ".ListContinuousTestResultsRequest\032@.goog" + + "le.cloud.dialogflow.cx.v3.ListContinuous" + + "TestResultsResponse\"b\202\323\344\223\002S\022Q/v3/{parent" + "=projects/*/locations/*/agents/*/environ" - + "ments/*}\332A\004name\022\371\001\n\021CreateEnvironment\0227." - + "google.cloud.dialogflow.cx.v3.CreateEnvi" - + "ronmentRequest\032\035.google.longrunning.Oper" - + "ation\"\213\001\202\323\344\223\002H\"9/v3/{parent=projects/*/l" - + "ocations/*/agents/*}/environments:\013envir" - + "onment\332A\022parent,environment\312A%\n\013Environm" - + "ent\022\026google.protobuf.Struct\022\212\002\n\021UpdateEn" - + "vironment\0227.google.cloud.dialogflow.cx.v" - + "3.UpdateEnvironmentRequest\032\035.google.long" - + "running.Operation\"\234\001\202\323\344\223\002T2E/v3/{environ" - + "ment.name=projects/*/locations/*/agents/" - + "*/environments/*}:\013environment\332A\027environ" - + "ment,update_mask\312A%\n\013Environment\022\026google" - + ".protobuf.Struct\022\256\001\n\021DeleteEnvironment\0227" - + ".google.cloud.dialogflow.cx.v3.DeleteEnv" - + "ironmentRequest\032\026.google.protobuf.Empty\"" - + "H\202\323\344\223\002;*9/v3/{name=projects/*/locations/" - + "*/agents/*/environments/*}\332A\004name\022\376\001\n\030Lo" - + "okupEnvironmentHistory\022>.google.cloud.di" - + "alogflow.cx.v3.LookupEnvironmentHistoryR" - + "equest\032?.google.cloud.dialogflow.cx.v3.L" - + "ookupEnvironmentHistoryResponse\"a\202\323\344\223\002T\022" - + "R/v3/{name=projects/*/locations/*/agents" - + "/*/environments/*}:lookupEnvironmentHist" - + "ory\332A\004name\022\204\002\n\021RunContinuousTest\0227.googl" - + "e.cloud.dialogflow.cx.v3.RunContinuousTe" - + "stRequest\032\035.google.longrunning.Operation" - + "\"\226\001\202\323\344\223\002W\"R/v3/{environment=projects/*/l" - + "ocations/*/agents/*/environments/*}:runC" - + "ontinuousTest:\001*\312A6\n\031RunContinuousTestRe" - + "sponse\022\031RunContinuousTestMetadata\022\202\002\n\031Li" - + "stContinuousTestResults\022?.google.cloud.d" - + "ialogflow.cx.v3.ListContinuousTestResult" - + "sRequest\032@.google.cloud.dialogflow.cx.v3" - + ".ListContinuousTestResultsResponse\"b\202\323\344\223" - + "\002S\022Q/v3/{parent=projects/*/locations/*/a" - + "gents/*/environments/*}/continuousTestRe" - + "sults\332A\006parent\032x\312A\031dialogflow.googleapis" - + ".com\322AYhttps://www.googleapis.com/auth/c" - + "loud-platform,https://www.googleapis.com" - + "/auth/dialogflowB\304\001\n!com.google.cloud.di" - + "alogflow.cx.v3B\020EnvironmentProtoP\001Z?goog" - + "le.golang.org/genproto/googleapis/cloud/" - + "dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Clo" - + "ud.Dialogflow.Cx.V3\352\002!Google::Cloud::Dia" - + "logflow::CX::V3b\006proto3" + + "ments/*}/continuousTestResults\332A\006parent\022" + + "\341\001\n\nDeployFlow\0220.google.cloud.dialogflow" + + ".cx.v3.DeployFlowRequest\032\035.google.longru" + + "nning.Operation\"\201\001\202\323\344\223\002P\"K/v3/{environme" + + "nt=projects/*/locations/*/agents/*/envir" + + "onments/*}:deployFlow:\001*\312A(\n\022DeployFlowR" + + "esponse\022\022DeployFlowMetadata\032x\312A\031dialogfl" + + "ow.googleapis.com\322AYhttps://www.googleap" + + "is.com/auth/cloud-platform,https://www.g" + + "oogleapis.com/auth/dialogflowB\304\001\n!com.go" + + "ogle.cloud.dialogflow.cx.v3B\020Environment" + + "ProtoP\001Z?google.golang.org/genproto/goog" + + "leapis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF" + + "\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Googl" + + "e::Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -239,6 +276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.TestCaseProto.getDescriptor(), + com.google.cloud.dialogflow.cx.v3.WebhookProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -250,7 +288,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_Environment_descriptor, new java.lang.String[] { - "Name", "DisplayName", "Description", "VersionConfigs", "UpdateTime", + "Name", + "DisplayName", + "Description", + "VersionConfigs", + "UpdateTime", + "TestCasesConfig", }); internal_static_google_cloud_dialogflow_cx_v3_Environment_VersionConfig_descriptor = internal_static_google_cloud_dialogflow_cx_v3_Environment_descriptor @@ -262,6 +305,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Version", }); + internal_static_google_cloud_dialogflow_cx_v3_Environment_TestCasesConfig_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_Environment_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dialogflow_cx_v3_Environment_TestCasesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_Environment_TestCasesConfig_descriptor, + new java.lang.String[] { + "TestCases", "EnableContinuousRun", "EnablePredeploymentRun", + }); internal_static_google_cloud_dialogflow_cx_v3_ListEnvironmentsRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_dialogflow_cx_v3_ListEnvironmentsRequest_fieldAccessorTable = @@ -374,6 +427,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ContinuousTestResults", "NextPageToken", }); + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowRequest_descriptor, + new java.lang.String[] { + "Environment", "FlowVersion", + }); + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowResponse_descriptor, + new java.lang.String[] { + "Environment", "Deployment", + }); + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowMetadata_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_DeployFlowMetadata_descriptor, + new java.lang.String[] { + "TestErrors", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -391,6 +468,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.TestCaseProto.getDescriptor(); + com.google.cloud.dialogflow.cx.v3.WebhookProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventHandler.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventHandler.java index 0a8daa55b..e9c109456 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventHandler.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventHandler.java @@ -532,13 +532,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (targetCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); } - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, event_); } if (triggerFulfillment_ != null) { output.writeMessage(5, getTriggerFulfillment()); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } unknownFields.writeTo(output); @@ -556,13 +556,13 @@ public int getSerializedSize() { if (targetCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); } - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, event_); } if (triggerFulfillment_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTriggerFulfillment()); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventInput.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventInput.java index 829ccf6e8..6ff9d15fe 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventInput.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventInput.java @@ -174,7 +174,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, event_); } unknownFields.writeTo(output); @@ -186,7 +186,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, event_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Experiment.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Experiment.java index 2f61be1df..ecf40078f 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Experiment.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Experiment.java @@ -853,7 +853,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, condition_); } if (variantsCase_ == 2) { @@ -868,7 +868,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, condition_); } if (variantsCase_ == 2) { @@ -5167,7 +5167,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } for (int i = 0; i < metrics_.size(); i++) { @@ -5185,7 +5185,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } for (int i = 0; i < metrics_.size(); i++) { @@ -8152,13 +8152,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (state_ @@ -8195,7 +8195,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (rolloutState_ != null) { output.writeMessage(15, getRolloutState()); } - if (!getRolloutFailureReasonBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutFailureReason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, rolloutFailureReason_); } unknownFields.writeTo(output); @@ -8207,13 +8207,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (state_ @@ -8250,7 +8250,7 @@ public int getSerializedSize() { if (rolloutState_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getRolloutState()); } - if (!getRolloutFailureReasonBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutFailureReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, rolloutFailureReason_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequest.java index 718e69bc0..9773a6f9b 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequest.java @@ -308,13 +308,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getAgentUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, agentUri_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, environment_); } unknownFields.writeTo(output); @@ -326,13 +326,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getAgentUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, agentUri_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, environment_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequest.java index cc60dfb9f..1391e1906 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequest.java @@ -268,10 +268,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getFlowUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flowUri_); } if (includeReferencedFlows_ != false) { @@ -286,10 +286,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getFlowUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flowUri_); } if (includeReferencedFlows_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesMetadata.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesMetadata.java index c56a7c72b..ec570b250 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesMetadata.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesMetadata.java @@ -24,6 +24,7 @@ *
  * Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases] long running
  * operation.
+ * This message currently has no fields.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} @@ -260,6 +261,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases] long running
    * operation.
+   * This message currently has no fields.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesRequest.java index b73a3d604..9bee314d5 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesRequest.java @@ -586,7 +586,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (destinationCase_ == 2) { @@ -598,7 +598,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, dataFormat_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } unknownFields.writeTo(output); @@ -610,7 +610,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (destinationCase_ == 2) { @@ -622,7 +622,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, dataFormat_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java index e143ee73c..67bf918c2 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java @@ -751,13 +751,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } for (int i = 0; i < transitionRoutes_.size(); i++) { @@ -782,13 +782,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < transitionRoutes_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResult.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResult.java index 10345510c..042fdfcd2 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResult.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResult.java @@ -328,7 +328,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < validationMessages_.size(); i++) { @@ -346,7 +346,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < validationMessages_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Form.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Form.java index 5ad0d80ad..caf209e17 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Form.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Form.java @@ -2916,13 +2916,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } if (required_ != false) { output.writeBool(2, required_); } - if (!getEntityTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entityType_); } if (isList_ != false) { @@ -2946,13 +2946,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (required_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, required_); } - if (!getEntityTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entityType_); } if (isList_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponse.java index 0d1307818..f2aab638c 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponse.java @@ -339,7 +339,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, responseId_); } if (queryResult_ != null) { @@ -360,7 +360,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, responseId_); } if (queryResult_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java index 8e02f87a0..9abbf38c4 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java @@ -467,7 +467,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParameterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameter_); } if (value_ != null) { @@ -482,7 +482,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParameterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parameter_); } if (value_ != null) { @@ -3026,7 +3026,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, condition_); } for (int i = 0; i < caseContent_.size(); i++) { @@ -3041,7 +3041,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, condition_); } for (int i = 0; i < caseContent_.size(); i++) { @@ -5309,10 +5309,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } - if (!getWebhookBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhook_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, webhook_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tag_); } for (int i = 0; i < setParameterActions_.size(); i++) { @@ -5336,10 +5336,10 @@ public int getSerializedSize() { for (int i = 0; i < messages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); } - if (!getWebhookBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhook_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, webhook_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tag_); } for (int i = 0; i < setParameterActions_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java index 73599b496..53d86d7e5 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java index 2d5c8978e..55515bcc9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java @@ -240,10 +240,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -255,10 +255,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java similarity index 63% rename from proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java rename to proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java index 6b7c7e0a1..f00cfb3ed 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java @@ -14,37 +14,37 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto +// source: google/cloud/dialogflow/cx/v3/changelog.proto -package com.google.cloud.location; +package com.google.cloud.dialogflow.cx.v3; /** * * *
- * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
+ * The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
  * 
* - * Protobuf type {@code google.cloud.location.GetLocationRequest} + * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetChangelogRequest} */ -public final class GetLocationRequest extends com.google.protobuf.GeneratedMessageV3 +public final class GetChangelogRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.location.GetLocationRequest) - GetLocationRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.GetChangelogRequest) + GetChangelogRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use GetLocationRequest.newBuilder() to construct. - private GetLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetChangelogRequest.newBuilder() to construct. + private GetChangelogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetLocationRequest() { + private GetChangelogRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetLocationRequest(); + return new GetChangelogRequest(); } @java.lang.Override @@ -52,7 +52,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetLocationRequest( + private GetChangelogRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -97,18 +97,18 @@ private GetLocationRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_GetChangelogRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_GetChangelogRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, - com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest.class, + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -117,10 +117,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name for the location.
+   * Required. The name of the changelog to get.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -140,10 +144,14 @@ public java.lang.String getName() { * * *
-   * Resource name for the location.
+   * Required. The name of the changelog to get.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -174,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -186,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); @@ -199,11 +207,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.location.GetLocationRequest)) { + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.GetChangelogRequest)) { return super.equals(obj); } - com.google.cloud.location.GetLocationRequest other = - (com.google.cloud.location.GetLocationRequest) obj; + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest other = + (com.google.cloud.dialogflow.cx.v3.GetChangelogRequest) obj; if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -224,71 +232,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.GetLocationRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.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.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.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.location.GetLocationRequest parseFrom(byte[] data) + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.location.GetLocationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom( + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom( + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -305,7 +313,8 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.location.GetLocationRequest prototype) { + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -323,31 +332,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
+   * The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
    * 
* - * Protobuf type {@code google.cloud.location.GetLocationRequest} + * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetChangelogRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.GetLocationRequest) - com.google.cloud.location.GetLocationRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.GetChangelogRequest) + com.google.cloud.dialogflow.cx.v3.GetChangelogRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_GetChangelogRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_GetChangelogRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, - com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest.class, + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest.Builder.class); } - // Construct using com.google.cloud.location.GetLocationRequest.newBuilder() + // Construct using com.google.cloud.dialogflow.cx.v3.GetChangelogRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -371,18 +380,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_GetChangelogRequest_descriptor; } @java.lang.Override - public com.google.cloud.location.GetLocationRequest getDefaultInstanceForType() { - return com.google.cloud.location.GetLocationRequest.getDefaultInstance(); + public com.google.cloud.dialogflow.cx.v3.GetChangelogRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.GetChangelogRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.location.GetLocationRequest build() { - com.google.cloud.location.GetLocationRequest result = buildPartial(); + public com.google.cloud.dialogflow.cx.v3.GetChangelogRequest build() { + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -390,9 +399,9 @@ public com.google.cloud.location.GetLocationRequest build() { } @java.lang.Override - public com.google.cloud.location.GetLocationRequest buildPartial() { - com.google.cloud.location.GetLocationRequest result = - new com.google.cloud.location.GetLocationRequest(this); + public com.google.cloud.dialogflow.cx.v3.GetChangelogRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest result = + new com.google.cloud.dialogflow.cx.v3.GetChangelogRequest(this); result.name_ = name_; onBuilt(); return result; @@ -433,16 +442,17 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.GetLocationRequest) { - return mergeFrom((com.google.cloud.location.GetLocationRequest) other); + if (other instanceof com.google.cloud.dialogflow.cx.v3.GetChangelogRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.GetChangelogRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.location.GetLocationRequest other) { - if (other == com.google.cloud.location.GetLocationRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetChangelogRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3.GetChangelogRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -462,11 +472,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.location.GetLocationRequest parsedMessage = null; + com.google.cloud.dialogflow.cx.v3.GetChangelogRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.GetLocationRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.GetChangelogRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -481,10 +492,14 @@ public Builder mergeFrom( * * *
-     * Resource name for the location.
+     * Required. The name of the changelog to get.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -503,10 +518,14 @@ public java.lang.String getName() { * * *
-     * Resource name for the location.
+     * Required. The name of the changelog to get.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -525,10 +544,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name for the location.
+     * Required. The name of the changelog to get.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -546,10 +569,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name for the location.
+     * Required. The name of the changelog to get.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -563,10 +590,14 @@ public Builder clearName() { * * *
-     * Resource name for the location.
+     * Required. The name of the changelog to get.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
      * 
* - * string name = 1; + * + * 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. @@ -593,42 +624,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.location.GetLocationRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.GetChangelogRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.location.GetLocationRequest) - private static final com.google.cloud.location.GetLocationRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.GetChangelogRequest) + private static final com.google.cloud.dialogflow.cx.v3.GetChangelogRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.location.GetLocationRequest(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.GetChangelogRequest(); } - public static com.google.cloud.location.GetLocationRequest getDefaultInstance() { + public static com.google.cloud.dialogflow.cx.v3.GetChangelogRequest 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 GetLocationRequest parsePartialFrom( + public GetChangelogRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLocationRequest(input, extensionRegistry); + return new GetChangelogRequest(input, extensionRegistry); } }; - 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.location.GetLocationRequest getDefaultInstanceForType() { + public com.google.cloud.dialogflow.cx.v3.GetChangelogRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java rename to proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequestOrBuilder.java index a8f3d0f9b..19cae4d4a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequestOrBuilder.java @@ -14,23 +14,27 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto +// source: google/cloud/dialogflow/cx/v3/changelog.proto -package com.google.cloud.location; +package com.google.cloud.dialogflow.cx.v3; -public interface GetLocationRequestOrBuilder +public interface GetChangelogRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.GetChangelogRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Resource name for the location.
+   * Required. The name of the changelog to get.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -39,10 +43,14 @@ public interface GetLocationRequestOrBuilder * * *
-   * Resource name for the location.
+   * Required. The name of the changelog to get.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java new file mode 100644 index 000000000..042b5c697 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/deployment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetDeploymentRequest} + */ +public final class GetDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.GetDeploymentRequest) + GetDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDeploymentRequest.newBuilder() to construct. + private GetDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDeploymentRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetDeploymentRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_GetDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest.class, + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment 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. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest other = + (com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.GetDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.GetDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.GetDeploymentRequest) + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_GetDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest.class, + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest build() { + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest result = + new com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.GetDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.GetDeploymentRequest) + private static final com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3.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 { + return new GetDeploymentRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java new file mode 100644 index 000000000..ad803532d --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/deployment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface GetDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.GetDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
+   * 
+ * + * + * 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][google.cloud.dialogflow.cx.v3.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment 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/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java index e768a380e..e8b8fea43 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java @@ -257,10 +257,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -272,10 +272,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java index 330c113b5..15aa46afa 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java index 5a7f0cdee..9836dd7df 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java index ad80d610e..147426e54 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java @@ -259,10 +259,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -274,10 +274,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java index e8de9778c..0f4f16ce0 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java @@ -240,10 +240,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -255,10 +255,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java index 1fa8efdb9..397fb5bad 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java @@ -253,10 +253,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -268,10 +268,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java index b3452cf13..535177ee9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java @@ -275,10 +275,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -290,10 +290,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java index f02d38637..6e774959a 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java index 11d2a13bb..3317d5cd7 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java @@ -190,7 +190,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -202,7 +202,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java index a51d9b0fc..bb926a04b 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java index 9dc6d8e98..b5d94ba7c 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java index 3661dd68c..8229a37de 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java @@ -258,10 +258,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -273,10 +273,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java index 1d0d0551e..96916ad69 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java index 0ab8824fd..69db399b7 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java index 558acaedb..8dbc8b727 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java @@ -564,7 +564,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (flowCase_ == 2) { @@ -588,7 +588,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (flowCase_ == 2) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java index e7da1fea1..f69064b08 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java @@ -178,7 +178,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flow_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, flow_); } unknownFields.writeTo(output); @@ -190,7 +190,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flow_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, flow_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java index 144176f94..c3d9c09d1 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java @@ -351,7 +351,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (sourceCase_ == 2) { @@ -369,7 +369,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sourceCase_ == 2) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java index d14d96c33..1ee74bcf0 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java @@ -473,7 +473,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < phraseHints_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phraseHints_.getRaw(i)); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, model_); } if (singleUtterance_ != false) { @@ -511,7 +511,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPhraseHintsList().size(); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, model_); } if (singleUtterance_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java index dbe9da6ed..e7e23aea0 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java @@ -760,10 +760,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTextBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); } - if (!getParameterIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterId_); } unknownFields.writeTo(output); @@ -775,10 +775,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTextBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); } - if (!getParameterIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterId_); } size += unknownFields.getSerializedSize(); @@ -1589,7 +1589,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } for (int i = 0; i < parts_.size(); i++) { @@ -1607,7 +1607,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } for (int i = 0; i < parts_.size(); i++) { @@ -3185,10 +3185,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - if (!getEntityTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entityType_); } if (isList_ != false) { @@ -3206,10 +3206,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - if (!getEntityTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entityType_); } if (isList_ != false) { @@ -4474,10 +4474,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } for (int i = 0; i < trainingPhrases_.size(); i++) { @@ -4494,7 +4494,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); } unknownFields.writeTo(output); @@ -4506,10 +4506,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < trainingPhrases_.size(); i++) { @@ -4534,7 +4534,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java index 48b982093..4906ca8bc 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java @@ -352,7 +352,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intent_); } if (covered_ != false) { @@ -367,7 +367,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, intent_); } if (covered_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java index bb8740c89..119539c35 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java @@ -183,7 +183,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intent_); } unknownFields.writeTo(output); @@ -195,7 +195,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, intent_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java index 5930e05b2..315d2d44e 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java @@ -261,13 +261,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -279,13 +279,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java index e365ae2fd..59c5246f9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < agents_.size(); i++) { output.writeMessage(1, agents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < agents_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java new file mode 100644 index 000000000..e585f9279 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java @@ -0,0 +1,1243 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/changelog.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsRequest} + */ +public final class ListChangelogsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ListChangelogsRequest) + ListChangelogsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListChangelogsRequest.newBuilder() to construct. + private ListChangelogsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListChangelogsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListChangelogsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListChangelogsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest.class, + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The agent containing the changelogs.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 agent containing the changelogs.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * The filter string. Supports filter by user_email, resource, type and
+   * create_time. Some examples:
+   *   1. By user email:
+   *        user_email = "someone@google.com"
+   *   2. By resource name:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *   3. By resource display name:
+   *        display_name = "my agent"
+   *   4. By action:
+   *        action = "Create"
+   *   5. By type:
+   *        type = "flows"
+   *   6. By create time. Currently predicates on `create_time` and
+   *      `create_time_epoch_seconds` are supported:
+   *        create_time_epoch_seconds > 1551790877 AND create_time <=
+   *        2017-01-15T01:30:15.01Z
+   *   7. Combination of above filters:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *          AND user_email = "someone@google.com"
+   *          AND create_time <= 2017-01-15T01:30:15.01Z
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * The filter string. Supports filter by user_email, resource, type and
+   * create_time. Some examples:
+   *   1. By user email:
+   *        user_email = "someone@google.com"
+   *   2. By resource name:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *   3. By resource display name:
+   *        display_name = "my agent"
+   *   4. By action:
+   *        action = "Create"
+   *   5. By type:
+   *        type = "flows"
+   *   6. By create time. Currently predicates on `create_time` and
+   *      `create_time_epoch_seconds` are supported:
+   *        create_time_epoch_seconds > 1551790877 AND create_time <=
+   *        2017-01-15T01:30:15.01Z
+   *   7. Combination of above filters:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *          AND user_email = "someone@google.com"
+   *          AND create_time <= 2017-01-15T01:30:15.01Z
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * The maximum number of items to return in a single page. By default 100 and
+   * at most 1000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest other = + (com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.ListChangelogsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.ListChangelogsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ListChangelogsRequest) + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest.class, + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest build() { + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest result = + new com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The agent containing the changelogs.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 agent containing the changelogs.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 agent containing the changelogs.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The agent containing the changelogs.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The agent containing the changelogs.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * The filter string. Supports filter by user_email, resource, type and
+     * create_time. Some examples:
+     *   1. By user email:
+     *        user_email = "someone@google.com"
+     *   2. By resource name:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *   3. By resource display name:
+     *        display_name = "my agent"
+     *   4. By action:
+     *        action = "Create"
+     *   5. By type:
+     *        type = "flows"
+     *   6. By create time. Currently predicates on `create_time` and
+     *      `create_time_epoch_seconds` are supported:
+     *        create_time_epoch_seconds > 1551790877 AND create_time <=
+     *        2017-01-15T01:30:15.01Z
+     *   7. Combination of above filters:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *          AND user_email = "someone@google.com"
+     *          AND create_time <= 2017-01-15T01:30:15.01Z
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The filter string. Supports filter by user_email, resource, type and
+     * create_time. Some examples:
+     *   1. By user email:
+     *        user_email = "someone@google.com"
+     *   2. By resource name:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *   3. By resource display name:
+     *        display_name = "my agent"
+     *   4. By action:
+     *        action = "Create"
+     *   5. By type:
+     *        type = "flows"
+     *   6. By create time. Currently predicates on `create_time` and
+     *      `create_time_epoch_seconds` are supported:
+     *        create_time_epoch_seconds > 1551790877 AND create_time <=
+     *        2017-01-15T01:30:15.01Z
+     *   7. Combination of above filters:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *          AND user_email = "someone@google.com"
+     *          AND create_time <= 2017-01-15T01:30:15.01Z
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The filter string. Supports filter by user_email, resource, type and
+     * create_time. Some examples:
+     *   1. By user email:
+     *        user_email = "someone@google.com"
+     *   2. By resource name:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *   3. By resource display name:
+     *        display_name = "my agent"
+     *   4. By action:
+     *        action = "Create"
+     *   5. By type:
+     *        type = "flows"
+     *   6. By create time. Currently predicates on `create_time` and
+     *      `create_time_epoch_seconds` are supported:
+     *        create_time_epoch_seconds > 1551790877 AND create_time <=
+     *        2017-01-15T01:30:15.01Z
+     *   7. Combination of above filters:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *          AND user_email = "someone@google.com"
+     *          AND create_time <= 2017-01-15T01:30:15.01Z
+     * 
+ * + * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The filter string. Supports filter by user_email, resource, type and
+     * create_time. Some examples:
+     *   1. By user email:
+     *        user_email = "someone@google.com"
+     *   2. By resource name:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *   3. By resource display name:
+     *        display_name = "my agent"
+     *   4. By action:
+     *        action = "Create"
+     *   5. By type:
+     *        type = "flows"
+     *   6. By create time. Currently predicates on `create_time` and
+     *      `create_time_epoch_seconds` are supported:
+     *        create_time_epoch_seconds > 1551790877 AND create_time <=
+     *        2017-01-15T01:30:15.01Z
+     *   7. Combination of above filters:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *          AND user_email = "someone@google.com"
+     *          AND create_time <= 2017-01-15T01:30:15.01Z
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * The filter string. Supports filter by user_email, resource, type and
+     * create_time. Some examples:
+     *   1. By user email:
+     *        user_email = "someone@google.com"
+     *   2. By resource name:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *   3. By resource display name:
+     *        display_name = "my agent"
+     *   4. By action:
+     *        action = "Create"
+     *   5. By type:
+     *        type = "flows"
+     *   6. By create time. Currently predicates on `create_time` and
+     *      `create_time_epoch_seconds` are supported:
+     *        create_time_epoch_seconds > 1551790877 AND create_time <=
+     *        2017-01-15T01:30:15.01Z
+     *   7. Combination of above filters:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *          AND user_email = "someone@google.com"
+     *          AND create_time <= 2017-01-15T01:30:15.01Z
+     * 
+ * + * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of items to return in a single page. By default 100 and
+     * at most 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of items to return in a single page. By default 100 and
+     * at most 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of items to return in a single page. By default 100 and
+     * at most 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 4; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 4; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.ListChangelogsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ListChangelogsRequest) + private static final com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3.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 { + return new ListChangelogsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequestOrBuilder.java new file mode 100644 index 000000000..d77d0524e --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequestOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/changelog.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface ListChangelogsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.ListChangelogsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The agent containing the changelogs.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The agent containing the changelogs.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The filter string. Supports filter by user_email, resource, type and
+   * create_time. Some examples:
+   *   1. By user email:
+   *        user_email = "someone@google.com"
+   *   2. By resource name:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *   3. By resource display name:
+   *        display_name = "my agent"
+   *   4. By action:
+   *        action = "Create"
+   *   5. By type:
+   *        type = "flows"
+   *   6. By create time. Currently predicates on `create_time` and
+   *      `create_time_epoch_seconds` are supported:
+   *        create_time_epoch_seconds > 1551790877 AND create_time <=
+   *        2017-01-15T01:30:15.01Z
+   *   7. Combination of above filters:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *          AND user_email = "someone@google.com"
+   *          AND create_time <= 2017-01-15T01:30:15.01Z
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * The filter string. Supports filter by user_email, resource, type and
+   * create_time. Some examples:
+   *   1. By user email:
+   *        user_email = "someone@google.com"
+   *   2. By resource name:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *   3. By resource display name:
+   *        display_name = "my agent"
+   *   4. By action:
+   *        action = "Create"
+   *   5. By type:
+   *        type = "flows"
+   *   6. By create time. Currently predicates on `create_time` and
+   *      `create_time_epoch_seconds` are supported:
+   *        create_time_epoch_seconds > 1551790877 AND create_time <=
+   *        2017-01-15T01:30:15.01Z
+   *   7. Combination of above filters:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *          AND user_email = "someone@google.com"
+   *          AND create_time <= 2017-01-15T01:30:15.01Z
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of items to return in a single page. By default 100 and
+   * at most 1000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java new file mode 100644 index 000000000..8abf9ade9 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java @@ -0,0 +1,1185 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/changelog.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsResponse} + */ +public final class ListChangelogsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ListChangelogsResponse) + ListChangelogsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListChangelogsResponse.newBuilder() to construct. + private ListChangelogsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListChangelogsResponse() { + changelogs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListChangelogsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListChangelogsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + changelogs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + changelogs_.add( + input.readMessage( + com.google.cloud.dialogflow.cx.v3.Changelog.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + changelogs_ = java.util.Collections.unmodifiableList(changelogs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse.class, + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse.Builder.class); + } + + public static final int CHANGELOGS_FIELD_NUMBER = 1; + private java.util.List changelogs_; + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + @java.lang.Override + public java.util.List getChangelogsList() { + return changelogs_; + } + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + @java.lang.Override + public java.util.List + getChangelogsOrBuilderList() { + return changelogs_; + } + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + @java.lang.Override + public int getChangelogsCount() { + return changelogs_.size(); + } + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Changelog getChangelogs(int index) { + return changelogs_.get(index); + } + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ChangelogOrBuilder getChangelogsOrBuilder(int index) { + return changelogs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < changelogs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, changelogs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse other = + (com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse) obj; + + if (!getChangelogsList().equals(other.getChangelogsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.ListChangelogsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.ListChangelogsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ListChangelogsResponse) + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse.class, + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChangelogsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (changelogsBuilder_ == null) { + changelogs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + changelogsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3_ListChangelogsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse build() { + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse buildPartial() { + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse result = + new com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse(this); + int from_bitField0_ = bitField0_; + if (changelogsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changelogs_ = java.util.Collections.unmodifiableList(changelogs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changelogs_ = changelogs_; + } else { + result.changelogs_ = changelogsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse other) { + if (other == com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangelogsFieldBuilder() + : null; + } else { + changelogsBuilder_.addAllMessages(other.changelogs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Changelog, + com.google.cloud.dialogflow.cx.v3.Changelog.Builder, + com.google.cloud.dialogflow.cx.v3.ChangelogOrBuilder> + changelogsBuilder_; + + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public int getChangelogsCount() { + if (changelogsBuilder_ == null) { + return changelogs_.size(); + } else { + return changelogsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public com.google.cloud.dialogflow.cx.v3.Changelog getChangelogs(int index) { + if (changelogsBuilder_ == null) { + return changelogs_.get(index); + } else { + return changelogsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public Builder setChangelogs(int index, com.google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public Builder setChangelogs( + int index, com.google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public Builder addChangelogs(com.google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public Builder addChangelogs(int index, com.google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public Builder addChangelogs( + com.google.cloud.dialogflow.cx.v3.Changelog.Builder builderForValue) { + if (changelogsBuilder_ == null) { + ensureChangelogsIsMutable(); + changelogs_.add(builderForValue.build()); + onChanged(); + } else { + changelogsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public Builder addChangelogs( + int index, com.google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public com.google.cloud.dialogflow.cx.v3.Changelog.Builder getChangelogsBuilder(int index) { + return getChangelogsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public com.google.cloud.dialogflow.cx.v3.ChangelogOrBuilder getChangelogsOrBuilder(int index) { + if (changelogsBuilder_ == null) { + return changelogs_.get(index); + } else { + return changelogsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public com.google.cloud.dialogflow.cx.v3.Changelog.Builder addChangelogsBuilder() { + return getChangelogsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3.Changelog.getDefaultInstance()); + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public com.google.cloud.dialogflow.cx.v3.Changelog.Builder addChangelogsBuilder(int index) { + return getChangelogsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3.Changelog.getDefaultInstance()); + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + public java.util.List + getChangelogsBuilderList() { + return getChangelogsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Changelog, + com.google.cloud.dialogflow.cx.v3.Changelog.Builder, + com.google.cloud.dialogflow.cx.v3.ChangelogOrBuilder> + getChangelogsFieldBuilder() { + if (changelogsBuilder_ == null) { + changelogsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Changelog, + com.google.cloud.dialogflow.cx.v3.Changelog.Builder, + com.google.cloud.dialogflow.cx.v3.ChangelogOrBuilder>( + changelogs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + changelogs_ = null; + } + return changelogsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.ListChangelogsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ListChangelogsResponse) + private static final com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse(); + } + + public static com.google.cloud.dialogflow.cx.v3.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 { + return new ListChangelogsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponseOrBuilder.java new file mode 100644 index 000000000..d4ea06a6e --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/changelog.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface ListChangelogsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.ListChangelogsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + java.util.List getChangelogsList(); + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + com.google.cloud.dialogflow.cx.v3.Changelog getChangelogs(int index); + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + int getChangelogsCount(); + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + java.util.List + getChangelogsOrBuilderList(); + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Changelog changelogs = 1; + */ + com.google.cloud.dialogflow.cx.v3.ChangelogOrBuilder getChangelogsOrBuilder(int index); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java index 2eddaa28f..fef08716e 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java @@ -264,13 +264,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -282,13 +282,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java index 7e1d06d96..4c64bed9e 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java @@ -277,7 +277,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < continuousTestResults_.size(); i++) { output.writeMessage(1, continuousTestResults_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -294,7 +294,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, continuousTestResults_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java similarity index 58% rename from proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java rename to proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java index e1b3af7f9..f0670c8a9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java @@ -14,39 +14,38 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto +// source: google/cloud/dialogflow/cx/v3/deployment.proto -package com.google.cloud.location; +package com.google.cloud.dialogflow.cx.v3; /** * * *
- * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
+ * The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
  * 
* - * Protobuf type {@code google.cloud.location.ListLocationsRequest} + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} */ -public final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3 +public final class ListDeploymentsRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsRequest) - ListLocationsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) + ListDeploymentsRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ListLocationsRequest.newBuilder() to construct. - private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ListDeploymentsRequest.newBuilder() to construct. + private ListDeploymentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLocationsRequest() { - name_ = ""; - filter_ = ""; + private ListDeploymentsRequest() { + parent_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListLocationsRequest(); + return new ListDeploymentsRequest(); } @java.lang.Override @@ -54,7 +53,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListLocationsRequest( + private ListDeploymentsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -76,22 +75,15 @@ private ListLocationsRequest( { java.lang.String s = input.readStringRequireUtf8(); - name_ = s; + parent_ = s; break; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: + case 16: { pageSize_ = input.readInt32(); break; } - case 34: + case 26: { java.lang.String s = input.readStringRequireUtf8(); @@ -118,91 +110,46 @@ private ListLocationsRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, - com.google.cloud.location.ListLocationsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.class, + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.Builder.class); } - public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; /** * * *
-   * The standard list filter.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
    * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The filter. + * @return The parent. */ @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; + 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(); - filter_ = s; + parent_ = s; return s; } } @@ -210,36 +157,41 @@ public java.lang.String getFilter() { * * *
-   * The standard list filter.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
    * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for filter. + * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; + 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); - filter_ = b; + parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PAGE_SIZE_FIELD_NUMBER = 3; + public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** * * *
-   * The standard list page size.
+   * The maximum number of items to return in a single page. By default 20 and
+   * at most 100.
    * 
* - * int32 page_size = 3; + * int32 page_size = 2; * * @return The pageSize. */ @@ -248,16 +200,16 @@ public int getPageSize() { return pageSize_; } - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** * * *
-   * The standard list page token.
+   * The next_page_token value returned from a previous list request.
    * 
* - * string page_token = 4; + * string page_token = 3; * * @return The pageToken. */ @@ -277,10 +229,10 @@ public java.lang.String getPageToken() { * * *
-   * The standard list page token.
+   * The next_page_token value returned from a previous list request.
    * 
* - * string page_token = 4; + * string page_token = 3; * * @return The bytes for pageToken. */ @@ -311,17 +263,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); + output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); } @@ -332,17 +281,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -354,14 +300,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.location.ListLocationsRequest)) { + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest)) { return super.equals(obj); } - com.google.cloud.location.ListLocationsRequest other = - (com.google.cloud.location.ListLocationsRequest) obj; + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest other = + (com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -375,10 +320,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + 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; @@ -388,71 +331,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.ListLocationsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.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.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.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.location.ListLocationsRequest parseFrom(byte[] data) + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.location.ListLocationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom( + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom( + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -469,7 +412,8 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.location.ListLocationsRequest prototype) { + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -487,31 +431,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
+   * The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
    * 
* - * Protobuf type {@code google.cloud.location.ListLocationsRequest} + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.ListLocationsRequest) - com.google.cloud.location.ListLocationsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, - com.google.cloud.location.ListLocationsRequest.Builder.class); + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.class, + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.Builder.class); } - // Construct using com.google.cloud.location.ListLocationsRequest.newBuilder() + // Construct using com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -528,9 +472,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - name_ = ""; - - filter_ = ""; + parent_ = ""; pageSize_ = 0; @@ -541,18 +483,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsRequest_descriptor; } @java.lang.Override - public com.google.cloud.location.ListLocationsRequest getDefaultInstanceForType() { - return com.google.cloud.location.ListLocationsRequest.getDefaultInstance(); + public com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.location.ListLocationsRequest build() { - com.google.cloud.location.ListLocationsRequest result = buildPartial(); + public com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest build() { + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -560,11 +502,10 @@ public com.google.cloud.location.ListLocationsRequest build() { } @java.lang.Override - public com.google.cloud.location.ListLocationsRequest buildPartial() { - com.google.cloud.location.ListLocationsRequest result = - new com.google.cloud.location.ListLocationsRequest(this); - result.name_ = name_; - result.filter_ = filter_; + public com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest result = + new com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest(this); + result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); @@ -606,22 +547,19 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.ListLocationsRequest) { - return mergeFrom((com.google.cloud.location.ListLocationsRequest) other); + if (other instanceof com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.location.ListLocationsRequest other) { - if (other == com.google.cloud.location.ListLocationsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; onChanged(); } if (other.getPageSize() != 0) { @@ -646,11 +584,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.location.ListLocationsRequest parsedMessage = null; + com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.ListLocationsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -660,130 +599,28 @@ public Builder mergeFrom( return this; } - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; + private java.lang.Object parent_ = ""; /** * * *
-     * The standard list filter.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The filter. + * @return The parent. */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; + 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(); - filter_ = s; + parent_ = s; return s; } else { return (java.lang.String) ref; @@ -793,19 +630,23 @@ public java.lang.String getFilter() { * * *
-     * The standard list filter.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for filter. + * @return The bytes for parent. */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; + 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); - filter_ = b; + parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -815,20 +656,24 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * The standard list filter.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The filter to set. + * @param value The parent to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + parent_ = value; onChanged(); return this; } @@ -836,16 +681,20 @@ public Builder setFilter(java.lang.String value) { * * *
-     * The standard list filter.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ - public Builder clearFilter() { + public Builder clearParent() { - filter_ = getDefaultInstance().getFilter(); + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } @@ -853,21 +702,25 @@ public Builder clearFilter() { * * *
-     * The standard list filter.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The bytes for filter to set. + * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + parent_ = value; onChanged(); return this; } @@ -877,10 +730,11 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * The standard list page size.
+     * The maximum number of items to return in a single page. By default 20 and
+     * at most 100.
      * 
* - * int32 page_size = 3; + * int32 page_size = 2; * * @return The pageSize. */ @@ -892,10 +746,11 @@ public int getPageSize() { * * *
-     * The standard list page size.
+     * The maximum number of items to return in a single page. By default 20 and
+     * at most 100.
      * 
* - * int32 page_size = 3; + * int32 page_size = 2; * * @param value The pageSize to set. * @return This builder for chaining. @@ -910,10 +765,11 @@ public Builder setPageSize(int value) { * * *
-     * The standard list page size.
+     * The maximum number of items to return in a single page. By default 20 and
+     * at most 100.
      * 
* - * int32 page_size = 3; + * int32 page_size = 2; * * @return This builder for chaining. */ @@ -929,10 +785,10 @@ public Builder clearPageSize() { * * *
-     * The standard list page token.
+     * The next_page_token value returned from a previous list request.
      * 
* - * string page_token = 4; + * string page_token = 3; * * @return The pageToken. */ @@ -951,10 +807,10 @@ public java.lang.String getPageToken() { * * *
-     * The standard list page token.
+     * The next_page_token value returned from a previous list request.
      * 
* - * string page_token = 4; + * string page_token = 3; * * @return The bytes for pageToken. */ @@ -973,10 +829,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * The standard list page token.
+     * The next_page_token value returned from a previous list request.
      * 
* - * string page_token = 4; + * string page_token = 3; * * @param value The pageToken to set. * @return This builder for chaining. @@ -994,10 +850,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * The standard list page token.
+     * The next_page_token value returned from a previous list request.
      * 
* - * string page_token = 4; + * string page_token = 3; * * @return This builder for chaining. */ @@ -1011,10 +867,10 @@ public Builder clearPageToken() { * * *
-     * The standard list page token.
+     * The next_page_token value returned from a previous list request.
      * 
* - * string page_token = 4; + * string page_token = 3; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -1041,42 +897,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsRequest) - private static final com.google.cloud.location.ListLocationsRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) + private static final com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest(); } - public static com.google.cloud.location.ListLocationsRequest getDefaultInstance() { + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest 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 ListLocationsRequest parsePartialFrom( + public ListDeploymentsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsRequest(input, extensionRegistry); + return new ListDeploymentsRequest(input, extensionRegistry); } }; - 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.location.ListLocationsRequest getDefaultInstanceForType() { + public com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java new file mode 100644 index 000000000..7a416f1e5 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/deployment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface ListDeploymentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of items to return in a single page. By default 20 and
+   * at most 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java new file mode 100644 index 000000000..c415c7063 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java @@ -0,0 +1,1209 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/deployment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} + */ +public final class ListDeploymentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) + ListDeploymentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentsResponse.newBuilder() to construct. + private ListDeploymentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentsResponse() { + deployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDeploymentsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deployments_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deployments_.add( + input.readMessage( + com.google.cloud.dialogflow.cx.v3.Deployment.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.class, + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.Builder.class); + } + + public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + private java.util.List deployments_; + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List getDeploymentsList() { + return deployments_; + } + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List + getDeploymentsOrBuilderList() { + return deployments_; + } + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + @java.lang.Override + public int getDeploymentsCount() { + return deployments_.size(); + } + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Deployment getDeployments(int index) { + return deployments_.get(index); + } + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DeploymentOrBuilder getDeploymentsOrBuilder(int index) { + return deployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deployments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse other = + (com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) obj; + + if (!getDeploymentsList().equals(other.getDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.ListDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.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.dialogflow.cx.v3.ListDeploymentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.class, + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDeploymentsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + deploymentsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse build() { + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse buildPartial() { + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse result = + new com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse(this); + int from_bitField0_ = bitField0_; + if (deploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployments_ = deployments_; + } else { + result.deployments_ = deploymentsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse other) { + if (other == com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeploymentsFieldBuilder() + : null; + } else { + deploymentsBuilder_.addAllMessages(other.deployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Deployment, + com.google.cloud.dialogflow.cx.v3.Deployment.Builder, + com.google.cloud.dialogflow.cx.v3.DeploymentOrBuilder> + deploymentsBuilder_; + + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public int getDeploymentsCount() { + if (deploymentsBuilder_ == null) { + return deployments_.size(); + } else { + return deploymentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public com.google.cloud.dialogflow.cx.v3.Deployment getDeployments(int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public Builder setDeployments(int index, com.google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public Builder addDeployments(com.google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public Builder addDeployments(int index, com.google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public Builder addDeployments( + com.google.cloud.dialogflow.cx.v3.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public com.google.cloud.dialogflow.cx.v3.Deployment.Builder getDeploymentsBuilder(int index) { + return getDeploymentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public com.google.cloud.dialogflow.cx.v3.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public com.google.cloud.dialogflow.cx.v3.Deployment.Builder addDeploymentsBuilder() { + return getDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public com.google.cloud.dialogflow.cx.v3.Deployment.Builder addDeploymentsBuilder(int index) { + return getDeploymentsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsBuilderList() { + return getDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Deployment, + com.google.cloud.dialogflow.cx.v3.Deployment.Builder, + com.google.cloud.dialogflow.cx.v3.DeploymentOrBuilder> + getDeploymentsFieldBuilder() { + if (deploymentsBuilder_ == null) { + deploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Deployment, + com.google.cloud.dialogflow.cx.v3.Deployment.Builder, + com.google.cloud.dialogflow.cx.v3.DeploymentOrBuilder>( + deployments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + deployments_ = null; + } + return deploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) + private static final com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse(); + } + + public static com.google.cloud.dialogflow.cx.v3.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 { + return new ListDeploymentsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponseOrBuilder.java new file mode 100644 index 000000000..ba313c264 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponseOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/deployment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface ListDeploymentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + java.util.List getDeploymentsList(); + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + com.google.cloud.dialogflow.cx.v3.Deployment getDeployments(int index); + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + int getDeploymentsCount(); + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + java.util.List + getDeploymentsOrBuilderList(); + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Deployment deployments = 1; + */ + com.google.cloud.dialogflow.cx.v3.DeploymentOrBuilder getDeploymentsOrBuilder(int index); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java index 6a6124ec1..6afa84f4d 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java @@ -336,16 +336,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } unknownFields.writeTo(output); @@ -357,16 +357,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java index b1fa24b9a..54ebd1f88 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java @@ -270,7 +270,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < entityTypes_.size(); i++) { output.writeMessage(1, entityTypes_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -285,7 +285,7 @@ public int getSerializedSize() { for (int i = 0; i < entityTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entityTypes_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java index a24922b75..cc8a5d9ce 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java @@ -261,13 +261,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -279,13 +279,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java index 9db771de4..9a25fe39e 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java @@ -281,7 +281,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < environments_.size(); i++) { output.writeMessage(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -296,7 +296,7 @@ public int getSerializedSize() { for (int i = 0; i < environments_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java index ab70e7930..2fe2d4233 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java @@ -263,13 +263,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -281,13 +281,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java index a9458ea36..5b70ee929 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java @@ -280,7 +280,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < experiments_.size(); i++) { output.writeMessage(1, experiments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -295,7 +295,7 @@ public int getSerializedSize() { for (int i = 0; i < experiments_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, experiments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java index 17915833e..5fec373f9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java @@ -338,16 +338,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); } unknownFields.writeTo(output); @@ -359,16 +359,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java index e43aea817..e5ee473c7 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < flows_.size(); i++) { output.writeMessage(1, flows_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < flows_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, flows_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java index 8dec15353..033c779f4 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java @@ -376,16 +376,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } if (intentView_ @@ -401,16 +401,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (intentView_ diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java index 9aca072a9..e685af2bd 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < intents_.size(); i++) { output.writeMessage(1, intents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < intents_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, intents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java index 423d1c1d7..f297edaa4 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java @@ -356,16 +356,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } unknownFields.writeTo(output); @@ -377,16 +377,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java index 04ec4afb2..e9b237795 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < pages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java index f75d12a16..f3247927e 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java @@ -261,13 +261,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -279,13 +279,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java index 60f1bd116..a2b33dfc9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java @@ -268,7 +268,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < securitySettings_.size(); i++) { output.writeMessage(1, securitySettings_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -283,7 +283,7 @@ public int getSerializedSize() { for (int i = 0; i < securitySettings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, securitySettings_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java index fbe269994..9efbbaaf3 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java @@ -269,13 +269,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -287,13 +287,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java index 4df500265..4d6020aa9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java @@ -279,7 +279,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < sessionEntityTypes_.size(); i++) { output.writeMessage(1, sessionEntityTypes_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -295,7 +295,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sessionEntityTypes_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java index 84ae32915..92fa539b0 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java @@ -358,16 +358,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } unknownFields.writeTo(output); @@ -379,16 +379,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java index f71b0f77e..eec429edb 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java @@ -267,7 +267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < testCaseResults_.size(); i++) { output.writeMessage(1, testCaseResults_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -282,7 +282,7 @@ public int getSerializedSize() { for (int i = 0; i < testCaseResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, testCaseResults_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java index 0a189516b..09121b035 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java @@ -471,13 +471,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } if (view_ @@ -495,13 +495,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (view_ diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java index 05419f453..cb237b2a0 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < testCases_.size(); i++) { output.writeMessage(1, testCases_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < testCases_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, testCases_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java index f9a2add7c..0cbe030b1 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java @@ -339,16 +339,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); } unknownFields.writeTo(output); @@ -360,16 +360,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java index 674a4f3de..56a7ded4f 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java @@ -292,7 +292,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < transitionRouteGroups_.size(); i++) { output.writeMessage(1, transitionRouteGroups_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -309,7 +309,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, transitionRouteGroups_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java index 2838f831e..91e167da0 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java @@ -263,13 +263,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -281,13 +281,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java index 0097b471d..7473a28f0 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java @@ -274,7 +274,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < versions_.size(); i++) { output.writeMessage(1, versions_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -289,7 +289,7 @@ public int getSerializedSize() { for (int i = 0; i < versions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, versions_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java index f0e0883bf..5a652f5b2 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java @@ -261,13 +261,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -279,13 +279,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java index 6c2649c62..93e0ca144 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < webhooks_.size(); i++) { output.writeMessage(1, webhooks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < webhooks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webhooks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java index 26957072a..dbcd05881 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java @@ -208,7 +208,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (allowOverrideAgentResources_ != false) { @@ -223,7 +223,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (allowOverrideAgentResources_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java index 169cb0042..03b4705d6 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java @@ -264,13 +264,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -282,13 +282,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java index baadb5b7b..67a0d0b46 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java @@ -272,7 +272,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < environments_.size(); i++) { output.writeMessage(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -287,7 +287,7 @@ public int getSerializedSize() { for (int i = 0; i < environments_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java index cede0d489..41430e1e3 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java @@ -730,7 +730,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (parameters_ != null) { output.writeMessage(2, getParameters()); } - if (!getResolvedInputBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolvedInput_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resolvedInput_); } if (matchType_ @@ -740,7 +740,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (confidence_ != 0F) { output.writeFloat(5, confidence_); } - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, event_); } unknownFields.writeTo(output); @@ -758,7 +758,7 @@ public int getSerializedSize() { if (parameters_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getParameters()); } - if (!getResolvedInputBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolvedInput_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resolvedInput_); } if (matchType_ @@ -768,7 +768,7 @@ public int getSerializedSize() { if (confidence_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, event_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java index a7d018ba8..bc2e23f36 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java @@ -333,7 +333,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSessionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } if (queryParams_ != null) { @@ -351,7 +351,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSessionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); } if (queryParams_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java index 3f2541657..ac91fe1c4 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java @@ -751,10 +751,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (form_ != null) { @@ -782,10 +782,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (form_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java index 390c5bc8b..38c899111 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java @@ -39,6 +39,7 @@ private PageInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { private PageInfo() { currentPage_ = ""; + displayName_ = ""; } @java.lang.Override @@ -92,6 +93,13 @@ private PageInfo( formInfo_ = subBuilder.buildPartial(); } + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; break; } default: @@ -988,7 +996,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } if (required_ != false) { @@ -1015,7 +1023,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (required_ != false) { @@ -3021,6 +3029,57 @@ public com.google.protobuf.ByteString getCurrentPageBytes() { } } + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The display name of the current page.
+   * 
+ * + * string display_name = 4; + * + * @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; + } + } + /** + * + * + *
+   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The display name of the current page.
+   * 
+ * + * string display_name = 4; + * + * @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 FORM_INFO_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo formInfo_; /** @@ -3086,12 +3145,15 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getCurrentPageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentPage_); } if (formInfo_ != null) { output.writeMessage(3, getFormInfo()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); + } unknownFields.writeTo(output); } @@ -3101,12 +3163,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getCurrentPageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentPage_); } if (formInfo_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFormInfo()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3124,6 +3189,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dialogflow.cx.v3.PageInfo) obj; if (!getCurrentPage().equals(other.getCurrentPage())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasFormInfo() != other.hasFormInfo()) return false; if (hasFormInfo()) { if (!getFormInfo().equals(other.getFormInfo())) return false; @@ -3141,6 +3207,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CURRENT_PAGE_FIELD_NUMBER; hash = (53 * hash) + getCurrentPage().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); if (hasFormInfo()) { hash = (37 * hash) + FORM_INFO_FIELD_NUMBER; hash = (53 * hash) + getFormInfo().hashCode(); @@ -3292,6 +3360,8 @@ public Builder clear() { super.clear(); currentPage_ = ""; + displayName_ = ""; + if (formInfoBuilder_ == null) { formInfo_ = null; } else { @@ -3326,6 +3396,7 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo buildPartial() { com.google.cloud.dialogflow.cx.v3.PageInfo result = new com.google.cloud.dialogflow.cx.v3.PageInfo(this); result.currentPage_ = currentPage_; + result.displayName_ = displayName_; if (formInfoBuilder_ == null) { result.formInfo_ = formInfo_; } else { @@ -3384,6 +3455,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.PageInfo other) { currentPage_ = other.currentPage_; onChanged(); } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } if (other.hasFormInfo()) { mergeFormInfo(other.getFormInfo()); } @@ -3537,6 +3612,117 @@ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The display name of the current page.
+     * 
+ * + * string display_name = 4; + * + * @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; + } + } + /** + * + * + *
+     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The display name of the current page.
+     * 
+ * + * string display_name = 4; + * + * @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; + } + } + /** + * + * + *
+     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The display name of the current page.
+     * 
+ * + * string display_name = 4; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The display name of the current page.
+     * 
+ * + * string display_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The display name of the current page.
+     * 
+ * + * string display_name = 4; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + private com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo formInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo, diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java index ffd1c2e6a..8099256fe 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java @@ -54,6 +54,33 @@ public interface PageInfoOrBuilder */ com.google.protobuf.ByteString getCurrentPageBytes(); + /** + * + * + *
+   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The display name of the current page.
+   * 
+ * + * string display_name = 4; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The display name of the current page.
+   * 
+ * + * string display_name = 4; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + /** * * diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java index e37027b53..6e43d8440 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java @@ -581,7 +581,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputCase_ == 3) { output.writeMessage(3, (com.google.cloud.dialogflow.cx.v3.IntentInput) input_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); } if (inputCase_ == 5) { @@ -612,7 +612,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.dialogflow.cx.v3.IntentInput) input_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); } if (inputCase_ == 5) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java index b627f50eb..858ef28cf 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java @@ -935,7 +935,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, timeZone_); } if (geoLocation_ != null) { @@ -950,7 +950,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (parameters_ != null) { output.writeMessage(5, getParameters()); } - if (!getCurrentPageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, currentPage_); } if (disableWebhook_ != false) { @@ -973,7 +973,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, timeZone_); } if (geoLocation_ != null) { @@ -989,7 +989,7 @@ public int getSerializedSize() { if (parameters_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getParameters()); } - if (!getCurrentPageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, currentPage_); } if (disableWebhook_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java index 674551c91..98c58819a 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java @@ -240,6 +240,22 @@ private QueryResult( sentimentAnalysisResult_ = subBuilder.buildPartial(); } + break; + } + case 186: + { + com.google.cloud.dialogflow.cx.v3.DtmfInput.Builder subBuilder = null; + if (queryCase_ == 23) { + subBuilder = ((com.google.cloud.dialogflow.cx.v3.DtmfInput) query_).toBuilder(); + } + query_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.DtmfInput.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.cx.v3.DtmfInput) query_); + query_ = subBuilder.buildPartial(); + } + queryCase_ = 23; break; } default: @@ -296,6 +312,7 @@ public enum QueryCase TRIGGER_INTENT(11), TRANSCRIPT(12), TRIGGER_EVENT(14), + DTMF(23), QUERY_NOT_SET(0); private final int value; @@ -322,6 +339,8 @@ public static QueryCase forNumber(int value) { return TRANSCRIPT; case 14: return TRIGGER_EVENT; + case 23: + return DTMF; case 0: return QUERY_NOT_SET; default: @@ -636,6 +655,60 @@ public com.google.protobuf.ByteString getTriggerEventBytes() { } } + public static final int DTMF_FIELD_NUMBER = 23; + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + * + * @return Whether the dtmf field is set. + */ + @java.lang.Override + public boolean hasDtmf() { + return queryCase_ == 23; + } + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + * + * @return The dtmf. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DtmfInput getDtmf() { + if (queryCase_ == 23) { + return (com.google.cloud.dialogflow.cx.v3.DtmfInput) query_; + } + return com.google.cloud.dialogflow.cx.v3.DtmfInput.getDefaultInstance(); + } + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder() { + if (queryCase_ == 23) { + return (com.google.cloud.dialogflow.cx.v3.DtmfInput) query_; + } + return com.google.cloud.dialogflow.cx.v3.DtmfInput.getDefaultInstance(); + } + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** @@ -1316,7 +1389,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queryCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (parameters_ != null) { @@ -1358,6 +1431,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sentimentAnalysisResult_ != null) { output.writeMessage(17, getSentimentAnalysisResult()); } + if (queryCase_ == 23) { + output.writeMessage(23, (com.google.cloud.dialogflow.cx.v3.DtmfInput) query_); + } unknownFields.writeTo(output); } @@ -1370,7 +1446,7 @@ public int getSerializedSize() { if (queryCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (parameters_ != null) { @@ -1414,6 +1490,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 17, getSentimentAnalysisResult()); } + if (queryCase_ == 23) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.cloud.dialogflow.cx.v3.DtmfInput) query_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1474,6 +1555,9 @@ public boolean equals(final java.lang.Object obj) { case 14: if (!getTriggerEvent().equals(other.getTriggerEvent())) return false; break; + case 23: + if (!getDtmf().equals(other.getDtmf())) return false; + break; case 0: default: } @@ -1545,6 +1629,10 @@ public int hashCode() { hash = (37 * hash) + TRIGGER_EVENT_FIELD_NUMBER; hash = (53 * hash) + getTriggerEvent().hashCode(); break; + case 23: + hash = (37 * hash) + DTMF_FIELD_NUMBER; + hash = (53 * hash) + getDtmf().hashCode(); + break; case 0: default: } @@ -1797,6 +1885,13 @@ public com.google.cloud.dialogflow.cx.v3.QueryResult buildPartial() { if (queryCase_ == 14) { result.query_ = query_; } + if (queryCase_ == 23) { + if (dtmfBuilder_ == null) { + result.query_ = query_; + } else { + result.query_ = dtmfBuilder_.build(); + } + } result.languageCode_ = languageCode_; if (parametersBuilder_ == null) { result.parameters_ = parameters_; @@ -2041,6 +2136,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { onChanged(); break; } + case DTMF: + { + mergeDtmf(other.getDtmf()); + break; + } case QUERY_NOT_SET: { break; @@ -2663,6 +2763,223 @@ public Builder setTriggerEventBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DtmfInput, + com.google.cloud.dialogflow.cx.v3.DtmfInput.Builder, + com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder> + dtmfBuilder_; + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + * + * @return Whether the dtmf field is set. + */ + @java.lang.Override + public boolean hasDtmf() { + return queryCase_ == 23; + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + * + * @return The dtmf. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DtmfInput getDtmf() { + if (dtmfBuilder_ == null) { + if (queryCase_ == 23) { + return (com.google.cloud.dialogflow.cx.v3.DtmfInput) query_; + } + return com.google.cloud.dialogflow.cx.v3.DtmfInput.getDefaultInstance(); + } else { + if (queryCase_ == 23) { + return dtmfBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3.DtmfInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + */ + public Builder setDtmf(com.google.cloud.dialogflow.cx.v3.DtmfInput value) { + if (dtmfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + onChanged(); + } else { + dtmfBuilder_.setMessage(value); + } + queryCase_ = 23; + return this; + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + */ + public Builder setDtmf(com.google.cloud.dialogflow.cx.v3.DtmfInput.Builder builderForValue) { + if (dtmfBuilder_ == null) { + query_ = builderForValue.build(); + onChanged(); + } else { + dtmfBuilder_.setMessage(builderForValue.build()); + } + queryCase_ = 23; + return this; + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + */ + public Builder mergeDtmf(com.google.cloud.dialogflow.cx.v3.DtmfInput value) { + if (dtmfBuilder_ == null) { + if (queryCase_ == 23 + && query_ != com.google.cloud.dialogflow.cx.v3.DtmfInput.getDefaultInstance()) { + query_ = + com.google.cloud.dialogflow.cx.v3.DtmfInput.newBuilder( + (com.google.cloud.dialogflow.cx.v3.DtmfInput) query_) + .mergeFrom(value) + .buildPartial(); + } else { + query_ = value; + } + onChanged(); + } else { + if (queryCase_ == 23) { + dtmfBuilder_.mergeFrom(value); + } + dtmfBuilder_.setMessage(value); + } + queryCase_ = 23; + return this; + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + */ + public Builder clearDtmf() { + if (dtmfBuilder_ == null) { + if (queryCase_ == 23) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + } else { + if (queryCase_ == 23) { + queryCase_ = 0; + query_ = null; + } + dtmfBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + */ + public com.google.cloud.dialogflow.cx.v3.DtmfInput.Builder getDtmfBuilder() { + return getDtmfFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder() { + if ((queryCase_ == 23) && (dtmfBuilder_ != null)) { + return dtmfBuilder_.getMessageOrBuilder(); + } else { + if (queryCase_ == 23) { + return (com.google.cloud.dialogflow.cx.v3.DtmfInput) query_; + } + return com.google.cloud.dialogflow.cx.v3.DtmfInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DtmfInput, + com.google.cloud.dialogflow.cx.v3.DtmfInput.Builder, + com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder> + getDtmfFieldBuilder() { + if (dtmfBuilder_ == null) { + if (!(queryCase_ == 23)) { + query_ = com.google.cloud.dialogflow.cx.v3.DtmfInput.getDefaultInstance(); + } + dtmfBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.DtmfInput, + com.google.cloud.dialogflow.cx.v3.DtmfInput.Builder, + com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder>( + (com.google.cloud.dialogflow.cx.v3.DtmfInput) query_, + getParentForChildren(), + isClean()); + query_ = null; + } + queryCase_ = 23; + onChanged(); + ; + return dtmfBuilder_; + } + private java.lang.Object languageCode_ = ""; /** * diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java index 9035761f8..2fd44af98 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java @@ -189,6 +189,44 @@ public interface QueryResultOrBuilder */ com.google.protobuf.ByteString getTriggerEventBytes(); + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + * + * @return Whether the dtmf field is set. + */ + boolean hasDtmf(); + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + * + * @return The dtmf. + */ + com.google.cloud.dialogflow.cx.v3.DtmfInput getDtmf(); + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.DtmfInput dtmf = 23; + */ + com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder(); + /** * * diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java index 5e5edf0fa..3501c93dc 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java @@ -231,10 +231,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } unknownFields.writeTo(output); @@ -246,10 +246,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java index eca584e0a..a00fa97e8 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java @@ -242,6 +242,30 @@ private ResponseMessage( messageCase_ = 13; break; } + case 146: + { + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.Builder + subBuilder = null; + if (messageCase_ == 18) { + subBuilder = + ((com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) + message_) + .toBuilder(); + } + message_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) + message_); + message_ = subBuilder.buildPartial(); + } + messageCase_ = 18; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4668,7 +4692,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getAudioUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audioUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audioUri_); } if (allowPlaybackInterruption_ != false) { @@ -4683,7 +4707,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getAudioUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audioUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audioUri_); } if (allowPlaybackInterruption_ != false) { @@ -7447,188 +7471,1022 @@ public com.google.protobuf.Parser getParserForType() { } } - private int messageCase_ = 0; - private java.lang.Object message_; - - public enum MessageCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TEXT(1), - PAYLOAD(2), - CONVERSATION_SUCCESS(9), - OUTPUT_AUDIO_TEXT(8), - LIVE_AGENT_HANDOFF(10), - END_INTERACTION(11), - PLAY_AUDIO(12), - MIXED_AUDIO(13), - MESSAGE_NOT_SET(0); - private final int value; + public interface TelephonyTransferCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) + com.google.protobuf.MessageOrBuilder { - private MessageCase(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. + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return Whether the phoneNumber field is set. */ - @java.lang.Deprecated - public static MessageCase valueOf(int value) { - return forNumber(value); - } - - public static MessageCase forNumber(int value) { - switch (value) { - case 1: - return TEXT; - case 2: - return PAYLOAD; - case 9: - return CONVERSATION_SUCCESS; - case 8: - return OUTPUT_AUDIO_TEXT; - case 10: - return LIVE_AGENT_HANDOFF; - case 11: - return END_INTERACTION; - case 12: - return PLAY_AUDIO; - case 13: - return MIXED_AUDIO; - case 0: - return MESSAGE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public MessageCase getMessageCase() { - return MessageCase.forNumber(messageCase_); - } + boolean hasPhoneNumber(); + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString getPhoneNumberBytes(); - public static final int TEXT_FIELD_NUMBER = 1; - /** - * - * - *
-   * Returns a text response.
-   * 
- * - * .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text = 1; - * - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return messageCase_ == 1; + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.EndpointCase + getEndpointCase(); } /** * * *
-   * Returns a text response.
+   * Represents the signal that telles the client to transfer the phone call
+   * connected to the agent to a third-party endpoint.
    * 
* - * .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text = 1; - * - * @return The text. + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall} */ - @java.lang.Override - public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text getText() { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text) message_; + public static final class TelephonyTransferCall extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) + TelephonyTransferCallOrBuilder { + private static final long serialVersionUID = 0L; + // Use TelephonyTransferCall.newBuilder() to construct. + private TelephonyTransferCall(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.getDefaultInstance(); - } - /** - * - * - *
-   * Returns a text response.
-   * 
- * - * .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text = 1; - */ - @java.lang.Override - public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder getTextOrBuilder() { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text) message_; + + private TelephonyTransferCall() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TelephonyTransferCall(); } - return com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.getDefaultInstance(); - } - public static final int PAYLOAD_FIELD_NUMBER = 2; - /** - * - * - *
-   * Returns a response containing a custom, platform-specific payload.
-   * 
- * - * .google.protobuf.Struct payload = 2; - * - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return messageCase_ == 2; - } - /** - * - * - *
-   * Returns a response containing a custom, platform-specific payload.
-   * 
- * - * .google.protobuf.Struct payload = 2; - * - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.Struct getPayload() { - if (messageCase_ == 2) { - return (com.google.protobuf.Struct) message_; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - return com.google.protobuf.Struct.getDefaultInstance(); - } - /** - * - * - *
-   * Returns a response containing a custom, platform-specific payload.
-   * 
- * - * .google.protobuf.Struct payload = 2; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - if (messageCase_ == 2) { - return (com.google.protobuf.Struct) message_; + + private TelephonyTransferCall( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + endpointCase_ = 1; + endpoint_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } - return com.google.protobuf.Struct.getDefaultInstance(); - } - public static final int CONVERSATION_SUCCESS_FIELD_NUMBER = 9; - /** - * - * - *
-   * Indicates that the conversation succeeded.
-   * 
- * - * - * .google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess conversation_success = 9; - * - * - * @return Whether the conversationSuccess field is set. - */ - @java.lang.Override + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.ResponseMessageProto + .internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_TelephonyTransferCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.ResponseMessageProto + .internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_TelephonyTransferCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.class, + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.Builder + .class); + } + + private int endpointCase_ = 0; + private java.lang.Object endpoint_; + + public enum EndpointCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PHONE_NUMBER(1), + ENDPOINT_NOT_SET(0); + private final int value; + + private EndpointCase(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 EndpointCase valueOf(int value) { + return forNumber(value); + } + + public static EndpointCase forNumber(int value) { + switch (value) { + case 1: + return PHONE_NUMBER; + case 0: + return ENDPOINT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EndpointCase getEndpointCase() { + return EndpointCase.forNumber(endpointCase_); + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 1; + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return Whether the phoneNumber field is set. + */ + public boolean hasPhoneNumber() { + return endpointCase_ == 1; + } + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (ref instanceof java.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 (endpointCase_ == 1) { + endpoint_ = s; + } + return s; + } + } + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (endpointCase_ == 1) { + endpoint_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (endpointCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (endpointCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall other = + (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) obj; + + if (!getEndpointCase().equals(other.getEndpointCase())) return false; + switch (endpointCase_) { + case 1: + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (endpointCase_) { + case 1: + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Represents the signal that telles the client to transfer the phone call
+     * connected to the agent to a third-party endpoint.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.ResponseMessageProto + .internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_TelephonyTransferCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.ResponseMessageProto + .internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_TelephonyTransferCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.class, + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + endpointCase_ = 0; + endpoint_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.ResponseMessageProto + .internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_TelephonyTransferCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall build() { + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + buildPartial() { + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall result = + new com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall(this); + if (endpointCase_ == 1) { + result.endpoint_ = endpoint_; + } + result.endpointCase_ = endpointCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall other) { + if (other + == com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + .getDefaultInstance()) return this; + switch (other.getEndpointCase()) { + case PHONE_NUMBER: + { + endpointCase_ = 1; + endpoint_ = other.endpoint_; + onChanged(); + break; + } + case ENDPOINT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int endpointCase_ = 0; + private java.lang.Object endpoint_; + + public EndpointCase getEndpointCase() { + return EndpointCase.forNumber(endpointCase_); + } + + public Builder clearEndpoint() { + endpointCase_ = 0; + endpoint_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return Whether the phoneNumber field is set. + */ + @java.lang.Override + public boolean hasPhoneNumber() { + return endpointCase_ == 1; + } + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (endpointCase_ == 1) { + endpoint_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (endpointCase_ == 1) { + endpoint_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpointCase_ = 1; + endpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + if (endpointCase_ == 1) { + endpointCase_ = 0; + endpoint_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @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); + endpointCase_ = 1; + endpoint_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) + private static final com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall(); + } + + public static com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TelephonyTransferCall parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TelephonyTransferCall(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int messageCase_ = 0; + private java.lang.Object message_; + + public enum MessageCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + PAYLOAD(2), + CONVERSATION_SUCCESS(9), + OUTPUT_AUDIO_TEXT(8), + LIVE_AGENT_HANDOFF(10), + END_INTERACTION(11), + PLAY_AUDIO(12), + MIXED_AUDIO(13), + TELEPHONY_TRANSFER_CALL(18), + MESSAGE_NOT_SET(0); + private final int value; + + private MessageCase(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 MessageCase valueOf(int value) { + return forNumber(value); + } + + public static MessageCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return PAYLOAD; + case 9: + return CONVERSATION_SUCCESS; + case 8: + return OUTPUT_AUDIO_TEXT; + case 10: + return LIVE_AGENT_HANDOFF; + case 11: + return END_INTERACTION; + case 12: + return PLAY_AUDIO; + case 13: + return MIXED_AUDIO; + case 18: + return TELEPHONY_TRANSFER_CALL; + case 0: + return MESSAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MessageCase getMessageCase() { + return MessageCase.forNumber(messageCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text = 1; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return messageCase_ == 1; + } + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text = 1; + * + * @return The text. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text getText() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text) message_; + } + return com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.getDefaultInstance(); + } + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder getTextOrBuilder() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text) message_; + } + return com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.getDefaultInstance(); + } + + public static final int PAYLOAD_FIELD_NUMBER = 2; + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return messageCase_ == 2; + } + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (messageCase_ == 2) { + return (com.google.protobuf.Struct) message_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if (messageCase_ == 2) { + return (com.google.protobuf.Struct) message_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int CONVERSATION_SUCCESS_FIELD_NUMBER = 9; + /** + * + * + *
+   * Indicates that the conversation succeeded.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess conversation_success = 9; + * + * + * @return Whether the conversationSuccess field is set. + */ + @java.lang.Override public boolean hasConversationSuccess() { return messageCase_ == 9; } @@ -7989,6 +8847,70 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio getMixedAudi return com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.getDefaultInstance(); } + public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER = 18; + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return Whether the telephonyTransferCall field is set. + */ + @java.lang.Override + public boolean hasTelephonyTransferCall() { + return messageCase_ == 18; + } + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return The telephonyTransferCall. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + getTelephonyTransferCall() { + if (messageCase_ == 18) { + return (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_; + } + return com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallOrBuilder + getTelephonyTransferCallOrBuilder() { + if (messageCase_ == 18) { + return (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_; + } + return com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8033,6 +8955,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 13, (com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio) message_); } + if (messageCase_ == 18) { + output.writeMessage( + 18, (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_); + } unknownFields.writeTo(output); } @@ -8082,6 +9008,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 13, (com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio) message_); } + if (messageCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, + (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -8124,6 +9056,9 @@ public boolean equals(final java.lang.Object obj) { case 13: if (!getMixedAudio().equals(other.getMixedAudio())) return false; break; + case 18: + if (!getTelephonyTransferCall().equals(other.getTelephonyTransferCall())) return false; + break; case 0: default: } @@ -8171,6 +9106,10 @@ public int hashCode() { hash = (37 * hash) + MIXED_AUDIO_FIELD_NUMBER; hash = (53 * hash) + getMixedAudio().hashCode(); break; + case 18: + hash = (37 * hash) + TELEPHONY_TRANSFER_CALL_FIELD_NUMBER; + hash = (53 * hash) + getTelephonyTransferCall().hashCode(); + break; case 0: default: } @@ -8417,6 +9356,13 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage buildPartial() { result.message_ = mixedAudioBuilder_.build(); } } + if (messageCase_ == 18) { + if (telephonyTransferCallBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = telephonyTransferCallBuilder_.build(); + } + } result.messageCase_ = messageCase_; onBuilt(); return result; @@ -8509,6 +9455,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ResponseMessage other mergeMixedAudio(other.getMixedAudio()); break; } + case TELEPHONY_TRANSFER_CALL: + { + mergeTelephonyTransferCall(other.getTelephonyTransferCall()); + break; + } case MESSAGE_NOT_SET: { break; @@ -10476,6 +11427,256 @@ public Builder clearMixedAudio() { return mixedAudioBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall, + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.Builder, + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallOrBuilder> + telephonyTransferCallBuilder_; + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return Whether the telephonyTransferCall field is set. + */ + @java.lang.Override + public boolean hasTelephonyTransferCall() { + return messageCase_ == 18; + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return The telephonyTransferCall. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + getTelephonyTransferCall() { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 18) { + return (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_; + } + return com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } else { + if (messageCase_ == 18) { + return telephonyTransferCallBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + public Builder setTelephonyTransferCall( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall value) { + if (telephonyTransferCallBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + telephonyTransferCallBuilder_.setMessage(value); + } + messageCase_ = 18; + return this; + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + public Builder setTelephonyTransferCall( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.Builder + builderForValue) { + if (telephonyTransferCallBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + telephonyTransferCallBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 18; + return this; + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + public Builder mergeTelephonyTransferCall( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall value) { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 18 + && message_ + != com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + .getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.newBuilder( + (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) + message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 18) { + telephonyTransferCallBuilder_.mergeFrom(value); + } + telephonyTransferCallBuilder_.setMessage(value); + } + messageCase_ = 18; + return this; + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + public Builder clearTelephonyTransferCall() { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 18) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 18) { + messageCase_ = 0; + message_ = null; + } + telephonyTransferCallBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.Builder + getTelephonyTransferCallBuilder() { + return getTelephonyTransferCallFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallOrBuilder + getTelephonyTransferCallOrBuilder() { + if ((messageCase_ == 18) && (telephonyTransferCallBuilder_ != null)) { + return telephonyTransferCallBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 18) { + return (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_; + } + return com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall, + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.Builder, + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallOrBuilder> + getTelephonyTransferCallFieldBuilder() { + if (telephonyTransferCallBuilder_ == null) { + if (!(messageCase_ == 18)) { + message_ = + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + telephonyTransferCallBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall, + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.Builder, + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallOrBuilder>( + (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 18; + onChanged(); + ; + return telephonyTransferCallBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java index b87297f3e..48643e3c9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java @@ -367,5 +367,51 @@ public interface ResponseMessageOrBuilder */ com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudioOrBuilder getMixedAudioOrBuilder(); + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return Whether the telephonyTransferCall field is set. + */ + boolean hasTelephonyTransferCall(); + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return The telephonyTransferCall. + */ + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + getTelephonyTransferCall(); + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallOrBuilder + getTelephonyTransferCallOrBuilder(); + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MessageCase getMessageCase(); } diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java index 49b4647f6..c7599e5de 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java @@ -63,6 +63,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_MixedAudio_Segment_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_MixedAudio_Segment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_TelephonyTransferCall_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_TelephonyTransferCall_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -76,7 +80,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_message.proto\022\035google.cloud.dialogflow." + "cx.v3\032\037google/api/field_behavior.proto\032\034" + "google/protobuf/struct.proto\032\034google/api" - + "/annotations.proto\"\205\n\n\017ResponseMessage\022C" + + "/annotations.proto\"\253\013\n\017ResponseMessage\022C" + "\n\004text\030\001 \001(\01323.google.cloud.dialogflow.c" + "x.v3.ResponseMessage.TextH\000\022*\n\007payload\030\002" + " \001(\0132\027.google.protobuf.StructH\000\022b\n\024conve" @@ -93,27 +97,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.dialogflow.cx.v3.ResponseMessa" + "ge.PlayAudioH\000\022U\n\013mixed_audio\030\r \001(\01329.go" + "ogle.cloud.dialogflow.cx.v3.ResponseMess" - + "age.MixedAudioB\003\340A\003H\000\032C\n\004Text\022\021\n\004text\030\001 " - + "\003(\tB\003\340A\002\022(\n\033allow_playback_interruption\030" - + "\002 \001(\010B\003\340A\003\032=\n\020LiveAgentHandoff\022)\n\010metada" - + "ta\030\001 \001(\0132\027.google.protobuf.Struct\032@\n\023Con" - + "versationSuccess\022)\n\010metadata\030\001 \001(\0132\027.goo" - + "gle.protobuf.Struct\032e\n\017OutputAudioText\022\016" - + "\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000\022(\n\033allow_" - + "playback_interruption\030\003 \001(\010B\003\340A\003B\010\n\006sour" - + "ce\032\020\n\016EndInteraction\032M\n\tPlayAudio\022\026\n\taud" - + "io_uri\030\001 \001(\tB\003\340A\002\022(\n\033allow_playback_inte" - + "rruption\030\002 \001(\010B\003\340A\003\032\301\001\n\nMixedAudio\022S\n\010se" - + "gments\030\001 \003(\0132A.google.cloud.dialogflow.c" - + "x.v3.ResponseMessage.MixedAudio.Segment\032" - + "^\n\007Segment\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\t" - + "H\000\022(\n\033allow_playback_interruption\030\003 \001(\010B" - + "\003\340A\003B\t\n\007contentB\t\n\007messageB\310\001\n!com.googl" - + "e.cloud.dialogflow.cx.v3B\024ResponseMessag" - + "eProtoP\001Z?google.golang.org/genproto/goo" - + "gleapis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002D" - + "F\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Goog" - + "le::Cloud::Dialogflow::CX::V3b\006proto3" + + "age.MixedAudioB\003\340A\003H\000\022g\n\027telephony_trans" + + "fer_call\030\022 \001(\0132D.google.cloud.dialogflow" + + ".cx.v3.ResponseMessage.TelephonyTransfer" + + "CallH\000\032C\n\004Text\022\021\n\004text\030\001 \003(\tB\003\340A\002\022(\n\033all" + + "ow_playback_interruption\030\002 \001(\010B\003\340A\003\032=\n\020L" + + "iveAgentHandoff\022)\n\010metadata\030\001 \001(\0132\027.goog" + + "le.protobuf.Struct\032@\n\023ConversationSucces" + + "s\022)\n\010metadata\030\001 \001(\0132\027.google.protobuf.St" + + "ruct\032e\n\017OutputAudioText\022\016\n\004text\030\001 \001(\tH\000\022" + + "\016\n\004ssml\030\002 \001(\tH\000\022(\n\033allow_playback_interr" + + "uption\030\003 \001(\010B\003\340A\003B\010\n\006source\032\020\n\016EndIntera" + + "ction\032M\n\tPlayAudio\022\026\n\taudio_uri\030\001 \001(\tB\003\340" + + "A\002\022(\n\033allow_playback_interruption\030\002 \001(\010B" + + "\003\340A\003\032\301\001\n\nMixedAudio\022S\n\010segments\030\001 \003(\0132A." + + "google.cloud.dialogflow.cx.v3.ResponseMe" + + "ssage.MixedAudio.Segment\032^\n\007Segment\022\017\n\005a" + + "udio\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000\022(\n\033allow_pla" + + "yback_interruption\030\003 \001(\010B\003\340A\003B\t\n\007content" + + "\032;\n\025TelephonyTransferCall\022\026\n\014phone_numbe" + + "r\030\001 \001(\tH\000B\n\n\010endpointB\t\n\007messageB\310\001\n!com" + + ".google.cloud.dialogflow.cx.v3B\024Response" + + "MessageProtoP\001Z?google.golang.org/genpro" + + "to/googleapis/cloud/dialogflow/cx/v3;cx\370" + + "\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352" + + "\002!Google::Cloud::Dialogflow::CX::V3b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -137,6 +146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EndInteraction", "PlayAudio", "MixedAudio", + "TelephonyTransferCall", "Message", }); internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_Text_descriptor = @@ -217,6 +227,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Audio", "Uri", "AllowPlaybackInterruption", "Content", }); + internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_TelephonyTransferCall_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_descriptor + .getNestedTypes() + .get(7); + internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_TelephonyTransferCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_TelephonyTransferCall_descriptor, + new java.lang.String[] { + "PhoneNumber", "Endpoint", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java index 53d9ef0b2..7c85d1cd9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java @@ -564,7 +564,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (agentCase_ == 2) { @@ -588,7 +588,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (agentCase_ == 2) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java index a7e14a230..717991e0c 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java @@ -472,7 +472,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } if (trafficPercent_ != 0) { @@ -490,7 +490,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (trafficPercent_ != 0) { @@ -1455,10 +1455,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < rolloutSteps_.size(); i++) { output.writeMessage(1, rolloutSteps_.get(i)); } - if (!getRolloutConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutCondition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rolloutCondition_); } - if (!getFailureConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureCondition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, failureCondition_); } unknownFields.writeTo(output); @@ -1473,10 +1473,10 @@ public int getSerializedSize() { for (int i = 0; i < rolloutSteps_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rolloutSteps_.get(i)); } - if (!getRolloutConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutCondition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rolloutCondition_); } - if (!getFailureConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureCondition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, failureCondition_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java index 9138b5b50..c0199009c 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java @@ -258,7 +258,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getStepBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(step_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, step_); } if (startTime_ != null) { @@ -276,7 +276,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getStepBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(step_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, step_); } if (startTime_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java index 21f599852..8f45f14ae 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environment_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, environment_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java index d71b05be3..6d4a253e4 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java @@ -245,10 +245,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environment_); } unknownFields.writeTo(output); @@ -260,10 +260,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environment_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java index cdde90765..40157d166 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java @@ -1260,12 +1260,15 @@ public DataRetentionCase getDataRetentionCase() { * * *
-   * Required. Resource name of the settings.
+   * Resource name of the settings.
+   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
+   * automatically.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The name. */ @@ -1285,12 +1288,15 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of the settings.
+   * Resource name of the settings.
+   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
+   * automatically.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The bytes for name. */ @@ -1452,6 +1458,10 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope getReda *
    * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
    * template to define inspect base settings.
+   * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, we use the default DLP inspect config.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -1483,6 +1493,10 @@ public java.lang.String getInspectTemplate() {
    * 
    * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
    * template to define inspect base settings.
+   * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, we use the default DLP inspect config.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -1517,6 +1531,10 @@ public com.google.protobuf.ByteString getInspectTemplateBytes() {
    * 
    * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
    * template to define de-identification configuration for the content.
+   * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location
@@ -1548,6 +1566,10 @@ public java.lang.String getDeidentifyTemplate() {
    * 
    * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
    * template to define de-identification configuration for the content.
+   * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location
@@ -1582,7 +1604,7 @@ public com.google.protobuf.ByteString getDeidentifyTemplateBytes() {
    * Retains data in interaction logging for the specified number of days.
    * This does not apply to Cloud logging, which is owned by the user - not
    * Dialogflow.
-   * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+   * User must set a value lower than Dialogflow's default 365d TTL. Setting a
    * value higher than that has no effect.
    * A missing value or setting to 0 also means we use Dialogflow's default
    * TTL.
@@ -1605,7 +1627,7 @@ public boolean hasRetentionWindowDays() {
    * Retains data in interaction logging for the specified number of days.
    * This does not apply to Cloud logging, which is owned by the user - not
    * Dialogflow.
-   * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+   * User must set a value lower than Dialogflow's default 365d TTL. Setting a
    * value higher than that has no effect.
    * A missing value or setting to 0 also means we use Dialogflow's default
    * TTL.
@@ -1819,10 +1841,10 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getSerializedSize();
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
-    if (!getDisplayNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
     }
     if (redactionStrategy_
@@ -1847,13 +1869,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < purgeDataTypes_.size(); i++) {
       output.writeEnumNoTag(purgeDataTypes_.get(i));
     }
-    if (!getInspectTemplateBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inspectTemplate_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 9, inspectTemplate_);
     }
     if (insightsExportSettings_ != null) {
       output.writeMessage(13, getInsightsExportSettings());
     }
-    if (!getDeidentifyTemplateBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deidentifyTemplate_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 17, deidentifyTemplate_);
     }
     unknownFields.writeTo(output);
@@ -1865,10 +1887,10 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    if (!getDisplayNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (redactionStrategy_
@@ -1901,14 +1923,14 @@ public int getSerializedSize() {
       }
       purgeDataTypesMemoizedSerializedSize = dataSize;
     }
-    if (!getInspectTemplateBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inspectTemplate_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, inspectTemplate_);
     }
     if (insightsExportSettings_ != null) {
       size +=
           com.google.protobuf.CodedOutputStream.computeMessageSize(13, getInsightsExportSettings());
     }
-    if (!getDeidentifyTemplateBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deidentifyTemplate_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, deidentifyTemplate_);
     }
     size += unknownFields.getSerializedSize();
@@ -2349,12 +2371,15 @@ public Builder clearDataRetention() {
      *
      *
      * 
-     * Required. Resource name of the settings.
+     * Resource name of the settings.
+     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
+     * automatically.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The name. */ @@ -2373,12 +2398,15 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of the settings.
+     * Resource name of the settings.
+     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
+     * automatically.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The bytes for name. */ @@ -2397,12 +2425,15 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of the settings.
+     * Resource name of the settings.
+     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
+     * automatically.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @param value The name to set. * @return This builder for chaining. @@ -2420,12 +2451,15 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of the settings.
+     * Resource name of the settings.
+     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
+     * automatically.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return This builder for chaining. */ @@ -2439,12 +2473,15 @@ public Builder clearName() { * * *
-     * Required. Resource name of the settings.
+     * Resource name of the settings.
+     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
+     * automatically.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -2794,6 +2831,10 @@ public Builder clearRedactionScope() { *
      * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
      * template to define inspect base settings.
+     * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, we use the default DLP inspect config.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -2824,6 +2865,10 @@ public java.lang.String getInspectTemplate() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
      * template to define inspect base settings.
+     * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, we use the default DLP inspect config.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -2854,6 +2899,10 @@ public com.google.protobuf.ByteString getInspectTemplateBytes() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
      * template to define inspect base settings.
+     * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, we use the default DLP inspect config.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -2883,6 +2932,10 @@ public Builder setInspectTemplate(java.lang.String value) {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
      * template to define inspect base settings.
+     * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, we use the default DLP inspect config.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -2908,6 +2961,10 @@ public Builder clearInspectTemplate() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
      * template to define inspect base settings.
+     * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, we use the default DLP inspect config.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -2940,6 +2997,10 @@ public Builder setInspectTemplateBytes(com.google.protobuf.ByteString value) {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
      * template to define de-identification configuration for the content.
+     * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location
@@ -2970,6 +3031,10 @@ public java.lang.String getDeidentifyTemplate() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
      * template to define de-identification configuration for the content.
+     * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location
@@ -3000,6 +3065,10 @@ public com.google.protobuf.ByteString getDeidentifyTemplateBytes() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
      * template to define de-identification configuration for the content.
+     * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location
@@ -3029,6 +3098,10 @@ public Builder setDeidentifyTemplate(java.lang.String value) {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
      * template to define de-identification configuration for the content.
+     * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location
@@ -3054,6 +3127,10 @@ public Builder clearDeidentifyTemplate() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
      * template to define de-identification configuration for the content.
+     * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location
@@ -3086,7 +3163,7 @@ public Builder setDeidentifyTemplateBytes(com.google.protobuf.ByteString value)
      * Retains data in interaction logging for the specified number of days.
      * This does not apply to Cloud logging, which is owned by the user - not
      * Dialogflow.
-     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+     * User must set a value lower than Dialogflow's default 365d TTL. Setting a
      * value higher than that has no effect.
      * A missing value or setting to 0 also means we use Dialogflow's default
      * TTL.
@@ -3108,7 +3185,7 @@ public boolean hasRetentionWindowDays() {
      * Retains data in interaction logging for the specified number of days.
      * This does not apply to Cloud logging, which is owned by the user - not
      * Dialogflow.
-     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+     * User must set a value lower than Dialogflow's default 365d TTL. Setting a
      * value higher than that has no effect.
      * A missing value or setting to 0 also means we use Dialogflow's default
      * TTL.
@@ -3133,7 +3210,7 @@ public int getRetentionWindowDays() {
      * Retains data in interaction logging for the specified number of days.
      * This does not apply to Cloud logging, which is owned by the user - not
      * Dialogflow.
-     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+     * User must set a value lower than Dialogflow's default 365d TTL. Setting a
      * value higher than that has no effect.
      * A missing value or setting to 0 also means we use Dialogflow's default
      * TTL.
@@ -3159,7 +3236,7 @@ public Builder setRetentionWindowDays(int value) {
      * Retains data in interaction logging for the specified number of days.
      * This does not apply to Cloud logging, which is owned by the user - not
      * Dialogflow.
-     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+     * User must set a value lower than Dialogflow's default 365d TTL. Setting a
      * value higher than that has no effect.
      * A missing value or setting to 0 also means we use Dialogflow's default
      * TTL.
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java
index 855a8fa68..946cc3159 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java
@@ -27,12 +27,15 @@ public interface SecuritySettingsOrBuilder
    *
    *
    * 
-   * Required. Resource name of the settings.
+   * Resource name of the settings.
+   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
+   * automatically.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The name. */ @@ -41,12 +44,15 @@ public interface SecuritySettingsOrBuilder * * *
-   * Required. Resource name of the settings.
+   * Resource name of the settings.
+   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
+   * automatically.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The bytes for name. */ @@ -143,6 +149,10 @@ public interface SecuritySettingsOrBuilder *
    * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
    * template to define inspect base settings.
+   * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, we use the default DLP inspect config.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -163,6 +173,10 @@ public interface SecuritySettingsOrBuilder
    * 
    * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
    * template to define inspect base settings.
+   * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, we use the default DLP inspect config.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -184,6 +198,10 @@ public interface SecuritySettingsOrBuilder
    * 
    * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
    * template to define de-identification configuration for the content.
+   * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location
@@ -204,6 +222,10 @@ public interface SecuritySettingsOrBuilder
    * 
    * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
    * template to define de-identification configuration for the content.
+   * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location
@@ -226,7 +248,7 @@ public interface SecuritySettingsOrBuilder
    * Retains data in interaction logging for the specified number of days.
    * This does not apply to Cloud logging, which is owned by the user - not
    * Dialogflow.
-   * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+   * User must set a value lower than Dialogflow's default 365d TTL. Setting a
    * value higher than that has no effect.
    * A missing value or setting to 0 also means we use Dialogflow's default
    * TTL.
@@ -246,7 +268,7 @@ public interface SecuritySettingsOrBuilder
    * Retains data in interaction logging for the specified number of days.
    * This does not apply to Cloud logging, which is owned by the user - not
    * Dialogflow.
-   * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+   * User must set a value lower than Dialogflow's default 365d TTL. Setting a
    * value higher than that has no effect.
    * A missing value or setting to 0 also means we use Dialogflow's default
    * TTL.
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java
index bb037d7c6..cd43f29f9 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java
@@ -96,80 +96,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + ".SecuritySettingsB\003\340A\002\"a\n\035DeleteSecurity"
           + "SettingsRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*d"
           + "ialogflow.googleapis.com/SecuritySetting"
-          + "s\"\233\010\n\020SecuritySettings\022\021\n\004name\030\001 \001(\tB\003\340A"
-          + "\002\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022]\n\022redactio"
-          + "n_strategy\030\003 \001(\0162A.google.cloud.dialogfl"
-          + "ow.cx.v3.SecuritySettings.RedactionStrat"
-          + "egy\022W\n\017redaction_scope\030\004 \001(\0162>.google.cl"
-          + "oud.dialogflow.cx.v3.SecuritySettings.Re"
-          + "dactionScope\022A\n\020inspect_template\030\t \001(\tB\'"
-          + "\372A$\n\"dlp.googleapis.com/InspectTemplate\022"
-          + "G\n\023deidentify_template\030\021 \001(\tB*\372A\'\n%dlp.g"
-          + "oogleapis.com/DeidentifyTemplate\022\037\n\025rete"
-          + "ntion_window_days\030\006 \001(\005H\000\022W\n\020purge_data_"
-          + "types\030\010 \003(\0162=.google.cloud.dialogflow.cx"
-          + ".v3.SecuritySettings.PurgeDataType\022h\n\030in"
-          + "sights_export_settings\030\r \001(\0132F.google.cl"
-          + "oud.dialogflow.cx.v3.SecuritySettings.In"
-          + "sightsExportSettings\0328\n\026InsightsExportSe"
-          + "ttings\022\036\n\026enable_insights_export\030\001 \001(\010\"P"
-          + "\n\021RedactionStrategy\022\"\n\036REDACTION_STRATEG"
-          + "Y_UNSPECIFIED\020\000\022\027\n\023REDACT_WITH_SERVICE\020\001"
-          + "\"J\n\016RedactionScope\022\037\n\033REDACTION_SCOPE_UN"
-          + "SPECIFIED\020\000\022\027\n\023REDACT_DISK_STORAGE\020\002\"H\n\r"
-          + "PurgeDataType\022\037\n\033PURGE_DATA_TYPE_UNSPECI"
-          + "FIED\020\000\022\026\n\022DIALOGFLOW_HISTORY\020\001:}\352Az\n*dia"
-          + "logflow.googleapis.com/SecuritySettings\022"
-          + "Lprojects/{project}/locations/{location}"
-          + "/securitySettings/{security_settings}B\020\n"
-          + "\016data_retention2\357\t\n\027SecuritySettingsServ"
-          + "ice\022\363\001\n\026CreateSecuritySettings\022<.google."
-          + "cloud.dialogflow.cx.v3.CreateSecuritySet"
-          + "tingsRequest\032/.google.cloud.dialogflow.c"
-          + "x.v3.SecuritySettings\"j\202\323\344\223\002I\"4/v3/{pare"
+          + "s\"\226\010\n\020SecuritySettings\022\014\n\004name\030\001 \001(\t\022\031\n\014"
+          + "display_name\030\002 \001(\tB\003\340A\002\022]\n\022redaction_str"
+          + "ategy\030\003 \001(\0162A.google.cloud.dialogflow.cx"
+          + ".v3.SecuritySettings.RedactionStrategy\022W"
+          + "\n\017redaction_scope\030\004 \001(\0162>.google.cloud.d"
+          + "ialogflow.cx.v3.SecuritySettings.Redacti"
+          + "onScope\022A\n\020inspect_template\030\t \001(\tB\'\372A$\n\""
+          + "dlp.googleapis.com/InspectTemplate\022G\n\023de"
+          + "identify_template\030\021 \001(\tB*\372A\'\n%dlp.google"
+          + "apis.com/DeidentifyTemplate\022\037\n\025retention"
+          + "_window_days\030\006 \001(\005H\000\022W\n\020purge_data_types"
+          + "\030\010 \003(\0162=.google.cloud.dialogflow.cx.v3.S"
+          + "ecuritySettings.PurgeDataType\022h\n\030insight"
+          + "s_export_settings\030\r \001(\0132F.google.cloud.d"
+          + "ialogflow.cx.v3.SecuritySettings.Insight"
+          + "sExportSettings\0328\n\026InsightsExportSetting"
+          + "s\022\036\n\026enable_insights_export\030\001 \001(\010\"P\n\021Red"
+          + "actionStrategy\022\"\n\036REDACTION_STRATEGY_UNS"
+          + "PECIFIED\020\000\022\027\n\023REDACT_WITH_SERVICE\020\001\"J\n\016R"
+          + "edactionScope\022\037\n\033REDACTION_SCOPE_UNSPECI"
+          + "FIED\020\000\022\027\n\023REDACT_DISK_STORAGE\020\002\"H\n\rPurge"
+          + "DataType\022\037\n\033PURGE_DATA_TYPE_UNSPECIFIED\020"
+          + "\000\022\026\n\022DIALOGFLOW_HISTORY\020\001:}\352Az\n*dialogfl"
+          + "ow.googleapis.com/SecuritySettings\022Lproj"
+          + "ects/{project}/locations/{location}/secu"
+          + "ritySettings/{security_settings}B\020\n\016data"
+          + "_retention2\357\t\n\027SecuritySettingsService\022\363"
+          + "\001\n\026CreateSecuritySettings\022<.google.cloud"
+          + ".dialogflow.cx.v3.CreateSecuritySettings"
+          + "Request\032/.google.cloud.dialogflow.cx.v3."
+          + "SecuritySettings\"j\202\323\344\223\002I\"4/v3/{parent=pr"
+          + "ojects/*/locations/*}/securitySettings:\021"
+          + "security_settings\332A\030parent,security_sett"
+          + "ings\022\306\001\n\023GetSecuritySettings\0229.google.cl"
+          + "oud.dialogflow.cx.v3.GetSecuritySettings"
+          + "Request\032/.google.cloud.dialogflow.cx.v3."
+          + "SecuritySettings\"C\202\323\344\223\0026\0224/v3/{name=proj"
+          + "ects/*/locations/*/securitySettings/*}\332A"
+          + "\004name\022\213\002\n\026UpdateSecuritySettings\022<.googl"
+          + "e.cloud.dialogflow.cx.v3.UpdateSecurityS"
+          + "ettingsRequest\032/.google.cloud.dialogflow"
+          + ".cx.v3.SecuritySettings\"\201\001\202\323\344\223\002[2F/v3/{s"
+          + "ecurity_settings.name=projects/*/locatio"
+          + "ns/*/securitySettings/*}:\021security_setti"
+          + "ngs\332A\035security_settings,update_mask\022\326\001\n\024"
+          + "ListSecuritySettings\022:.google.cloud.dial"
+          + "ogflow.cx.v3.ListSecuritySettingsRequest"
+          + "\032;.google.cloud.dialogflow.cx.v3.ListSec"
+          + "uritySettingsResponse\"E\202\323\344\223\0026\0224/v3/{pare"
           + "nt=projects/*/locations/*}/securitySetti"
-          + "ngs:\021security_settings\332A\030parent,security"
-          + "_settings\022\306\001\n\023GetSecuritySettings\0229.goog"
-          + "le.cloud.dialogflow.cx.v3.GetSecuritySet"
-          + "tingsRequest\032/.google.cloud.dialogflow.c"
-          + "x.v3.SecuritySettings\"C\202\323\344\223\0026\0224/v3/{name"
-          + "=projects/*/locations/*/securitySettings"
-          + "/*}\332A\004name\022\213\002\n\026UpdateSecuritySettings\022<."
-          + "google.cloud.dialogflow.cx.v3.UpdateSecu"
-          + "ritySettingsRequest\032/.google.cloud.dialo"
-          + "gflow.cx.v3.SecuritySettings\"\201\001\202\323\344\223\002[2F/"
-          + "v3/{security_settings.name=projects/*/lo"
-          + "cations/*/securitySettings/*}:\021security_"
-          + "settings\332A\035security_settings,update_mask"
-          + "\022\326\001\n\024ListSecuritySettings\022:.google.cloud"
-          + ".dialogflow.cx.v3.ListSecuritySettingsRe"
-          + "quest\032;.google.cloud.dialogflow.cx.v3.Li"
-          + "stSecuritySettingsResponse\"E\202\323\344\223\0026\0224/v3/"
-          + "{parent=projects/*/locations/*}/security"
-          + "Settings\332A\006parent\022\263\001\n\026DeleteSecuritySett"
-          + "ings\022<.google.cloud.dialogflow.cx.v3.Del"
-          + "eteSecuritySettingsRequest\032\026.google.prot"
-          + "obuf.Empty\"C\202\323\344\223\0026*4/v3/{name=projects/*"
-          + "/locations/*/securitySettings/*}\332A\004name\032"
-          + "x\312A\031dialogflow.googleapis.com\322AYhttps://"
-          + "www.googleapis.com/auth/cloud-platform,h"
-          + "ttps://www.googleapis.com/auth/dialogflo"
-          + "wB\360\004\n!com.google.cloud.dialogflow.cx.v3B"
-          + "\025SecuritySettingsProtoP\001Z?google.golang."
-          + "org/genproto/googleapis/cloud/dialogflow"
-          + "/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogf"
-          + "low.Cx.V3\352\002!Google::Cloud::Dialogflow::C"
-          + "X::V3\352A\310\001\n\"dlp.googleapis.com/InspectTem"
-          + "plate\022Uorganizations/{organization}/loca"
-          + "tions/{location}/inspectTemplates/{inspe"
-          + "ct_template}\022Kprojects/{project}/locatio"
-          + "ns/{location}/inspectTemplates/{inspect_"
-          + "template}\352A\327\001\n%dlp.googleapis.com/Deiden"
-          + "tifyTemplate\022[organizations/{organizatio"
-          + "n}/locations/{location}/deidentifyTempla"
-          + "tes/{deidentify_template}\022Qprojects/{pro"
-          + "ject}/locations/{location}/deidentifyTem"
-          + "plates/{deidentify_template}b\006proto3"
+          + "ngs\332A\006parent\022\263\001\n\026DeleteSecuritySettings\022"
+          + "<.google.cloud.dialogflow.cx.v3.DeleteSe"
+          + "curitySettingsRequest\032\026.google.protobuf."
+          + "Empty\"C\202\323\344\223\0026*4/v3/{name=projects/*/loca"
+          + "tions/*/securitySettings/*}\332A\004name\032x\312A\031d"
+          + "ialogflow.googleapis.com\322AYhttps://www.g"
+          + "oogleapis.com/auth/cloud-platform,https:"
+          + "//www.googleapis.com/auth/dialogflowB\360\004\n"
+          + "!com.google.cloud.dialogflow.cx.v3B\025Secu"
+          + "ritySettingsProtoP\001Z?google.golang.org/g"
+          + "enproto/googleapis/cloud/dialogflow/cx/v"
+          + "3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.C"
+          + "x.V3\352\002!Google::Cloud::Dialogflow::CX::V3"
+          + "\352A\310\001\n\"dlp.googleapis.com/InspectTemplate"
+          + "\022Uorganizations/{organization}/locations"
+          + "/{location}/inspectTemplates/{inspect_te"
+          + "mplate}\022Kprojects/{project}/locations/{l"
+          + "ocation}/inspectTemplates/{inspect_templ"
+          + "ate}\352A\327\001\n%dlp.googleapis.com/DeidentifyT"
+          + "emplate\022[organizations/{organization}/lo"
+          + "cations/{location}/deidentifyTemplates/{"
+          + "deidentify_template}\022Qprojects/{project}"
+          + "/locations/{location}/deidentifyTemplate"
+          + "s/{deidentify_template}b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java
index 1d71304aa..3e4c96307 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java
@@ -530,7 +530,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     if (entityOverrideMode_
@@ -551,7 +551,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (entityOverrideMode_
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java
index 642c0286e..4ade7a526 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java
@@ -338,7 +338,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getSessionBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_);
     }
     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
@@ -352,7 +352,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getSessionBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_);
     }
     for (java.util.Map.Entry entry :
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java
index dfdfcbe2c..1fdf2fa8e 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java
@@ -198,108 +198,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "ud.dialogflow.cx.v3.EventInputH\000\0228\n\004dtmf"
           + "\030\007 \001(\0132(.google.cloud.dialogflow.cx.v3.D"
           + "tmfInputH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\002B\007"
-          + "\n\005input\"\347\005\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022"
+          + "\n\005input\"\241\006\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022"
           + "?\n\016trigger_intent\030\013 \001(\tB%\372A\"\n dialogflow"
           + ".googleapis.com/IntentH\000\022\024\n\ntranscript\030\014"
-          + " \001(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\022\025\n\rlangu"
-          + "age_code\030\002 \001(\t\022+\n\nparameters\030\003 \001(\0132\027.goo"
-          + "gle.protobuf.Struct\022I\n\021response_messages"
-          + "\030\004 \003(\0132..google.cloud.dialogflow.cx.v3.R"
-          + "esponseMessage\022,\n\020webhook_statuses\030\r \003(\013"
-          + "2\022.google.rpc.Status\0221\n\020webhook_payloads"
-          + "\030\006 \003(\0132\027.google.protobuf.Struct\0229\n\014curre"
-          + "nt_page\030\007 \001(\0132#.google.cloud.dialogflow."
-          + "cx.v3.Page\0229\n\006intent\030\010 \001(\0132%.google.clou"
-          + "d.dialogflow.cx.v3.IntentB\002\030\001\022\'\n\033intent_"
-          + "detection_confidence\030\t \001(\002B\002\030\001\0223\n\005match\030"
-          + "\017 \001(\0132$.google.cloud.dialogflow.cx.v3.Ma"
-          + "tch\0220\n\017diagnostic_info\030\n \001(\0132\027.google.pr"
-          + "otobuf.Struct\022Y\n\031sentiment_analysis_resu"
-          + "lt\030\021 \001(\01326.google.cloud.dialogflow.cx.v3"
-          + ".SentimentAnalysisResultB\007\n\005query\"\036\n\tTex"
-          + "tInput\022\021\n\004text\030\001 \001(\tB\003\340A\002\"G\n\013IntentInput"
-          + "\0228\n\006intent\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.goo"
-          + "gleapis.com/Intent\"a\n\nAudioInput\022D\n\006conf"
-          + "ig\030\001 \001(\0132/.google.cloud.dialogflow.cx.v3"
-          + ".InputAudioConfigB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033\n"
-          + "\nEventInput\022\r\n\005event\030\001 \001(\t\"1\n\tDtmfInput\022"
-          + "\016\n\006digits\030\001 \001(\t\022\024\n\014finish_digit\030\002 \001(\t\"\361\002"
-          + "\n\005Match\0225\n\006intent\030\001 \001(\0132%.google.cloud.d"
-          + "ialogflow.cx.v3.Intent\022\r\n\005event\030\006 \001(\t\022+\n"
-          + "\nparameters\030\002 \001(\0132\027.google.protobuf.Stru"
-          + "ct\022\026\n\016resolved_input\030\003 \001(\t\022B\n\nmatch_type"
-          + "\030\004 \001(\0162..google.cloud.dialogflow.cx.v3.M"
-          + "atch.MatchType\022\022\n\nconfidence\030\005 \001(\002\"\204\001\n\tM"
-          + "atchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n\006"
-          + "INTENT\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETER"
-          + "_FILLING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022\t"
-          + "\n\005EVENT\020\006\"\333\001\n\022MatchIntentRequest\022:\n\007sess"
-          + "ion\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapis"
-          + ".com/Session\022D\n\014query_params\030\002 \001(\0132..goo"
-          + "gle.cloud.dialogflow.cx.v3.QueryParamete"
-          + "rs\022C\n\013query_input\030\003 \001(\0132).google.cloud.d"
-          + "ialogflow.cx.v3.QueryInputB\003\340A\002\"\220\002\n\023Matc"
-          + "hIntentResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigg"
-          + "er_intent\030\002 \001(\tB%\372A\"\n dialogflow.googlea"
-          + "pis.com/IntentH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022\027"
-          + "\n\rtrigger_event\030\006 \001(\tH\000\0225\n\007matches\030\004 \003(\013"
-          + "2$.google.cloud.dialogflow.cx.v3.Match\0229"
-          + "\n\014current_page\030\005 \001(\0132#.google.cloud.dial"
-          + "ogflow.cx.v3.PageB\007\n\005query\"\353\001\n\024FulfillIn"
-          + "tentRequest\022O\n\024match_intent_request\030\001 \001("
-          + "\01321.google.cloud.dialogflow.cx.v3.MatchI"
-          + "ntentRequest\0223\n\005match\030\002 \001(\0132$.google.clo"
-          + "ud.dialogflow.cx.v3.Match\022M\n\023output_audi"
-          + "o_config\030\003 \001(\01320.google.cloud.dialogflow"
-          + ".cx.v3.OutputAudioConfig\"\323\001\n\025FulfillInte"
-          + "ntResponse\022\023\n\013response_id\030\001 \001(\t\022@\n\014query"
-          + "_result\030\002 \001(\0132*.google.cloud.dialogflow."
-          + "cx.v3.QueryResult\022\024\n\014output_audio\030\003 \001(\014\022"
-          + "M\n\023output_audio_config\030\004 \001(\01320.google.cl"
-          + "oud.dialogflow.cx.v3.OutputAudioConfig\";"
-          + "\n\027SentimentAnalysisResult\022\r\n\005score\030\001 \001(\002"
-          + "\022\021\n\tmagnitude\030\002 \001(\0022\304\t\n\010Sessions\022\246\002\n\014Det"
-          + "ectIntent\0222.google.cloud.dialogflow.cx.v"
-          + "3.DetectIntentRequest\0323.google.cloud.dia"
-          + "logflow.cx.v3.DetectIntentResponse\"\254\001\202\323\344"
-          + "\223\002\245\001\"E/v3/{session=projects/*/locations/"
-          + "*/agents/*/sessions/*}:detectIntent:\001*ZY"
-          + "\"T/v3/{session=projects/*/locations/*/ag"
-          + "ents/*/environments/*/sessions/*}:detect"
-          + "Intent:\001*\022\230\001\n\025StreamingDetectIntent\022;.go"
-          + "ogle.cloud.dialogflow.cx.v3.StreamingDet"
-          + "ectIntentRequest\032<.google.cloud.dialogfl"
-          + "ow.cx.v3.StreamingDetectIntentResponse\"\000"
-          + "(\0010\001\022\241\002\n\013MatchIntent\0221.google.cloud.dial"
-          + "ogflow.cx.v3.MatchIntentRequest\0322.google"
-          + ".cloud.dialogflow.cx.v3.MatchIntentRespo"
-          + "nse\"\252\001\202\323\344\223\002\243\001\"D/v3/{session=projects/*/l"
-          + "ocations/*/agents/*/sessions/*}:matchInt"
-          + "ent:\001*ZX\"S/v3/{session=projects/*/locati"
+          + " \001(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\0228\n\004dtmf\030"
+          + "\027 \001(\0132(.google.cloud.dialogflow.cx.v3.Dt"
+          + "mfInputH\000\022\025\n\rlanguage_code\030\002 \001(\t\022+\n\npara"
+          + "meters\030\003 \001(\0132\027.google.protobuf.Struct\022I\n"
+          + "\021response_messages\030\004 \003(\0132..google.cloud."
+          + "dialogflow.cx.v3.ResponseMessage\022,\n\020webh"
+          + "ook_statuses\030\r \003(\0132\022.google.rpc.Status\0221"
+          + "\n\020webhook_payloads\030\006 \003(\0132\027.google.protob"
+          + "uf.Struct\0229\n\014current_page\030\007 \001(\0132#.google"
+          + ".cloud.dialogflow.cx.v3.Page\0229\n\006intent\030\010"
+          + " \001(\0132%.google.cloud.dialogflow.cx.v3.Int"
+          + "entB\002\030\001\022\'\n\033intent_detection_confidence\030\t"
+          + " \001(\002B\002\030\001\0223\n\005match\030\017 \001(\0132$.google.cloud.d"
+          + "ialogflow.cx.v3.Match\0220\n\017diagnostic_info"
+          + "\030\n \001(\0132\027.google.protobuf.Struct\022Y\n\031senti"
+          + "ment_analysis_result\030\021 \001(\01326.google.clou"
+          + "d.dialogflow.cx.v3.SentimentAnalysisResu"
+          + "ltB\007\n\005query\"\036\n\tTextInput\022\021\n\004text\030\001 \001(\tB\003"
+          + "\340A\002\"G\n\013IntentInput\0228\n\006intent\030\001 \001(\tB(\340A\002\372"
+          + "A\"\n dialogflow.googleapis.com/Intent\"a\n\n"
+          + "AudioInput\022D\n\006config\030\001 \001(\0132/.google.clou"
+          + "d.dialogflow.cx.v3.InputAudioConfigB\003\340A\002"
+          + "\022\r\n\005audio\030\002 \001(\014\"\033\n\nEventInput\022\r\n\005event\030\001"
+          + " \001(\t\"1\n\tDtmfInput\022\016\n\006digits\030\001 \001(\t\022\024\n\014fin"
+          + "ish_digit\030\002 \001(\t\"\361\002\n\005Match\0225\n\006intent\030\001 \001("
+          + "\0132%.google.cloud.dialogflow.cx.v3.Intent"
+          + "\022\r\n\005event\030\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.go"
+          + "ogle.protobuf.Struct\022\026\n\016resolved_input\030\003"
+          + " \001(\t\022B\n\nmatch_type\030\004 \001(\0162..google.cloud."
+          + "dialogflow.cx.v3.Match.MatchType\022\022\n\nconf"
+          + "idence\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TYPE"
+          + "_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_INT"
+          + "ENT\020\002\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MATCH"
+          + "\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\333\001\n\022MatchInt"
+          + "entRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dia"
+          + "logflow.googleapis.com/Session\022D\n\014query_"
+          + "params\030\002 \001(\0132..google.cloud.dialogflow.c"
+          + "x.v3.QueryParameters\022C\n\013query_input\030\003 \001("
+          + "\0132).google.cloud.dialogflow.cx.v3.QueryI"
+          + "nputB\003\340A\002\"\220\002\n\023MatchIntentResponse\022\016\n\004tex"
+          + "t\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(\tB%\372A\"\n "
+          + "dialogflow.googleapis.com/IntentH\000\022\024\n\ntr"
+          + "anscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006 \001(\tH"
+          + "\000\0225\n\007matches\030\004 \003(\0132$.google.cloud.dialog"
+          + "flow.cx.v3.Match\0229\n\014current_page\030\005 \001(\0132#"
+          + ".google.cloud.dialogflow.cx.v3.PageB\007\n\005q"
+          + "uery\"\353\001\n\024FulfillIntentRequest\022O\n\024match_i"
+          + "ntent_request\030\001 \001(\01321.google.cloud.dialo"
+          + "gflow.cx.v3.MatchIntentRequest\0223\n\005match\030"
+          + "\002 \001(\0132$.google.cloud.dialogflow.cx.v3.Ma"
+          + "tch\022M\n\023output_audio_config\030\003 \001(\01320.googl"
+          + "e.cloud.dialogflow.cx.v3.OutputAudioConf"
+          + "ig\"\323\001\n\025FulfillIntentResponse\022\023\n\013response"
+          + "_id\030\001 \001(\t\022@\n\014query_result\030\002 \001(\0132*.google"
+          + ".cloud.dialogflow.cx.v3.QueryResult\022\024\n\014o"
+          + "utput_audio\030\003 \001(\014\022M\n\023output_audio_config"
+          + "\030\004 \001(\01320.google.cloud.dialogflow.cx.v3.O"
+          + "utputAudioConfig\";\n\027SentimentAnalysisRes"
+          + "ult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\304\t"
+          + "\n\010Sessions\022\246\002\n\014DetectIntent\0222.google.clo"
+          + "ud.dialogflow.cx.v3.DetectIntentRequest\032"
+          + "3.google.cloud.dialogflow.cx.v3.DetectIn"
+          + "tentResponse\"\254\001\202\323\344\223\002\245\001\"E/v3/{session=pro"
+          + "jects/*/locations/*/agents/*/sessions/*}"
+          + ":detectIntent:\001*ZY\"T/v3/{session=project"
+          + "s/*/locations/*/agents/*/environments/*/"
+          + "sessions/*}:detectIntent:\001*\022\230\001\n\025Streamin"
+          + "gDetectIntent\022;.google.cloud.dialogflow."
+          + "cx.v3.StreamingDetectIntentRequest\032<.goo"
+          + "gle.cloud.dialogflow.cx.v3.StreamingDete"
+          + "ctIntentResponse\"\000(\0010\001\022\241\002\n\013MatchIntent\0221"
+          + ".google.cloud.dialogflow.cx.v3.MatchInte"
+          + "ntRequest\0322.google.cloud.dialogflow.cx.v"
+          + "3.MatchIntentResponse\"\252\001\202\323\344\223\002\243\001\"D/v3/{se"
+          + "ssion=projects/*/locations/*/agents/*/se"
+          + "ssions/*}:matchIntent:\001*ZX\"S/v3/{session"
+          + "=projects/*/locations/*/agents/*/environ"
+          + "ments/*/sessions/*}:matchIntent:\001*\022\325\002\n\rF"
+          + "ulfillIntent\0223.google.cloud.dialogflow.c"
+          + "x.v3.FulfillIntentRequest\0324.google.cloud"
+          + ".dialogflow.cx.v3.FulfillIntentResponse\""
+          + "\330\001\202\323\344\223\002\321\001\"[/v3/{match_intent_request.ses"
+          + "sion=projects/*/locations/*/agents/*/ses"
+          + "sions/*}:fulfillIntent:\001*Zo\"j/v3/{match_"
+          + "intent_request.session=projects/*/locati"
           + "ons/*/agents/*/environments/*/sessions/*"
-          + "}:matchIntent:\001*\022\325\002\n\rFulfillIntent\0223.goo"
-          + "gle.cloud.dialogflow.cx.v3.FulfillIntent"
-          + "Request\0324.google.cloud.dialogflow.cx.v3."
-          + "FulfillIntentResponse\"\330\001\202\323\344\223\002\321\001\"[/v3/{ma"
-          + "tch_intent_request.session=projects/*/lo"
-          + "cations/*/agents/*/sessions/*}:fulfillIn"
-          + "tent:\001*Zo\"j/v3/{match_intent_request.ses"
-          + "sion=projects/*/locations/*/agents/*/env"
-          + "ironments/*/sessions/*}:fulfillIntent:\001*"
-          + "\032x\312A\031dialogflow.googleapis.com\322AYhttps:/"
-          + "/www.googleapis.com/auth/cloud-platform,"
-          + "https://www.googleapis.com/auth/dialogfl"
-          + "owB\230\003\n!com.google.cloud.dialogflow.cx.v3"
-          + "B\014SessionProtoP\001Z?google.golang.org/genp"
-          + "roto/googleapis/cloud/dialogflow/cx/v3;c"
-          + "x\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V"
-          + "3\352\002!Google::Cloud::Dialogflow::CX::V3\352A\324"
-          + "\001\n!dialogflow.googleapis.com/Session\022Ipr"
-          + "ojects/{project}/locations/{location}/ag"
-          + "ents/{agent}/sessions/{session}\022dproject"
-          + "s/{project}/locations/{location}/agents/"
-          + "{agent}/environments/{environment}/sessi"
-          + "ons/{session}b\006proto3"
+          + "}:fulfillIntent:\001*\032x\312A\031dialogflow.google"
+          + "apis.com\322AYhttps://www.googleapis.com/au"
+          + "th/cloud-platform,https://www.googleapis"
+          + ".com/auth/dialogflowB\230\003\n!com.google.clou"
+          + "d.dialogflow.cx.v3B\014SessionProtoP\001Z?goog"
+          + "le.golang.org/genproto/googleapis/cloud/"
+          + "dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Clo"
+          + "ud.Dialogflow.Cx.V3\352\002!Google::Cloud::Dia"
+          + "logflow::CX::V3\352A\324\001\n!dialogflow.googleap"
+          + "is.com/Session\022Iprojects/{project}/locat"
+          + "ions/{location}/agents/{agent}/sessions/"
+          + "{session}\022dprojects/{project}/locations/"
+          + "{location}/agents/{agent}/environments/{"
+          + "environment}/sessions/{session}b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -418,6 +419,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "TriggerIntent",
               "Transcript",
               "TriggerEvent",
+              "Dtmf",
               "LanguageCode",
               "Parameters",
               "ResponseMessages",
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java
index 678436eed..8ac4c941a 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java
@@ -342,7 +342,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (endOffset_ != null) {
       output.writeMessage(2, getEndOffset());
     }
-    if (!getWordBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(word_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, word_);
     }
     if (confidence_ != 0F) {
@@ -363,7 +363,7 @@ public int getSerializedSize() {
     if (endOffset_ != null) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset());
     }
-    if (!getWordBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(word_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, word_);
     }
     if (confidence_ != 0F) {
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java
index 9239e124f..b03a8ed0e 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java
@@ -182,7 +182,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     unknownFields.writeTo(output);
@@ -194,7 +194,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java
index bca0d3e01..f8522cf00 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java
@@ -182,7 +182,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     unknownFields.writeTo(output);
@@ -194,7 +194,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java
index 13decc3cc..1d410b49f 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java
@@ -26,7 +26,7 @@
  * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
  * Multiple request messages should be sent in order:
  * 1.  The first message must contain
- * [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session],
+ *     [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session],
  *     [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] plus optionally
  *     [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. If the client
  *     wants to receive an audio response, it should also contain
@@ -450,7 +450,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getSessionBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_);
     }
     if (queryParams_ != null) {
@@ -474,7 +474,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getSessionBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_);
     }
     if (queryParams_ != null) {
@@ -655,7 +655,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
    * Multiple request messages should be sent in order:
    * 1.  The first message must contain
-   * [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session],
+   *     [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session],
    *     [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] plus optionally
    *     [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. If the client
    *     wants to receive an audio response, it should also contain
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java
index 7de422f30..920a60502 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java
@@ -22,18 +22,24 @@
  *
  *
  * 
- * The top-level message returned from the `StreamingDetectIntent` method.
- * Multiple response messages can be returned in order:
- * 1.  If the input was set to streaming audio, the first one or more messages
- *     contain `recognition_result`. Each `recognition_result` represents a more
- *     complete transcript of what the user said. The last `recognition_result`
- *     has `is_final` set to `true`.
- * 2.  If `enable_partial_response` is true, the following N messages
- *     (currently 1 <= N <= 4) contain `detect_intent_response`. The first (N-1)
- *     `detect_intent_response`s will have `response_type` set to `PARTIAL`.
- *     The last `detect_intent_response` has `response_type` set to `FINAL`.
- *     If `response_type` is false, response stream only contains
- *     the final `detect_intent_response`.
+ * The top-level message returned from the
+ * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
+ * Multiple response messages (N) can be returned in order.
+ * The first (N-1) responses set either the `recognition_result` or
+ * `detect_intent_response` field, depending on the request:
+ * *   If the `StreamingDetectIntentRequest.query_input.audio` field was
+ *     set, and the `StreamingDetectIntentRequest.enable_partial_response`
+ *     field was false, the `recognition_result` field is populated for each
+ *     of the (N-1) responses.
+ *     See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details
+ *     about the result message sequence.
+ * *   If the `StreamingDetectIntentRequest.enable_partial_response` field was
+ *     true, the `detect_intent_response` field is populated for each
+ *     of the (N-1) responses, where 1 <= N <= 4.
+ *     These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field
+ *     to `PARTIAL`.
+ * For the final Nth response message, the `detect_intent_response` is fully
+ * populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] is set to `FINAL`.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} @@ -500,18 +506,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The top-level message returned from the `StreamingDetectIntent` method.
-   * Multiple response messages can be returned in order:
-   * 1.  If the input was set to streaming audio, the first one or more messages
-   *     contain `recognition_result`. Each `recognition_result` represents a more
-   *     complete transcript of what the user said. The last `recognition_result`
-   *     has `is_final` set to `true`.
-   * 2.  If `enable_partial_response` is true, the following N messages
-   *     (currently 1 <= N <= 4) contain `detect_intent_response`. The first (N-1)
-   *     `detect_intent_response`s will have `response_type` set to `PARTIAL`.
-   *     The last `detect_intent_response` has `response_type` set to `FINAL`.
-   *     If `response_type` is false, response stream only contains
-   *     the final `detect_intent_response`.
+   * The top-level message returned from the
+   * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
+   * Multiple response messages (N) can be returned in order.
+   * The first (N-1) responses set either the `recognition_result` or
+   * `detect_intent_response` field, depending on the request:
+   * *   If the `StreamingDetectIntentRequest.query_input.audio` field was
+   *     set, and the `StreamingDetectIntentRequest.enable_partial_response`
+   *     field was false, the `recognition_result` field is populated for each
+   *     of the (N-1) responses.
+   *     See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details
+   *     about the result message sequence.
+   * *   If the `StreamingDetectIntentRequest.enable_partial_response` field was
+   *     true, the `detect_intent_response` field is populated for each
+   *     of the (N-1) responses, where 1 <= N <= 4.
+   *     These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field
+   *     to `PARTIAL`.
+   * For the final Nth response message, the `detect_intent_response` is fully
+   * populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] is set to `FINAL`.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java index ce8e85541..a4fbaf0c7 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java @@ -25,23 +25,34 @@ * Contains a speech recognition result corresponding to a portion of the audio * that is currently being processed or an indication that this is the end * of the single requested utterance. - * Example: - * 1. transcript: "tube" - * 2. transcript: "to be a" - * 3. transcript: "to be" - * 4. transcript: "to be or not to be" - * is_final: true - * 5. transcript: " that's" - * 6. transcript: " that is" - * 7. message_type: `END_OF_SINGLE_UTTERANCE` - * 8. transcript: " that is the question" - * is_final: true - * Only two of the responses contain final results (#4 and #8 indicated by - * `is_final: true`). Concatenating these generates the full transcript: "to be - * or not to be that is the question". - * In each response we populate: - * * for `TRANSCRIPT`: `transcript` and possibly `is_final`. - * * for `END_OF_SINGLE_UTTERANCE`: only `message_type`. + * While end-user audio is being processed, Dialogflow sends a series of + * results. Each result may contain a `transcript` value. A transcript + * represents a portion of the utterance. While the recognizer is processing + * audio, transcript values may be interim values or finalized values. + * Once a transcript is finalized, the `is_final` value is set to true and + * processing continues for the next transcript. + * If `StreamingDetectIntentRequest.query_input.audio.config.single_utterance` + * was true, and the recognizer has completed processing audio, + * the `message_type` value is set to `END_OF_SINGLE_UTTERANCE and the + * following (last) result contains the last finalized transcript. + * The complete end-user utterance is determined by concatenating the + * finalized transcript values received for the series of results. + * In the following example, single utterance is enabled. In the case where + * single utterance is not enabled, result 7 would not occur. + * ``` + * Num | transcript | message_type | is_final + * --- | ----------------------- | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | unset | END_OF_SINGLE_UTTERANCE | unset + * 8 | " that is the question" | TRANSCRIPT | true + * ``` + * Concatenating the finalized transcripts with `is_final` set to true, + * the complete utterance becomes "to be or not to be that is the question". *
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} @@ -730,7 +741,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, messageType_); } - if (!getTranscriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, transcript_); } if (isFinal_ != false) { @@ -748,7 +759,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (speechEndOffset_ != null) { output.writeMessage(8, getSpeechEndOffset()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, languageCode_); } unknownFields.writeTo(output); @@ -766,7 +777,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, messageType_); } - if (!getTranscriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, transcript_); } if (isFinal_ != false) { @@ -784,7 +795,7 @@ public int getSerializedSize() { if (speechEndOffset_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSpeechEndOffset()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, languageCode_); } size += unknownFields.getSerializedSize(); @@ -955,23 +966,34 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Contains a speech recognition result corresponding to a portion of the audio * that is currently being processed or an indication that this is the end * of the single requested utterance. - * Example: - * 1. transcript: "tube" - * 2. transcript: "to be a" - * 3. transcript: "to be" - * 4. transcript: "to be or not to be" - * is_final: true - * 5. transcript: " that's" - * 6. transcript: " that is" - * 7. message_type: `END_OF_SINGLE_UTTERANCE` - * 8. transcript: " that is the question" - * is_final: true - * Only two of the responses contain final results (#4 and #8 indicated by - * `is_final: true`). Concatenating these generates the full transcript: "to be - * or not to be that is the question". - * In each response we populate: - * * for `TRANSCRIPT`: `transcript` and possibly `is_final`. - * * for `END_OF_SINGLE_UTTERANCE`: only `message_type`. + * While end-user audio is being processed, Dialogflow sends a series of + * results. Each result may contain a `transcript` value. A transcript + * represents a portion of the utterance. While the recognizer is processing + * audio, transcript values may be interim values or finalized values. + * Once a transcript is finalized, the `is_final` value is set to true and + * processing continues for the next transcript. + * If `StreamingDetectIntentRequest.query_input.audio.config.single_utterance` + * was true, and the recognizer has completed processing audio, + * the `message_type` value is set to `END_OF_SINGLE_UTTERANCE and the + * following (last) result contains the last finalized transcript. + * The complete end-user utterance is determined by concatenating the + * finalized transcript values received for the series of results. + * In the following example, single utterance is enabled. In the case where + * single utterance is not enabled, result 7 would not occur. + * ``` + * Num | transcript | message_type | is_final + * --- | ----------------------- | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | unset | END_OF_SINGLE_UTTERANCE | unset + * 8 | " that is the question" | TRANSCRIPT | true + * ``` + * Concatenating the finalized transcripts with `is_final` set to true, + * the complete utterance becomes "to be or not to be that is the question". *
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java index 4fac6bfc6..cc355fe07 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java @@ -688,16 +688,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tags_.getRaw(i)); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } - if (!getNotesBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, notes_); } for (int i = 0; i < testCaseConversationTurns_.size(); i++) { @@ -721,7 +721,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } { @@ -732,10 +732,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTagsList().size(); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } - if (!getNotesBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, notes_); } for (int i = 0; i < testCaseConversationTurns_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java index ac4cc3476..2ef9537a5 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java @@ -436,10 +436,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environment_); } for (int i = 0; i < conversationTurns_.size(); i++) { @@ -461,10 +461,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environment_); } for (int i = 0; i < conversationTurns_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java index 2473ace9d..a7e421bed 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java @@ -257,7 +257,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < trackingParameters_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trackingParameters_.getRaw(i)); } - if (!getFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flow_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flow_); } unknownFields.writeTo(output); @@ -277,7 +277,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTrackingParametersList().size(); } - if (!getFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flow_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flow_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java index dda279013..e8cadd05b 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java @@ -295,7 +295,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTestCaseBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(testCase_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, testCase_); } if (status_ != null) { @@ -313,7 +313,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTestCaseBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(testCase_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, testCase_); } if (status_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java index 7c937156e..92fb422f0 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java @@ -428,7 +428,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, type_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } unknownFields.writeTo(output); @@ -445,7 +445,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java index 1c75ede4d..99c6ae8b9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTextBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTextBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java index a19c3f82a..e1894e01b 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java index 6d0f34c01..4d42eee70 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java @@ -606,10 +606,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intent_); } - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, condition_); } if (triggerFulfillment_ != null) { @@ -621,7 +621,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (targetCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, target_); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } unknownFields.writeTo(output); @@ -633,10 +633,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, intent_); } - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, condition_); } if (triggerFulfillment_ != null) { @@ -648,7 +648,7 @@ public int getSerializedSize() { if (targetCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java index e84672647..d80c3f1b1 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java @@ -331,10 +331,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } for (int i = 0; i < transitionRoutes_.size(); i++) { @@ -349,10 +349,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < transitionRoutes_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java index 2f01bac5f..2c5273978 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java @@ -324,7 +324,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (entityType_ != null) { output.writeMessage(1, getEntityType()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (updateMask_ != null) { @@ -342,7 +342,7 @@ public int getSerializedSize() { if (entityType_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntityType()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (updateMask_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java index 0b6f437b3..c529a060d 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java @@ -327,7 +327,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -345,7 +345,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java index 065bb3741..19bf7a6b8 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java @@ -323,7 +323,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (intent_ != null) { output.writeMessage(1, getIntent()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (updateMask_ != null) { @@ -341,7 +341,7 @@ public int getSerializedSize() { if (intent_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIntent()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (updateMask_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java index d9b469336..88923795e 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java @@ -340,7 +340,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (page_ != null) { output.writeMessage(1, getPage()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (updateMask_ != null) { @@ -358,7 +358,7 @@ public int getSerializedSize() { if (page_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPage()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (updateMask_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java index 70b2def11..856d8fa80 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java @@ -330,7 +330,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -349,7 +349,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java index 9898950ee..c50131b1e 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java @@ -237,10 +237,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -252,10 +252,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java index f4d637ea0..379efad78 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java @@ -239,10 +239,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -254,10 +254,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java index ff6e1e159..05e558bff 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java @@ -1028,7 +1028,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, severity_); } - if (!getDetailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, detail_); } for (int i = 0; i < resourceNames_.size(); i++) { @@ -1062,7 +1062,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, severity_); } - if (!getDetailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detail_); } for (int i = 0; i < resourceNames_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java index cb2577f59..671d88498 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java @@ -657,13 +657,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (nluSettings_ != null) { @@ -684,13 +684,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (nluSettings_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java index 7c451857e..bd6ea4cb7 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java @@ -63,6 +63,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_LoadVersionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_LoadVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -120,47 +128,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#\n!dialogflow.googleapis.com/Version\"u\n\022" + "LoadVersionRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" + "\n!dialogflow.googleapis.com/Version\022&\n\036a" - + "llow_override_agent_resources\030\002 \001(\0102\356\n\n\010" - + "Versions\022\307\001\n\014ListVersions\0222.google.cloud" - + ".dialogflow.cx.v3.ListVersionsRequest\0323." + + "llow_override_agent_resources\030\002 \001(\010\"\263\001\n\026" + + "CompareVersionsRequest\022?\n\014base_version\030\001" + + " \001(\tB)\340A\002\372A#\n!dialogflow.googleapis.com/" + + "Version\022A\n\016target_version\030\002 \001(\tB)\340A\002\372A#\n" + + "!dialogflow.googleapis.com/Version\022\025\n\rla" + + "nguage_code\030\003 \001(\t\"\223\001\n\027CompareVersionsRes" + + "ponse\022!\n\031base_version_content_json\030\001 \001(\t" + + "\022#\n\033target_version_content_json\030\002 \001(\t\0220\n" + + "\014compare_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp2\342\014\n\010Versions\022\307\001\n\014ListVersions\0222." + "google.cloud.dialogflow.cx.v3.ListVersio" - + "nsResponse\"N\202\323\344\223\002?\022=/v3/{parent=projects" - + "/*/locations/*/agents/*/flows/*}/version" - + "s\332A\006parent\022\264\001\n\nGetVersion\0220.google.cloud" - + ".dialogflow.cx.v3.GetVersionRequest\032&.go" - + "ogle.cloud.dialogflow.cx.v3.Version\"L\202\323\344" - + "\223\002?\022=/v3/{name=projects/*/locations/*/ag" - + "ents/*/flows/*/versions/*}\332A\004name\022\361\001\n\rCr" - + "eateVersion\0223.google.cloud.dialogflow.cx" - + ".v3.CreateVersionRequest\032\035.google.longru" - + "nning.Operation\"\213\001\202\323\344\223\002H\"=/v3/{parent=pr" - + "ojects/*/locations/*/agents/*/flows/*}/v" - + "ersions:\007version\332A\016parent,version\312A)\n\007Ve" - + "rsion\022\036CreateVersionOperationMetadata\022\332\001" - + "\n\rUpdateVersion\0223.google.cloud.dialogflo" - + "w.cx.v3.UpdateVersionRequest\032&.google.cl" - + "oud.dialogflow.cx.v3.Version\"l\202\323\344\223\002P2E/v" - + "3/{version.name=projects/*/locations/*/a" - + "gents/*/flows/*/versions/*}:\007version\332A\023v" - + "ersion,update_mask\022\252\001\n\rDeleteVersion\0223.g" - + "oogle.cloud.dialogflow.cx.v3.DeleteVersi" - + "onRequest\032\026.google.protobuf.Empty\"L\202\323\344\223\002" - + "?*=/v3/{name=projects/*/locations/*/agen" - + "ts/*/flows/*/versions/*}\332A\004name\022\350\001\n\013Load" - + "Version\0221.google.cloud.dialogflow.cx.v3." - + "LoadVersionRequest\032\035.google.longrunning." - + "Operation\"\206\001\202\323\344\223\002G\"B/v3/{name=projects/*" - + "/locations/*/agents/*/flows/*/versions/*" - + "}:load:\001*\332A\004name\312A/\n\025google.protobuf.Emp" - + "ty\022\026google.protobuf.Struct\032x\312A\031dialogflo" - + "w.googleapis.com\322AYhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/dialogflowB\300\001\n!com.goo" - + "gle.cloud.dialogflow.cx.v3B\014VersionProto" - + "P\001Z?google.golang.org/genproto/googleapi" - + "s/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Go" - + "ogle.Cloud.Dialogflow.Cx.V3\352\002!Google::Cl" - + "oud::Dialogflow::CX::V3b\006proto3" + + "nsRequest\0323.google.cloud.dialogflow.cx.v" + + "3.ListVersionsResponse\"N\202\323\344\223\002?\022=/v3/{par" + + "ent=projects/*/locations/*/agents/*/flow" + + "s/*}/versions\332A\006parent\022\264\001\n\nGetVersion\0220." + + "google.cloud.dialogflow.cx.v3.GetVersion" + + "Request\032&.google.cloud.dialogflow.cx.v3." + + "Version\"L\202\323\344\223\002?\022=/v3/{name=projects/*/lo" + + "cations/*/agents/*/flows/*/versions/*}\332A" + + "\004name\022\361\001\n\rCreateVersion\0223.google.cloud.d" + + "ialogflow.cx.v3.CreateVersionRequest\032\035.g" + + "oogle.longrunning.Operation\"\213\001\202\323\344\223\002H\"=/v" + + "3/{parent=projects/*/locations/*/agents/" + + "*/flows/*}/versions:\007version\332A\016parent,ve" + + "rsion\312A)\n\007Version\022\036CreateVersionOperatio" + + "nMetadata\022\332\001\n\rUpdateVersion\0223.google.clo" + + "ud.dialogflow.cx.v3.UpdateVersionRequest" + + "\032&.google.cloud.dialogflow.cx.v3.Version" + + "\"l\202\323\344\223\002P2E/v3/{version.name=projects/*/l" + + "ocations/*/agents/*/flows/*/versions/*}:" + + "\007version\332A\023version,update_mask\022\252\001\n\rDelet" + + "eVersion\0223.google.cloud.dialogflow.cx.v3" + + ".DeleteVersionRequest\032\026.google.protobuf." + + "Empty\"L\202\323\344\223\002?*=/v3/{name=projects/*/loca" + + "tions/*/agents/*/flows/*/versions/*}\332A\004n" + + "ame\022\350\001\n\013LoadVersion\0221.google.cloud.dialo" + + "gflow.cx.v3.LoadVersionRequest\032\035.google." + + "longrunning.Operation\"\206\001\202\323\344\223\002G\"B/v3/{nam" + + "e=projects/*/locations/*/agents/*/flows/" + + "*/versions/*}:load:\001*\332A\004name\312A/\n\025google." + + "protobuf.Empty\022\026google.protobuf.Struct\022\361" + + "\001\n\017CompareVersions\0225.google.cloud.dialog" + + "flow.cx.v3.CompareVersionsRequest\0326.goog" + + "le.cloud.dialogflow.cx.v3.CompareVersion" + + "sResponse\"o\202\323\344\223\002Z\"U/v3/{base_version=pro" + + "jects/*/locations/*/agents/*/flows/*/ver" + + "sions/*}:compareVersions:\001*\332A\014base_versi" + + "on\032x\312A\031dialogflow.googleapis.com\322AYhttps" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/dialog" + + "flowB\300\001\n!com.google.cloud.dialogflow.cx." + + "v3B\014VersionProtoP\001Z?google.golang.org/ge" + + "nproto/googleapis/cloud/dialogflow/cx/v3" + + ";cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx" + + ".V3\352\002!Google::Cloud::Dialogflow::CX::V3b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -253,6 +276,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "AllowOverrideAgentResources", }); + internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsRequest_descriptor, + new java.lang.String[] { + "BaseVersion", "TargetVersion", "LanguageCode", + }); + internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_CompareVersionsResponse_descriptor, + new java.lang.String[] { + "BaseVersionContentJson", "TargetVersionContentJson", "CompareTime", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java index 8724079e6..ba7a60607 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java @@ -390,7 +390,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } if (trafficAllocation_ != 0F) { @@ -408,7 +408,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } if (trafficAllocation_ != 0F) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java index e6a230129..27db81524 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java @@ -236,7 +236,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (ssmlGender_ @@ -253,7 +253,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (ssmlGender_ diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java index 640d77b5a..34e925bcc 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java @@ -326,6 +326,74 @@ java.lang.String getRequestHeadersOrDefault( * map<string, string> request_headers = 4; */ java.lang.String getRequestHeadersOrThrow(java.lang.String key); + + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedCaCerts. + */ + java.util.List getAllowedCaCertsList(); + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedCaCerts. + */ + int getAllowedCaCertsCount(); + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedCaCerts at the given index. + */ + com.google.protobuf.ByteString getAllowedCaCerts(int index); } /** * @@ -350,6 +418,7 @@ private GenericWebService() { uri_ = ""; username_ = ""; password_ = ""; + allowedCaCerts_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -420,6 +489,15 @@ private GenericWebService( .put(requestHeaders__.getKey(), requestHeaders__.getValue()); break; } + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + allowedCaCerts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + allowedCaCerts_.add(input.readBytes()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -434,6 +512,9 @@ private GenericWebService( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + allowedCaCerts_ = java.util.Collections.unmodifiableList(allowedCaCerts_); // C + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -721,6 +802,83 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) { return map.get(key); } + public static final int ALLOWED_CA_CERTS_FIELD_NUMBER = 5; + private java.util.List allowedCaCerts_; + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedCaCerts. + */ + @java.lang.Override + public java.util.List getAllowedCaCertsList() { + return allowedCaCerts_; + } + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedCaCerts. + */ + public int getAllowedCaCertsCount() { + return allowedCaCerts_.size(); + } + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedCaCerts at the given index. + */ + public com.google.protobuf.ByteString getAllowedCaCerts(int index) { + return allowedCaCerts_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -735,17 +893,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } - if (!getUsernameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } - if (!getPasswordBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, password_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetRequestHeaders(), RequestHeadersDefaultEntryHolder.defaultEntry, 4); + for (int i = 0; i < allowedCaCerts_.size(); i++) { + output.writeBytes(5, allowedCaCerts_.get(i)); + } unknownFields.writeTo(output); } @@ -755,13 +916,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } - if (!getUsernameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } - if (!getPasswordBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, password_); } for (java.util.Map.Entry entry : @@ -774,6 +935,15 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, requestHeaders__); } + { + int dataSize = 0; + for (int i = 0; i < allowedCaCerts_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(allowedCaCerts_.get(i)); + } + size += dataSize; + size += 1 * getAllowedCaCertsList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -794,6 +964,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; if (!internalGetRequestHeaders().equals(other.internalGetRequestHeaders())) return false; + if (!getAllowedCaCertsList().equals(other.getAllowedCaCertsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -815,6 +986,10 @@ public int hashCode() { hash = (37 * hash) + REQUEST_HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetRequestHeaders().hashCode(); } + if (getAllowedCaCertsCount() > 0) { + hash = (37 * hash) + ALLOWED_CA_CERTS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedCaCertsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -990,6 +1165,8 @@ public Builder clear() { password_ = ""; internalGetMutableRequestHeaders().clear(); + allowedCaCerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1024,6 +1201,11 @@ public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService buildPartial( result.password_ = password_; result.requestHeaders_ = internalGetRequestHeaders(); result.requestHeaders_.makeImmutable(); + if (((bitField0_ & 0x00000002) != 0)) { + allowedCaCerts_ = java.util.Collections.unmodifiableList(allowedCaCerts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.allowedCaCerts_ = allowedCaCerts_; onBuilt(); return result; } @@ -1090,6 +1272,16 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebSer onChanged(); } internalGetMutableRequestHeaders().mergeFrom(other.internalGetRequestHeaders()); + if (!other.allowedCaCerts_.isEmpty()) { + if (allowedCaCerts_.isEmpty()) { + allowedCaCerts_ = other.allowedCaCerts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAllowedCaCertsIsMutable(); + allowedCaCerts_.addAll(other.allowedCaCerts_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1622,6 +1814,211 @@ public Builder putAllRequestHeaders( return this; } + private java.util.List allowedCaCerts_ = + java.util.Collections.emptyList(); + + private void ensureAllowedCaCertsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + allowedCaCerts_ = + new java.util.ArrayList(allowedCaCerts_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedCaCerts. + */ + public java.util.List getAllowedCaCertsList() { + return ((bitField0_ & 0x00000002) != 0) + ? java.util.Collections.unmodifiableList(allowedCaCerts_) + : allowedCaCerts_; + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedCaCerts. + */ + public int getAllowedCaCertsCount() { + return allowedCaCerts_.size(); + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedCaCerts at the given index. + */ + public com.google.protobuf.ByteString getAllowedCaCerts(int index) { + return allowedCaCerts_.get(index); + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The allowedCaCerts to set. + * @return This builder for chaining. + */ + public Builder setAllowedCaCerts(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedCaCertsIsMutable(); + allowedCaCerts_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowedCaCerts to add. + * @return This builder for chaining. + */ + public Builder addAllowedCaCerts(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedCaCertsIsMutable(); + allowedCaCerts_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The allowedCaCerts to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedCaCerts( + java.lang.Iterable values) { + ensureAllowedCaCertsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedCaCerts_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowedCaCerts() { + allowedCaCerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1999,7 +2396,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (genericWebService_ != null) { @@ -2014,7 +2411,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (genericWebService_ != null) { @@ -3088,10 +3485,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (webhookCase_ == 4) { @@ -3117,10 +3514,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (webhookCase_ == 4) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java index 3cc0e3ff3..21055b4c4 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java @@ -137,148 +137,150 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\036google/protobuf/duration.proto\032\033g" + "oogle/protobuf/empty.proto\032 google/proto" + "buf/field_mask.proto\032\034google/protobuf/st" - + "ruct.proto\"\311\006\n\007Webhook\022\014\n\004name\030\001 \001(\t\022\031\n\014" + + "ruct.proto\"\350\006\n\007Webhook\022\014\n\004name\030\001 \001(\t\022\031\n\014" + "display_name\030\002 \001(\tB\003\340A\002\022W\n\023generic_web_s" + "ervice\030\004 \001(\01328.google.cloud.dialogflow.c" + "x.v3.Webhook.GenericWebServiceH\000\022Z\n\021serv" + "ice_directory\030\007 \001(\0132=.google.cloud.dialo" + "gflow.cx.v3.Webhook.ServiceDirectoryConf" + "igH\000\022*\n\007timeout\030\006 \001(\0132\031.google.protobuf." - + "Duration\022\020\n\010disabled\030\005 \001(\010\032\357\001\n\021GenericWe" + + "Duration\022\020\n\010disabled\030\005 \001(\010\032\216\002\n\021GenericWe" + "bService\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\024\n\010username\030\002" + " \001(\tB\002\030\001\022\024\n\010password\030\003 \001(\tB\002\030\001\022e\n\017reques" + "t_headers\030\004 \003(\0132L.google.cloud.dialogflo" + "w.cx.v3.Webhook.GenericWebService.Reques" - + "tHeadersEntry\0325\n\023RequestHeadersEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\261\001\n\026Service" - + "DirectoryConfig\022@\n\007service\030\001 \001(\tB/\340A\002\372A)" - + "\n\'servicedirectory.googleapis.com/Servic" - + "e\022U\n\023generic_web_service\030\002 \001(\01328.google." - + "cloud.dialogflow.cx.v3.Webhook.GenericWe" - + "bService:q\352An\n!dialogflow.googleapis.com" - + "/Webhook\022Iprojects/{project}/locations/{" - + "location}/agents/{agent}/webhooks/{webho" - + "ok}B\t\n\007webhook\"w\n\023ListWebhooksRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\022!dialogflow.google" - + "apis.com/Webhook\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\"i\n\024ListWebhooksResponse\022" - + "8\n\010webhooks\030\001 \003(\0132&.google.cloud.dialogf" - + "low.cx.v3.Webhook\022\027\n\017next_page_token\030\002 \001" - + "(\t\"L\n\021GetWebhookRequest\0227\n\004name\030\001 \001(\tB)\340" - + "A\002\372A#\n!dialogflow.googleapis.com/Webhook" - + "\"\217\001\n\024CreateWebhookRequest\0229\n\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\022!dialogflow.googleapis.com/Web" - + "hook\022<\n\007webhook\030\002 \001(\0132&.google.cloud.dia" - + "logflow.cx.v3.WebhookB\003\340A\002\"\205\001\n\024UpdateWeb" - + "hookRequest\022<\n\007webhook\030\001 \001(\0132&.google.cl" - + "oud.dialogflow.cx.v3.WebhookB\003\340A\002\022/\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "sk\"^\n\024DeleteWebhookRequest\0227\n\004name\030\001 \001(\t" - + "B)\340A\002\372A#\n!dialogflow.googleapis.com/Webh" - + "ook\022\r\n\005force\030\002 \001(\010\"\352\t\n\016WebhookRequest\022!\n" - + "\031detect_intent_response_id\030\001 \001(\t\022\016\n\004text" - + "\030\n \001(\tH\000\022?\n\016trigger_intent\030\013 \001(\tB%\372A\"\n d" - + "ialogflow.googleapis.com/IntentH\000\022\024\n\ntra" - + "nscript\030\014 \001(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000" - + "\022\025\n\rlanguage_code\030\017 \001(\t\022W\n\020fulfillment_i" - + "nfo\030\006 \001(\0132=.google.cloud.dialogflow.cx.v" - + "3.WebhookRequest.FulfillmentInfo\022M\n\013inte" - + "nt_info\030\003 \001(\01328.google.cloud.dialogflow." - + "cx.v3.WebhookRequest.IntentInfo\022:\n\tpage_" - + "info\030\004 \001(\0132\'.google.cloud.dialogflow.cx." - + "v3.PageInfo\022@\n\014session_info\030\005 \001(\0132*.goog" - + "le.cloud.dialogflow.cx.v3.SessionInfo\022@\n" - + "\010messages\030\007 \003(\0132..google.cloud.dialogflo" - + "w.cx.v3.ResponseMessage\022(\n\007payload\030\010 \001(\013" - + "2\027.google.protobuf.Struct\022h\n\031sentiment_a" - + "nalysis_result\030\t \001(\0132E.google.cloud.dial" - + "ogflow.cx.v3.WebhookRequest.SentimentAna" - + "lysisResult\032\036\n\017FulfillmentInfo\022\013\n\003tag\030\001 " - + "\001(\t\032\273\003\n\nIntentInfo\022B\n\023last_matched_inten" - + "t\030\001 \001(\tB%\372A\"\n dialogflow.googleapis.com/" - + "Intent\022\024\n\014display_name\030\003 \001(\t\022\\\n\nparamete" - + "rs\030\002 \003(\0132H.google.cloud.dialogflow.cx.v3" - + ".WebhookRequest.IntentInfo.ParametersEnt" - + "ry\022\022\n\nconfidence\030\004 \001(\002\032^\n\024IntentParamete" - + "rValue\022\026\n\016original_value\030\001 \001(\t\022.\n\016resolv" - + "ed_value\030\002 \001(\0132\026.google.protobuf.Value\032\200" - + "\001\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\\\n\005value" - + "\030\002 \001(\0132M.google.cloud.dialogflow.cx.v3.W" - + "ebhookRequest.IntentInfo.IntentParameter" - + "Value:\0028\001\032;\n\027SentimentAnalysisResult\022\r\n\005" - + "score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\002B\007\n\005query\"" - + "\257\005\n\017WebhookResponse\022`\n\024fulfillment_respo" - + "nse\030\001 \001(\0132B.google.cloud.dialogflow.cx.v" - + "3.WebhookResponse.FulfillmentResponse\022:\n" - + "\tpage_info\030\002 \001(\0132\'.google.cloud.dialogfl" - + "ow.cx.v3.PageInfo\022@\n\014session_info\030\003 \001(\0132" - + "*.google.cloud.dialogflow.cx.v3.SessionI" - + "nfo\022(\n\007payload\030\004 \001(\0132\027.google.protobuf.S" - + "truct\022:\n\013target_page\030\005 \001(\tB#\372A \n\036dialogf" - + "low.googleapis.com/PageH\000\022:\n\013target_flow" - + "\030\006 \001(\tB#\372A \n\036dialogflow.googleapis.com/F" - + "lowH\000\032\213\002\n\023FulfillmentResponse\022@\n\010message" - + "s\030\001 \003(\0132..google.cloud.dialogflow.cx.v3." - + "ResponseMessage\022h\n\016merge_behavior\030\002 \001(\0162" - + "P.google.cloud.dialogflow.cx.v3.WebhookR" - + "esponse.FulfillmentResponse.MergeBehavio" - + "r\"H\n\rMergeBehavior\022\036\n\032MERGE_BEHAVIOR_UNS" - + "PECIFIED\020\000\022\n\n\006APPEND\020\001\022\013\n\007REPLACE\020\002B\014\n\nt" - + "ransition\"\235\004\n\010PageInfo\0229\n\014current_page\030\001" - + " \001(\tB#\372A \n\036dialogflow.googleapis.com/Pag" - + "e\022C\n\tform_info\030\003 \001(\01320.google.cloud.dial" - + "ogflow.cx.v3.PageInfo.FormInfo\032\220\003\n\010FormI" - + "nfo\022V\n\016parameter_info\030\002 \003(\0132>.google.clo" - + "ud.dialogflow.cx.v3.PageInfo.FormInfo.Pa" - + "rameterInfo\032\253\002\n\rParameterInfo\022\024\n\014display" - + "_name\030\001 \001(\t\022\020\n\010required\030\002 \001(\010\022\\\n\005state\030\003" - + " \001(\0162M.google.cloud.dialogflow.cx.v3.Pag" - + "eInfo.FormInfo.ParameterInfo.ParameterSt" - + "ate\022%\n\005value\030\004 \001(\0132\026.google.protobuf.Val" - + "ue\022\026\n\016just_collected\030\005 \001(\010\"U\n\016ParameterS" - + "tate\022\037\n\033PARAMETER_STATE_UNSPECIFIED\020\000\022\t\n" - + "\005EMPTY\020\001\022\013\n\007INVALID\020\002\022\n\n\006FILLED\020\003\"\341\001\n\013Se" - + "ssionInfo\0227\n\007session\030\001 \001(\tB&\372A#\n!dialogf" - + "low.googleapis.com/Session\022N\n\nparameters" - + "\030\002 \003(\0132:.google.cloud.dialogflow.cx.v3.S" - + "essionInfo.ParametersEntry\032I\n\017Parameters" - + "Entry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goog" - + "le.protobuf.Value:\0028\0012\267\010\n\010Webhooks\022\277\001\n\014L" - + "istWebhooks\0222.google.cloud.dialogflow.cx" - + ".v3.ListWebhooksRequest\0323.google.cloud.d" - + "ialogflow.cx.v3.ListWebhooksResponse\"F\202\323" - + "\344\223\0027\0225/v3/{parent=projects/*/locations/*" - + "/agents/*}/webhooks\332A\006parent\022\254\001\n\nGetWebh" - + "ook\0220.google.cloud.dialogflow.cx.v3.GetW" - + "ebhookRequest\032&.google.cloud.dialogflow." - + "cx.v3.Webhook\"D\202\323\344\223\0027\0225/v3/{name=project" - + "s/*/locations/*/agents/*/webhooks/*}\332A\004n" - + "ame\022\305\001\n\rCreateWebhook\0223.google.cloud.dia" - + "logflow.cx.v3.CreateWebhookRequest\032&.goo" - + "gle.cloud.dialogflow.cx.v3.Webhook\"W\202\323\344\223" - + "\002@\"5/v3/{parent=projects/*/locations/*/a" - + "gents/*}/webhooks:\007webhook\332A\016parent,webh" - + "ook\022\322\001\n\rUpdateWebhook\0223.google.cloud.dia" - + "logflow.cx.v3.UpdateWebhookRequest\032&.goo" - + "gle.cloud.dialogflow.cx.v3.Webhook\"d\202\323\344\223" - + "\002H2=/v3/{webhook.name=projects/*/locatio" - + "ns/*/agents/*/webhooks/*}:\007webhook\332A\023web" - + "hook,update_mask\022\242\001\n\rDeleteWebhook\0223.goo" - + "gle.cloud.dialogflow.cx.v3.DeleteWebhook" - + "Request\032\026.google.protobuf.Empty\"D\202\323\344\223\0027*" - + "5/v3/{name=projects/*/locations/*/agents" - + "/*/webhooks/*}\332A\004name\032x\312A\031dialogflow.goo" - + "gleapis.com\322AYhttps://www.googleapis.com" - + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/dialogflowB\277\002\n!com.google.c" - + "loud.dialogflow.cx.v3B\014WebhookProtoP\001Z?g" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google." - + "Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud::" - + "Dialogflow::CX::V3\352A|\n\'servicedirectory." - + "googleapis.com/Service\022Qprojects/{projec" - + "t}/locations/{location}/namespaces/{name" - + "space}/services/{service}b\006proto3" + + "tHeadersEntry\022\035\n\020allowed_ca_certs\030\005 \003(\014B" + + "\003\340A\001\0325\n\023RequestHeadersEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\032\261\001\n\026ServiceDirectory" + + "Config\022@\n\007service\030\001 \001(\tB/\340A\002\372A)\n\'service" + + "directory.googleapis.com/Service\022U\n\023gene" + + "ric_web_service\030\002 \001(\01328.google.cloud.dia" + + "logflow.cx.v3.Webhook.GenericWebService:" + + "q\352An\n!dialogflow.googleapis.com/Webhook\022" + + "Iprojects/{project}/locations/{location}" + + "/agents/{agent}/webhooks/{webhook}B\t\n\007we" + + "bhook\"w\n\023ListWebhooksRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\022!dialogflow.googleapis.com/" + + "Webhook\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"i\n\024ListWebhooksResponse\0228\n\010webhoo" + + "ks\030\001 \003(\0132&.google.cloud.dialogflow.cx.v3" + + ".Webhook\022\027\n\017next_page_token\030\002 \001(\t\"L\n\021Get" + + "WebhookRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!di" + + "alogflow.googleapis.com/Webhook\"\217\001\n\024Crea" + + "teWebhookRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\022!dialogflow.googleapis.com/Webhook\022<\n\007w" + + "ebhook\030\002 \001(\0132&.google.cloud.dialogflow.c" + + "x.v3.WebhookB\003\340A\002\"\205\001\n\024UpdateWebhookReque" + + "st\022<\n\007webhook\030\001 \001(\0132&.google.cloud.dialo" + + "gflow.cx.v3.WebhookB\003\340A\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"^\n\024Del" + + "eteWebhookRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n" + + "!dialogflow.googleapis.com/Webhook\022\r\n\005fo" + + "rce\030\002 \001(\010\"\352\t\n\016WebhookRequest\022!\n\031detect_i" + + "ntent_response_id\030\001 \001(\t\022\016\n\004text\030\n \001(\tH\000\022" + + "?\n\016trigger_intent\030\013 \001(\tB%\372A\"\n dialogflow" + + ".googleapis.com/IntentH\000\022\024\n\ntranscript\030\014" + + " \001(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\022\025\n\rlangu" + + "age_code\030\017 \001(\t\022W\n\020fulfillment_info\030\006 \001(\013" + + "2=.google.cloud.dialogflow.cx.v3.Webhook" + + "Request.FulfillmentInfo\022M\n\013intent_info\030\003" + + " \001(\01328.google.cloud.dialogflow.cx.v3.Web" + + "hookRequest.IntentInfo\022:\n\tpage_info\030\004 \001(" + + "\0132\'.google.cloud.dialogflow.cx.v3.PageIn" + + "fo\022@\n\014session_info\030\005 \001(\0132*.google.cloud." + + "dialogflow.cx.v3.SessionInfo\022@\n\010messages" + + "\030\007 \003(\0132..google.cloud.dialogflow.cx.v3.R" + + "esponseMessage\022(\n\007payload\030\010 \001(\0132\027.google" + + ".protobuf.Struct\022h\n\031sentiment_analysis_r" + + "esult\030\t \001(\0132E.google.cloud.dialogflow.cx" + + ".v3.WebhookRequest.SentimentAnalysisResu" + + "lt\032\036\n\017FulfillmentInfo\022\013\n\003tag\030\001 \001(\t\032\273\003\n\nI" + + "ntentInfo\022B\n\023last_matched_intent\030\001 \001(\tB%" + + "\372A\"\n dialogflow.googleapis.com/Intent\022\024\n" + + "\014display_name\030\003 \001(\t\022\\\n\nparameters\030\002 \003(\0132" + + "H.google.cloud.dialogflow.cx.v3.WebhookR" + + "equest.IntentInfo.ParametersEntry\022\022\n\ncon" + + "fidence\030\004 \001(\002\032^\n\024IntentParameterValue\022\026\n" + + "\016original_value\030\001 \001(\t\022.\n\016resolved_value\030" + + "\002 \001(\0132\026.google.protobuf.Value\032\200\001\n\017Parame" + + "tersEntry\022\013\n\003key\030\001 \001(\t\022\\\n\005value\030\002 \001(\0132M." + + "google.cloud.dialogflow.cx.v3.WebhookReq" + + "uest.IntentInfo.IntentParameterValue:\0028\001" + + "\032;\n\027SentimentAnalysisResult\022\r\n\005score\030\001 \001" + + "(\002\022\021\n\tmagnitude\030\002 \001(\002B\007\n\005query\"\257\005\n\017Webho" + + "okResponse\022`\n\024fulfillment_response\030\001 \001(\013" + + "2B.google.cloud.dialogflow.cx.v3.Webhook" + + "Response.FulfillmentResponse\022:\n\tpage_inf" + + "o\030\002 \001(\0132\'.google.cloud.dialogflow.cx.v3." + + "PageInfo\022@\n\014session_info\030\003 \001(\0132*.google." + + "cloud.dialogflow.cx.v3.SessionInfo\022(\n\007pa" + + "yload\030\004 \001(\0132\027.google.protobuf.Struct\022:\n\013" + + "target_page\030\005 \001(\tB#\372A \n\036dialogflow.googl" + + "eapis.com/PageH\000\022:\n\013target_flow\030\006 \001(\tB#\372" + + "A \n\036dialogflow.googleapis.com/FlowH\000\032\213\002\n" + + "\023FulfillmentResponse\022@\n\010messages\030\001 \003(\0132." + + ".google.cloud.dialogflow.cx.v3.ResponseM" + + "essage\022h\n\016merge_behavior\030\002 \001(\0162P.google." + + "cloud.dialogflow.cx.v3.WebhookResponse.F" + + "ulfillmentResponse.MergeBehavior\"H\n\rMerg" + + "eBehavior\022\036\n\032MERGE_BEHAVIOR_UNSPECIFIED\020" + + "\000\022\n\n\006APPEND\020\001\022\013\n\007REPLACE\020\002B\014\n\ntransition" + + "\"\263\004\n\010PageInfo\0229\n\014current_page\030\001 \001(\tB#\372A " + + "\n\036dialogflow.googleapis.com/Page\022\024\n\014disp" + + "lay_name\030\004 \001(\t\022C\n\tform_info\030\003 \001(\01320.goog" + + "le.cloud.dialogflow.cx.v3.PageInfo.FormI" + + "nfo\032\220\003\n\010FormInfo\022V\n\016parameter_info\030\002 \003(\013" + + "2>.google.cloud.dialogflow.cx.v3.PageInf" + + "o.FormInfo.ParameterInfo\032\253\002\n\rParameterIn" + + "fo\022\024\n\014display_name\030\001 \001(\t\022\020\n\010required\030\002 \001" + + "(\010\022\\\n\005state\030\003 \001(\0162M.google.cloud.dialogf" + + "low.cx.v3.PageInfo.FormInfo.ParameterInf" + + "o.ParameterState\022%\n\005value\030\004 \001(\0132\026.google" + + ".protobuf.Value\022\026\n\016just_collected\030\005 \001(\010\"" + + "U\n\016ParameterState\022\037\n\033PARAMETER_STATE_UNS" + + "PECIFIED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INVALID\020\002\022\n\n\006FI" + + "LLED\020\003\"\341\001\n\013SessionInfo\0227\n\007session\030\001 \001(\tB" + + "&\372A#\n!dialogflow.googleapis.com/Session\022" + + "N\n\nparameters\030\002 \003(\0132:.google.cloud.dialo" + + "gflow.cx.v3.SessionInfo.ParametersEntry\032" + + "I\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value" + + "\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\267\010\n\010W" + + "ebhooks\022\277\001\n\014ListWebhooks\0222.google.cloud." + + "dialogflow.cx.v3.ListWebhooksRequest\0323.g" + + "oogle.cloud.dialogflow.cx.v3.ListWebhook" + + "sResponse\"F\202\323\344\223\0027\0225/v3/{parent=projects/" + + "*/locations/*/agents/*}/webhooks\332A\006paren" + + "t\022\254\001\n\nGetWebhook\0220.google.cloud.dialogfl" + + "ow.cx.v3.GetWebhookRequest\032&.google.clou" + + "d.dialogflow.cx.v3.Webhook\"D\202\323\344\223\0027\0225/v3/" + + "{name=projects/*/locations/*/agents/*/we" + + "bhooks/*}\332A\004name\022\305\001\n\rCreateWebhook\0223.goo" + + "gle.cloud.dialogflow.cx.v3.CreateWebhook" + + "Request\032&.google.cloud.dialogflow.cx.v3." + + "Webhook\"W\202\323\344\223\002@\"5/v3/{parent=projects/*/" + + "locations/*/agents/*}/webhooks:\007webhook\332" + + "A\016parent,webhook\022\322\001\n\rUpdateWebhook\0223.goo" + + "gle.cloud.dialogflow.cx.v3.UpdateWebhook" + + "Request\032&.google.cloud.dialogflow.cx.v3." + + "Webhook\"d\202\323\344\223\002H2=/v3/{webhook.name=proje" + + "cts/*/locations/*/agents/*/webhooks/*}:\007" + + "webhook\332A\023webhook,update_mask\022\242\001\n\rDelete" + + "Webhook\0223.google.cloud.dialogflow.cx.v3." + + "DeleteWebhookRequest\032\026.google.protobuf.E" + + "mpty\"D\202\323\344\223\0027*5/v3/{name=projects/*/locat" + + "ions/*/agents/*/webhooks/*}\332A\004name\032x\312A\031d" + + "ialogflow.googleapis.com\322AYhttps://www.g" + + "oogleapis.com/auth/cloud-platform,https:" + + "//www.googleapis.com/auth/dialogflowB\277\002\n" + + "!com.google.cloud.dialogflow.cx.v3B\014Webh" + + "ookProtoP\001Z?google.golang.org/genproto/g" + + "oogleapis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002" + + "\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Go" + + "ogle::Cloud::Dialogflow::CX::V3\352A|\n\'serv" + + "icedirectory.googleapis.com/Service\022Qpro" + + "jects/{project}/locations/{location}/nam" + + "espaces/{namespace}/services/{service}b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -314,7 +316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_descriptor, new java.lang.String[] { - "Uri", "Username", "Password", "RequestHeaders", + "Uri", "Username", "Password", "RequestHeaders", "AllowedCaCerts", }); internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_RequestHeadersEntry_descriptor = internal_static_google_cloud_dialogflow_cx_v3_Webhook_GenericWebService_descriptor @@ -483,7 +485,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_PageInfo_descriptor, new java.lang.String[] { - "CurrentPage", "FormInfo", + "CurrentPage", "DisplayName", "FormInfo", }); internal_static_google_cloud_dialogflow_cx_v3_PageInfo_FormInfo_descriptor = internal_static_google_cloud_dialogflow_cx_v3_PageInfo_descriptor.getNestedTypes().get(0); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java index 811697319..6f1923a61 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java @@ -456,7 +456,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_); } unknownFields.writeTo(output); @@ -468,7 +468,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tag_); } size += unknownFields.getSerializedSize(); @@ -1535,7 +1535,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getOriginalValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, originalValue_); } if (resolvedValue_ != null) { @@ -1550,7 +1550,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOriginalValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, originalValue_); } if (resolvedValue_ != null) { @@ -2547,12 +2547,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getLastMatchedIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastMatchedIntent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lastMatchedIntent_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 2); - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } if (confidence_ != 0F) { @@ -2567,7 +2567,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getLastMatchedIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastMatchedIntent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lastMatchedIntent_); } for (java.util.Map.Entry< @@ -2585,7 +2585,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters__); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (confidence_ != 0F) { @@ -5051,7 +5051,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDetectIntentResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectIntentResponseId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, detectIntentResponseId_); } if (intentInfo_ != null) { @@ -5087,7 +5087,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queryCase_ == 14) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, query_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, languageCode_); } unknownFields.writeTo(output); @@ -5099,7 +5099,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDetectIntentResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectIntentResponseId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, detectIntentResponseId_); } if (intentInfo_ != null) { @@ -5136,7 +5136,7 @@ public int getSerializedSize() { if (queryCase_ == 14) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, query_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java deleted file mode 100644 index 3a3f39a7f..000000000 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public interface ListLocationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The standard list filter.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * The standard list filter.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * The standard list page size.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * The standard list page token.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * The standard list page token.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java deleted file mode 100644 index 8e7553c0c..000000000 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java +++ /dev/null @@ -1,1126 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -/** - * - * - *
- * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
- * 
- * - * Protobuf type {@code google.cloud.location.ListLocationsResponse} - */ -public final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsResponse) - ListLocationsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListLocationsResponse.newBuilder() to construct. - private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListLocationsResponse() { - locations_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListLocationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListLocationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add( - input.readMessage( - com.google.cloud.location.Location.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, - com.google.cloud.location.ListLocationsResponse.Builder.class); - } - - public static final int LOCATIONS_FIELD_NUMBER = 1; - private java.util.List locations_; - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public java.util.List getLocationsList() { - return locations_; - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public java.util.List - getLocationsOrBuilderList() { - return locations_; - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public com.google.cloud.location.Location getLocations(int index) { - return locations_.get(index); - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { - return locations_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < locations_.size(); i++) { - output.writeMessage(1, locations_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < locations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.location.ListLocationsResponse)) { - return super.equals(obj); - } - com.google.cloud.location.ListLocationsResponse other = - (com.google.cloud.location.ListLocationsResponse) obj; - - if (!getLocationsList().equals(other.getLocationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.location.ListLocationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * Protobuf type {@code google.cloud.location.ListLocationsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.ListLocationsResponse) - com.google.cloud.location.ListLocationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, - com.google.cloud.location.ListLocationsResponse.Builder.class); - } - - // Construct using com.google.cloud.location.ListLocationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLocationsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - locationsBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse getDefaultInstanceForType() { - return com.google.cloud.location.ListLocationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse build() { - com.google.cloud.location.ListLocationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse buildPartial() { - com.google.cloud.location.ListLocationsResponse result = - new com.google.cloud.location.ListLocationsResponse(this); - int from_bitField0_ = bitField0_; - if (locationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - } else { - result.locations_ = locationsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.ListLocationsResponse) { - return mergeFrom((com.google.cloud.location.ListLocationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) { - if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) - return this; - if (locationsBuilder_ == null) { - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - } else { - if (!other.locations_.isEmpty()) { - if (locationsBuilder_.isEmpty()) { - locationsBuilder_.dispose(); - locationsBuilder_ = null; - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; - } else { - locationsBuilder_.addAllMessages(other.locations_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.location.ListLocationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.ListLocationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List locations_ = - java.util.Collections.emptyList(); - - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder> - locationsBuilder_; - - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public java.util.List getLocationsList() { - if (locationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(locations_); - } else { - return locationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public int getLocationsCount() { - if (locationsBuilder_ == null) { - return locations_.size(); - } else { - return locationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location getLocations(int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); - } else { - return locationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder setLocations(int index, com.google.cloud.location.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - } else { - locationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder setLocations( - int index, com.google.cloud.location.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.set(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations(com.google.cloud.location.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - } else { - locationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations(int index, com.google.cloud.location.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(index, value); - onChanged(); - } else { - locationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations(com.google.cloud.location.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations( - int index, com.google.cloud.location.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addAllLocations( - java.lang.Iterable values) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); - onChanged(); - } else { - locationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder clearLocations() { - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - locationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder removeLocations(int index) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.remove(index); - onChanged(); - } else { - locationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location.Builder getLocationsBuilder(int index) { - return getLocationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); - } else { - return locationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public java.util.List - getLocationsOrBuilderList() { - if (locationsBuilder_ != null) { - return locationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(locations_); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location.Builder addLocationsBuilder() { - return getLocationsFieldBuilder() - .addBuilder(com.google.cloud.location.Location.getDefaultInstance()); - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location.Builder addLocationsBuilder(int index) { - return getLocationsFieldBuilder() - .addBuilder(index, com.google.cloud.location.Location.getDefaultInstance()); - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public java.util.List getLocationsBuilderList() { - return getLocationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder> - getLocationsFieldBuilder() { - if (locationsBuilder_ == null) { - locationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder>( - locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - locations_ = null; - } - return locationsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsResponse) - private static final com.google.cloud.location.ListLocationsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsResponse(); - } - - public static com.google.cloud.location.ListLocationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java deleted file mode 100644 index 704771cc4..000000000 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public interface ListLocationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - java.util.List getLocationsList(); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - com.google.cloud.location.Location getLocations(int index); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - int getLocationsCount(); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - java.util.List getLocationsOrBuilderList(); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index); - - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/Location.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/Location.java deleted file mode 100644 index 7b7bfc864..000000000 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/Location.java +++ /dev/null @@ -1,1615 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -/** - * - * - *
- * A resource that represents Google Cloud Platform location.
- * 
- * - * Protobuf type {@code google.cloud.location.Location} - */ -public final class Location extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.location.Location) - LocationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Location.newBuilder() to construct. - private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Location() { - name_ = ""; - locationId_ = ""; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Location(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Location( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 26: - { - com.google.protobuf.Any.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - locationId_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, - com.google.cloud.location.Location.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object locationId_; - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The locationId. - */ - @java.lang.Override - public java.lang.String getLocationId() { - java.lang.Object ref = locationId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - locationId_ = s; - return s; - } - } - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The bytes for locationId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationIdBytes() { - java.lang.Object ref = locationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - locationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 2; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private com.google.protobuf.Any metadata_; - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Any getMetadata() { - return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; - } - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - if (!getLocationIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_); - } - if (!getDisplayNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); - } - if (!getLocationIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_); - } - if (!getDisplayNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.location.Location)) { - return super.equals(obj); - } - com.google.cloud.location.Location other = (com.google.cloud.location.Location) obj; - - if (!getName().equals(other.getName())) return false; - if (!getLocationId().equals(other.getLocationId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getLocationId().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.location.Location parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.Location parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.Location parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.Location parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.Location parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.Location parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.Location parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.Location parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.location.Location parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.location.Location parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.location.Location parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.Location parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.location.Location prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A resource that represents Google Cloud Platform location.
-   * 
- * - * Protobuf type {@code google.cloud.location.Location} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.Location) - com.google.cloud.location.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, - com.google.cloud.location.Location.Builder.class); - } - - // Construct using com.google.cloud.location.Location.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - locationId_ = ""; - - displayName_ = ""; - - internalGetMutableLabels().clear(); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; - } - - @java.lang.Override - public com.google.cloud.location.Location getDefaultInstanceForType() { - return com.google.cloud.location.Location.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.location.Location build() { - com.google.cloud.location.Location result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.location.Location buildPartial() { - com.google.cloud.location.Location result = new com.google.cloud.location.Location(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.locationId_ = locationId_; - result.displayName_ = displayName_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.Location) { - return mergeFrom((com.google.cloud.location.Location) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.location.Location other) { - if (other == com.google.cloud.location.Location.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getLocationId().isEmpty()) { - locationId_ = other.locationId_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.location.Location parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.Location) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object locationId_ = ""; - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @return The locationId. - */ - public java.lang.String getLocationId() { - java.lang.Object ref = locationId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - locationId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @return The bytes for locationId. - */ - public com.google.protobuf.ByteString getLocationIdBytes() { - java.lang.Object ref = locationId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - locationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @param value The locationId to set. - * @return This builder for chaining. - */ - public Builder setLocationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - locationId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @return This builder for chaining. - */ - public Builder clearLocationId() { - - locationId_ = getDefaultInstance().getLocationId(); - onChanged(); - return this; - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @param value The bytes for locationId to set. - * @return This builder for chaining. - */ - public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - locationId_ = value; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.Any metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return The metadata. - */ - public com.google.protobuf.Any getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder setMetadata(com.google.protobuf.Any value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder mergeMetadata(com.google.protobuf.Any value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public com.google.protobuf.Any.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; - } - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder>(getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.location.Location) - } - - // @@protoc_insertion_point(class_scope:google.cloud.location.Location) - private static final com.google.cloud.location.Location DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.location.Location(); - } - - public static com.google.cloud.location.Location getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Location(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.location.Location getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java deleted file mode 100644 index 98ab25deb..000000000 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public interface LocationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.Location) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The locationId. - */ - java.lang.String getLocationId(); - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The bytes for locationId. - */ - com.google.protobuf.ByteString getLocationIdBytes(); - - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - int getLabelsCount(); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return The metadata. - */ - com.google.protobuf.Any getMetadata(); - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - */ - com.google.protobuf.AnyOrBuilder getMetadataOrBuilder(); -} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/LocationsProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/LocationsProto.java deleted file mode 100644 index d2b6da306..000000000 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/LocationsProto.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public final class LocationsProto { - private LocationsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_ListLocationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_ListLocationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_GetLocationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n%google/cloud/location/locations.proto\022" - + "\025google.cloud.location\032\034google/api/annot" - + "ations.proto\032\031google/protobuf/any.proto\032" - + "\027google/api/client.proto\"[\n\024ListLocation" - + "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n" - + "\025ListLocationsResponse\0222\n\tlocations\030\001 \003(" - + "\0132\037.google.cloud.location.Location\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques" - + "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001" - + "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030" - + "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc" - + "ation.Location.LabelsEntry\022&\n\010metadata\030\003" - + " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo" - + "cations\022\253\001\n\rListLocations\022+.google.cloud" - + ".location.ListLocationsRequest\032,.google." - + "cloud.location.ListLocationsResponse\"?\202\323" - + "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name=" - + "projects/*}/locations\022\236\001\n\013GetLocation\022)." - + "google.cloud.location.GetLocationRequest" - + "\032\037.google.cloud.location.Location\"C\202\323\344\223\002" - + "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p" - + "rojects/*/locations/*}\032H\312A\024cloud.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformBo\n\031com.google.cloud.loc" - + "ationB\016LocationsProtoP\001Z=google.golang.o" - + "rg/genproto/googleapis/cloud/location;lo" - + "cation\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_location_ListLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsRequest_descriptor, - new java.lang.String[] { - "Name", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_location_ListLocationsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsResponse_descriptor, - new java.lang.String[] { - "Locations", "NextPageToken", - }); - internal_static_google_cloud_location_GetLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_GetLocationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_location_Location_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_location_Location_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_descriptor, - new java.lang.String[] { - "Name", "LocationId", "DisplayName", "Labels", "Metadata", - }); - internal_static_google_cloud_location_Location_LabelsEntry_descriptor = - internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto index 18cadb357..8c41dcd22 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto @@ -94,6 +94,7 @@ service Agents { } // Exports the specified agent to a binary file. + // // This method is a [long-running // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). // The returned `Operation` type has the following method-specific fields: @@ -117,6 +118,14 @@ service Agents { // Replaces the current agent with a new one. Note that all existing resources // in agent (e.g. intents, entity types, flows) will be removed. // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: An [Empty + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) // // Note: You should always train flows prior to sending them queries. See the // [training diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/changelog.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/changelog.proto new file mode 100644 index 000000000..997de1bb6 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/changelog.proto @@ -0,0 +1,154 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "ChangelogProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; + +// Service for managing [Changelogs][google.cloud.dialogflow.cx.v3.Changelog]. +service Changelogs { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of Changelogs. + rpc ListChangelogs(ListChangelogsRequest) returns (ListChangelogsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*}/changelogs" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified Changelog. + rpc GetChangelog(GetChangelogRequest) returns (Changelog) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/changelogs/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs]. +message ListChangelogsRequest { + // Required. The agent containing the changelogs. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Changelog" + } + ]; + + // The filter string. Supports filter by user_email, resource, type and + // create_time. Some examples: + // 1. By user email: + // user_email = "someone@google.com" + // 2. By resource name: + // resource = "projects/123/locations/global/agents/456/flows/789" + // 3. By resource display name: + // display_name = "my agent" + // 4. By action: + // action = "Create" + // 5. By type: + // type = "flows" + // 6. By create time. Currently predicates on `create_time` and + // `create_time_epoch_seconds` are supported: + // create_time_epoch_seconds > 1551790877 AND create_time <= + // 2017-01-15T01:30:15.01Z + // 7. Combination of above filters: + // resource = "projects/123/locations/global/agents/456/flows/789" + // AND user_email = "someone@google.com" + // AND create_time <= 2017-01-15T01:30:15.01Z + string filter = 2; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 3; + + // The next_page_token value returned from a previous list request. + string page_token = 4; +} + +// The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs]. +message ListChangelogsResponse { + // The list of changelogs. There will be a maximum number of items returned + // based on the page_size field in the request. The changelogs will be ordered + // by timestamp. + repeated Changelog changelogs = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog]. +message GetChangelogRequest { + // Required. The name of the changelog to get. + // Format: `projects//locations//agents//changelogs/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Changelog" + } + ]; +} + +// Changelogs represents a change made to a given agent. +message Changelog { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Changelog" + pattern: "projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}" + }; + + // The unique identifier of the changelog. + // Format: `projects//locations//agents//changelogs/`. + string name = 1; + + // Email address of the authenticated user. + string user_email = 2; + + // The affected resource display name of the change. + string display_name = 7; + + // The action of the change. + string action = 11; + + // The affected resource type. + string type = 8; + + // The affected resource name of the change. + string resource = 3; + + // The timestamp of the change. + google.protobuf.Timestamp create_time = 4; +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/deployment.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/deployment.proto new file mode 100644 index 000000000..ba81a7bb7 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/deployment.proto @@ -0,0 +1,171 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "DeploymentProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; + +// Service for managing [Deployments][google.cloud.dialogflow.cx.v3.Deployment]. +service Deployments { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + rpc ListDeployments(ListDeploymentsRequest) returns (ListDeploymentsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/deployments" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. + rpc GetDeployment(GetDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/environments/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Represents an deployment in an environment. A deployment happens when a flow +// version configured to be active in the environment. You can configure running +// pre-deployment steps, e.g. running validation test cases, experiment +// auto-rollout, etc. +message Deployment { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Deployment" + pattern: "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}" + }; + + // Result of the deployment. + message Result { + // Results of test cases running before the deployment. + // Format: `projects//locations//agents//testCases//results/`. + repeated string deployment_test_results = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCaseResult" + }]; + + // The name of the experiment triggered by this deployment. + // Format: projects//locations//agents//environments//experiments/. + string experiment = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Experiment" + }]; + } + + // The state of the deployment. + enum State { + // State unspecified. + STATE_UNSPECIFIED = 0; + + // The deployment is running. + RUNNING = 1; + + // The deployment succeeded. + SUCCEEDED = 2; + + // The deployment failed. + FAILED = 3; + } + + // The name of the deployment. + // Format: projects//locations//agents//environments//deployments/. + string name = 1; + + // The name of the flow version for this deployment. + // Format: projects//locations//agents//flows//versions/. + string flow_version = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + }]; + + // The current state of the deployment. + State state = 3; + + // Result of the deployment. + Result result = 4; + + // Start time of this deployment. + google.protobuf.Timestamp start_time = 5; + + // End time of this deployment. + google.protobuf.Timestamp end_time = 6; +} + +// The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments]. +message ListDeploymentsRequest { + // Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for. + // Format: `projects//locations//agents//environments/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Deployment" + } + ]; + + // The maximum number of items to return in a single page. By default 20 and + // at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments]. +message ListDeploymentsResponse { + // The list of deployments. There will be a maximum number of items + // returned based on the page_size field in the request. The list may in some + // cases be empty or contain fewer entries than page_size even if this isn't + // the last page. + repeated Deployment deployments = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment]. +message GetDeploymentRequest { + // Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. + // Format: `projects//locations//agents//environments//deployments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Deployment" + } + ]; +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/environment.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/environment.proto index 4ff1523c0..31f947ff6 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/environment.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/environment.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3/test_case.proto"; +import "google/cloud/dialogflow/cx/v3/webhook.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -59,6 +60,14 @@ service Environments { } // Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent]. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] rpc CreateEnvironment(CreateEnvironmentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*/agents/*}/environments" @@ -72,6 +81,14 @@ service Environments { } // Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment] rpc UpdateEnvironment(UpdateEnvironmentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v3/{environment.name=projects/*/locations/*/agents/*/environments/*}" @@ -101,6 +118,13 @@ service Environments { } // Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata] + // - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse] rpc RunContinuousTest(RunContinuousTestRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3/{environment=projects/*/locations/*/agents/*/environments/*}:runContinuousTest" @@ -119,6 +143,25 @@ service Environments { }; option (google.api.method_signature) = "parent"; } + + // Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata] + // - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse] + rpc DeployFlow(DeployFlowRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{environment=projects/*/locations/*/agents/*/environments/*}:deployFlow" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "DeployFlowResponse" + metadata_type: "DeployFlowMetadata" + }; + } } // Represents an environment for an agent. You can create multiple versions @@ -147,6 +190,24 @@ message Environment { ]; } + // The configuration for continuous tests. + message TestCasesConfig { + // A list of test case names to run. They should be under the same agent. + // Format of each test case name: `projects//locations/ + // /agents//testCases/` + repeated string test_cases = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + }]; + + // Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically. + // Default false. If set to ture, run once a day. + bool enable_continuous_run = 2; + + // Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before + // deploying a flow version to the environment. Default false. + bool enable_predeployment_run = 3; + } + // The name of the environment. // Format: `projects//locations//agents//environments/`. @@ -168,6 +229,9 @@ message Environment { // Output only. Update time of this environment. google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The test cases config for continuous tests of this environment. + TestCasesConfig test_cases_config = 7; } // The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments]. @@ -375,3 +439,44 @@ message ListContinuousTestResultsResponse { // results in the list. string next_page_token = 2; } + +// The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow]. +message DeployFlowRequest { + // Required. The environment to deploy the flow to. + // Format: `projects//locations//agents// + // environments/`. + string environment = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + } + ]; + + // Required. The flow version to deploy. + // Format: `projects//locations//agents// + // flows//versions/`. + string flow_version = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + } + ]; +} + +// The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow]. +message DeployFlowResponse { + // The updated environment where the flow is deployed. + Environment environment = 1; + + // The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. + // Format: `projects//locations//agents// + // environments//deployments/`. + string deployment = 2; +} + +// Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow] long running +// operation. +message DeployFlowMetadata { + // Errors of running deployment tests. + repeated TestError test_errors = 1; +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto index ad439d36d..98be51c4f 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto @@ -97,6 +97,15 @@ service Flows { // Trains the specified flow. Note that only the flow in 'draft' environment // is trained. // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: An [Empty + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + // // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -133,6 +142,14 @@ service Flows { // Imports the specified flow to the specified agent from a binary file. // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] + // // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -149,6 +166,14 @@ service Flows { // Exports the specified flow to a binary file. // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] + // // Note that resources (e.g. intents, entities, webhooks) that the flow // references will also be exported. rpc ExportFlow(ExportFlowRequest) returns (google.longrunning.Operation) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/response_message.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/response_message.proto index a9b8d7ee2..e724208f8 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/response_message.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/response_message.proto @@ -164,6 +164,17 @@ message ResponseMessage { repeated Segment segments = 1; } + // Represents the signal that telles the client to transfer the phone call + // connected to the agent to a third-party endpoint. + message TelephonyTransferCall { + // Endpoint to transfer the call to. + oneof endpoint { + // Transfer the call to a phone number + // in [E.164 format](https://en.wikipedia.org/wiki/E.164). + string phone_number = 1; + } + } + // Required. The rich response message. oneof message { // Returns a text response. @@ -202,5 +213,9 @@ message ResponseMessage { // This message is generated by Dialogflow only and not supposed to be // defined by the user. MixedAudio mixed_audio = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A signal that the client should transfer the phone call connected to + // this agent to a third-party endpoint. + TelephonyTransferCall telephony_transfer_call = 18; } } diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto index b8ab53b4c..f7390def7 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto @@ -222,10 +222,13 @@ message SecuritySettings { DIALOGFLOW_HISTORY = 1; } - // Required. Resource name of the settings. + // Resource name of the settings. + // Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method. + // [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name + // automatically. // Format: `projects//locations//securitySettings/`. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1; // Required. The human-readable name of the security settings, unique within the // location. @@ -242,6 +245,11 @@ message SecuritySettings { // [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this // template to define inspect base settings. // + // The `DLP Inspect Templates Reader` role is needed on the Dialogflow + // service identity service account (has the form + // `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`) + // for your agent's project. + // // If empty, we use the default DLP inspect config. // // The template name will have one of the following formats: @@ -258,6 +266,11 @@ message SecuritySettings { // [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this // template to define de-identification configuration for the content. // + // The `DLP De-identify Templates Reader` role is needed on the Dialogflow + // service identity service account (has the form + // `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`) + // for your agent's project. + // // If empty, Dialogflow replaces sensitive info with `[redacted]` text. // // The template name will have one of the following formats: @@ -278,7 +291,7 @@ message SecuritySettings { // Retains data in interaction logging for the specified number of days. // This does not apply to Cloud logging, which is owned by the user - not // Dialogflow. - // User must Set a value lower than Dialogflow's default 30d TTL. Setting a + // User must set a value lower than Dialogflow's default 365d TTL. Setting a // value higher than that has no effect. // A missing value or setting to 0 also means we use Dialogflow's default // TTL. diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto index 2065c03f3..46748b184 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto @@ -201,7 +201,7 @@ message DetectIntentResponse { // Multiple request messages should be sent in order: // // 1. The first message must contain -// [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session], +// [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session], // [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] plus optionally // [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. If the client // wants to receive an audio response, it should also contain @@ -261,21 +261,29 @@ message StreamingDetectIntentRequest { bool enable_partial_response = 5; } -// The top-level message returned from the `StreamingDetectIntent` method. +// The top-level message returned from the +// [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method. // -// Multiple response messages can be returned in order: +// Multiple response messages (N) can be returned in order. // -// 1. If the input was set to streaming audio, the first one or more messages -// contain `recognition_result`. Each `recognition_result` represents a more -// complete transcript of what the user said. The last `recognition_result` -// has `is_final` set to `true`. +// The first (N-1) responses set either the `recognition_result` or +// `detect_intent_response` field, depending on the request: // -// 2. If `enable_partial_response` is true, the following N messages -// (currently 1 <= N <= 4) contain `detect_intent_response`. The first (N-1) -// `detect_intent_response`s will have `response_type` set to `PARTIAL`. -// The last `detect_intent_response` has `response_type` set to `FINAL`. -// If `response_type` is false, response stream only contains -// the final `detect_intent_response`. +// * If the `StreamingDetectIntentRequest.query_input.audio` field was +// set, and the `StreamingDetectIntentRequest.enable_partial_response` +// field was false, the `recognition_result` field is populated for each +// of the (N-1) responses. +// See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details +// about the result message sequence. +// +// * If the `StreamingDetectIntentRequest.enable_partial_response` field was +// true, the `detect_intent_response` field is populated for each +// of the (N-1) responses, where 1 <= N <= 4. +// These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field +// to `PARTIAL`. +// +// For the final Nth response message, the `detect_intent_response` is fully +// populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] is set to `FINAL`. message StreamingDetectIntentResponse { // The output response. oneof response { @@ -291,35 +299,39 @@ message StreamingDetectIntentResponse { // that is currently being processed or an indication that this is the end // of the single requested utterance. // -// Example: -// -// 1. transcript: "tube" -// -// 2. transcript: "to be a" -// -// 3. transcript: "to be" +// While end-user audio is being processed, Dialogflow sends a series of +// results. Each result may contain a `transcript` value. A transcript +// represents a portion of the utterance. While the recognizer is processing +// audio, transcript values may be interim values or finalized values. +// Once a transcript is finalized, the `is_final` value is set to true and +// processing continues for the next transcript. // -// 4. transcript: "to be or not to be" -// is_final: true +// If `StreamingDetectIntentRequest.query_input.audio.config.single_utterance` +// was true, and the recognizer has completed processing audio, +// the `message_type` value is set to `END_OF_SINGLE_UTTERANCE and the +// following (last) result contains the last finalized transcript. // -// 5. transcript: " that's" +// The complete end-user utterance is determined by concatenating the +// finalized transcript values received for the series of results. // -// 6. transcript: " that is" +// In the following example, single utterance is enabled. In the case where +// single utterance is not enabled, result 7 would not occur. // -// 7. message_type: `END_OF_SINGLE_UTTERANCE` +// ``` +// Num | transcript | message_type | is_final +// --- | ----------------------- | ----------------------- | -------- +// 1 | "tube" | TRANSCRIPT | false +// 2 | "to be a" | TRANSCRIPT | false +// 3 | "to be" | TRANSCRIPT | false +// 4 | "to be or not to be" | TRANSCRIPT | true +// 5 | "that's" | TRANSCRIPT | false +// 6 | "that is | TRANSCRIPT | false +// 7 | unset | END_OF_SINGLE_UTTERANCE | unset +// 8 | " that is the question" | TRANSCRIPT | true +// ``` // -// 8. transcript: " that is the question" -// is_final: true -// -// Only two of the responses contain final results (#4 and #8 indicated by -// `is_final: true`). Concatenating these generates the full transcript: "to be -// or not to be that is the question". -// -// In each response we populate: -// -// * for `TRANSCRIPT`: `transcript` and possibly `is_final`. -// -// * for `END_OF_SINGLE_UTTERANCE`: only `message_type`. +// Concatenating the finalized transcripts with `is_final` set to true, +// the complete utterance becomes "to be or not to be that is the question". message StreamingRecognitionResult { // Type of the response message. enum MessageType { @@ -545,6 +557,10 @@ message QueryResult { // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain // the name of the event. string trigger_event = 14; + + // If a [DTMF][DTMFInput] was provided as input, this field will contain + // a copy of the [DTMFInput][]. + DtmfInput dtmf = 23; } // The language that was triggered during intent detection. diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto index 654dd7aa0..3f698e19b 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto @@ -94,6 +94,7 @@ service TestCases { } // Kicks off a test case run. + // // This method is a [long-running // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). // The returned `Operation` type has the following method-specific fields: @@ -112,6 +113,13 @@ service TestCases { } // Kicks off a batch run of test cases. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] + // - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] rpc BatchRunTestCases(BatchRunTestCasesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchRun" @@ -133,6 +141,13 @@ service TestCases { // Imports the test cases from a Cloud Storage bucket or a local file. It // always creates new test cases and won't overwite any existing ones. The // provided ID in the imported test case is neglected. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] + // - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] rpc ImportTestCases(ImportTestCasesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*/agents/*}/testCases:import" @@ -146,6 +161,13 @@ service TestCases { // Exports the test cases under the agent to a Cloud Storage bucket or a local // file. Filter can be applied to export a subset of test cases. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] + // - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] rpc ExportTestCases(ExportTestCasesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*/agents/*}/testCases:export" @@ -820,6 +842,7 @@ message ExportTestCasesResponse { // Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases] long running // operation. +// This message currently has no fields. message ExportTestCasesMetadata { } diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/version.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/version.proto index d0d1a8a9e..326c4850c 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/version.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/version.proto @@ -64,6 +64,13 @@ service Versions { } // Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] + // - `response`: [Version][google.cloud.dialogflow.cx.v3.Version] rpc CreateVersion(CreateVersionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" @@ -94,6 +101,15 @@ service Versions { } // Loads resources in the specified version to the draft flow. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: An [Empty + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) rpc LoadVersion(LoadVersionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load" @@ -105,6 +121,15 @@ service Versions { metadata_type: "google.protobuf.Struct" }; } + + // Compares the specified base version with target version. + rpc CompareVersions(CompareVersionsRequest) returns (CompareVersionsResponse) { + option (google.api.http) = { + post: "/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions" + body: "*" + }; + option (google.api.method_signature) = "base_version"; + } } // Metadata associated with the long running operation for @@ -265,3 +290,50 @@ message LoadVersionRequest { // will not be overridden (i.e. intents, entities, webhooks). bool allow_override_agent_resources = 2; } + +// The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions]. +message CompareVersionsRequest { + // Required. Name of the base flow version to compare with the target version. Use + // version ID `0` to indicate the draft version of the specified flow. + // + // Format: `projects//locations//agents/ + // /flows//versions/`. + string base_version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + } + ]; + + // Required. Name of the target flow version to compare with the + // base version. Use version ID `0` to indicate the draft version of the + // specified flow. Format: `projects//locations//agents//flows//versions/`. + string target_version = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + } + ]; + + // The language to compare the flow versions for. + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/docs/reference/language) are + // supported. Note: languages must be enabled in the agent before they can be + // used. + string language_code = 3; +} + +// The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions]. +message CompareVersionsResponse { + // JSON representation of the base version content. + string base_version_content_json = 1; + + // JSON representation of the target version content. + string target_version_content_json = 2; + + // The timestamp when the two version compares. + google.protobuf.Timestamp compare_time = 3; +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto index 074b8dc1d..b2d7f3618 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto @@ -113,6 +113,19 @@ message Webhook { // The HTTP request headers to send together with webhook // requests. map request_headers = 4; + + // Optional. Specifies a list of allowed custom CA certificates (in DER format) for + // HTTPS verification. This overrides the default SSL trust store. If this + // is empty or unspecified, Dialogflow 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'") + repeated bytes allowed_ca_certs = 5 [(google.api.field_behavior) = OPTIONAL]; } // Represents configuration for a [Service @@ -496,6 +509,10 @@ message PageInfo { type: "dialogflow.googleapis.com/Page" }]; + // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The display name of the current page. + string display_name = 4; + // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // Information about the form. FormInfo form_info = 3; diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/location/locations.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/location/locations.proto deleted file mode 100644 index a91766c9d..000000000 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/location/locations.proto +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.location; - -import "google/api/annotations.proto"; -import "google/protobuf/any.proto"; -import "google/api/client.proto"; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/location;location"; -option java_multiple_files = true; -option java_outer_classname = "LocationsProto"; -option java_package = "com.google.cloud.location"; - -// An abstract interface that provides location-related information for -// a service. Service-specific metadata is provided through the -// [Location.metadata][google.cloud.location.Location.metadata] field. -service Locations { - option (google.api.default_host) = "cloud.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists information about the supported locations for this service. - rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse) { - option (google.api.http) = { - get: "/v1/{name=locations}" - additional_bindings { - get: "/v1/{name=projects/*}/locations" - } - }; - } - - // Gets information about a location. - rpc GetLocation(GetLocationRequest) returns (Location) { - option (google.api.http) = { - get: "/v1/{name=locations/*}" - additional_bindings { - get: "/v1/{name=projects/*/locations/*}" - } - }; - } -} - -// The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. -message ListLocationsRequest { - // The resource that owns the locations collection, if applicable. - string name = 1; - - // The standard list filter. - string filter = 2; - - // The standard list page size. - int32 page_size = 3; - - // The standard list page token. - string page_token = 4; -} - -// The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. -message ListLocationsResponse { - // A list of locations that matches the specified filter in the request. - repeated Location locations = 1; - - // The standard List next-page token. - string next_page_token = 2; -} - -// The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation]. -message GetLocationRequest { - // Resource name for the location. - string name = 1; -} - -// A resource that represents Google Cloud Platform location. -message Location { - // Resource name for the location, which may vary between implementations. - // For example: `"projects/example-project/locations/us-east1"` - string name = 1; - - // The canonical id for this location. For example: `"us-east1"`. - string location_id = 4; - - // The friendly name for this location, typically a nearby city name. - // For example, "Tokyo". - string display_name = 5; - - // Cross-service attributes for the location. For example - // - // {"cloud.googleapis.com/region": "us-east1"} - map labels = 2; - - // Service-specific metadata. For example the available capacity at the given - // location. - google.protobuf.Any metadata = 3; -} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/clirr-ignored-differences.xml b/proto-google-cloud-dialogflow-cx-v3beta1/clirr-ignored-differences.xml index 8beebc93f..c0b3abb21 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/clirr-ignored-differences.xml +++ b/proto-google-cloud-dialogflow-cx-v3beta1/clirr-ignored-differences.xml @@ -30,4 +30,17 @@ com/google/cloud/location/*OrBuilder boolean has*(*) + + + 8001 + com/google/cloud/location/*LocationRequest* + + + 8001 + com/google/cloud/location/*LocationsResponse* + + + 8001 + com/google/cloud/location/*Location* + diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml b/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml index f6cef83de..cca5a14dd 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/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.10.1 + 0.11.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.10.1 + 0.11.0 diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java index 283d66888..ec372a252 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java @@ -893,35 +893,35 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDefaultLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLanguageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultLanguageCode_); } for (int i = 0; i < supportedLanguageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 4, supportedLanguageCodes_.getRaw(i)); } - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, timeZone_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } - if (!getAvatarUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avatarUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, avatarUri_); } if (speechToTextSettings_ != null) { output.writeMessage(13, getSpeechToTextSettings()); } - if (!getStartFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startFlow_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, startFlow_); } - if (!getSecuritySettingsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securitySettings_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, securitySettings_); } if (enableStackdriverLogging_ != false) { @@ -942,13 +942,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDefaultLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLanguageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultLanguageCode_); } { @@ -959,23 +959,23 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSupportedLanguageCodesList().size(); } - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, timeZone_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } - if (!getAvatarUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avatarUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, avatarUri_); } if (speechToTextSettings_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSpeechToTextSettings()); } - if (!getStartFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startFlow_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, startFlow_); } - if (!getSecuritySettingsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securitySettings_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, securitySettings_); } if (enableStackdriverLogging_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResult.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResult.java index 7737a6fef..70bd429c4 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResult.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResult.java @@ -281,7 +281,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < flowValidationResults_.size(); i++) { @@ -296,7 +296,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < flowValidationResults_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchDeleteTestCasesRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchDeleteTestCasesRequest.java index 77bb2c2d6..36ba27f41 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchDeleteTestCasesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchDeleteTestCasesRequest.java @@ -268,7 +268,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } for (int i = 0; i < names_.size(); i++) { @@ -283,7 +283,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesRequest.java index 56303b39c..e13b2c2d1 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesRequest.java @@ -333,10 +333,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environment_); } for (int i = 0; i < testCases_.size(); i++) { @@ -351,10 +351,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environment_); } { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageRequest.java index 83a97fd81..5393c21d1 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageRequest.java @@ -417,7 +417,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, type_); } - if (!getAgentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, agent_); } unknownFields.writeTo(output); @@ -435,7 +435,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } - if (!getAgentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, agent_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageResponse.java index 24fba4b71..6ec6d6502 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageResponse.java @@ -459,7 +459,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 4, (com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage) coverageType_); } - if (!getAgentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, agent_); } if (coverageTypeCase_ == 6) { @@ -485,7 +485,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage) coverageType_); } - if (!getAgentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, agent_); } if (coverageTypeCase_ == 6) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Changelog.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Changelog.java new file mode 100644 index 000000000..af10c4c63 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Changelog.java @@ -0,0 +1,1816 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/changelog.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * Changelogs represents a change made to a given agent.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Changelog} + */ +public final class Changelog extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Changelog) + ChangelogOrBuilder { + private static final long serialVersionUID = 0L; + // Use Changelog.newBuilder() to construct. + private Changelog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Changelog() { + name_ = ""; + userEmail_ = ""; + displayName_ = ""; + action_ = ""; + type_ = ""; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Changelog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Changelog( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + userEmail_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + resource_ = s; + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + action_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Changelog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Changelog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Changelog.class, + com.google.cloud.dialogflow.cx.v3beta1.Changelog.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The unique identifier of the changelog.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The unique identifier of the changelog.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog 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 USER_EMAIL_FIELD_NUMBER = 2; + private volatile java.lang.Object userEmail_; + /** + * + * + *
+   * Email address of the authenticated user.
+   * 
+ * + * string user_email = 2; + * + * @return The userEmail. + */ + @java.lang.Override + public java.lang.String getUserEmail() { + java.lang.Object ref = userEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Email address of the authenticated user.
+   * 
+ * + * string user_email = 2; + * + * @return The bytes for userEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserEmailBytes() { + java.lang.Object ref = userEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * The affected resource display name of the change.
+   * 
+ * + * string display_name = 7; + * + * @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 affected resource display name of the change.
+   * 
+ * + * string display_name = 7; + * + * @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 ACTION_FIELD_NUMBER = 11; + private volatile java.lang.Object action_; + /** + * + * + *
+   * The action of the change.
+   * 
+ * + * string action = 11; + * + * @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; + } + } + /** + * + * + *
+   * The action of the change.
+   * 
+ * + * string action = 11; + * + * @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 TYPE_FIELD_NUMBER = 8; + private volatile java.lang.Object type_; + /** + * + * + *
+   * The affected resource type.
+   * 
+ * + * string type = 8; + * + * @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 affected resource type.
+   * 
+ * + * string type = 8; + * + * @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 RESOURCE_FIELD_NUMBER = 3; + private volatile java.lang.Object resource_; + /** + * + * + *
+   * The affected resource name of the change.
+   * 
+ * + * string resource = 3; + * + * @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; + } + } + /** + * + * + *
+   * The affected resource name of the change.
+   * 
+ * + * string resource = 3; + * + * @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 CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userEmail_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resource_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, action_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userEmail_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resource_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, action_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.Changelog)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.Changelog other = + (com.google.cloud.dialogflow.cx.v3beta1.Changelog) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUserEmail().equals(other.getUserEmail())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getAction().equals(other.getAction())) return false; + if (!getType().equals(other.getType())) return false; + if (!getResource().equals(other.getResource())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + USER_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getUserEmail().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Changelog parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.Changelog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.Changelog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Changelog parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Changelog parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Changelog parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Changelog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Changelog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Changelog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Changelog parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Changelogs represents a change made to a given agent.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Changelog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Changelog) + com.google.cloud.dialogflow.cx.v3beta1.ChangelogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Changelog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Changelog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Changelog.class, + com.google.cloud.dialogflow.cx.v3beta1.Changelog.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.Changelog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + userEmail_ = ""; + + displayName_ = ""; + + action_ = ""; + + type_ = ""; + + resource_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Changelog_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Changelog getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.Changelog.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Changelog build() { + com.google.cloud.dialogflow.cx.v3beta1.Changelog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Changelog buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.Changelog result = + new com.google.cloud.dialogflow.cx.v3beta1.Changelog(this); + result.name_ = name_; + result.userEmail_ = userEmail_; + result.displayName_ = displayName_; + result.action_ = action_; + result.type_ = type_; + result.resource_ = resource_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.Changelog) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.Changelog) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Changelog other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.Changelog.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getUserEmail().isEmpty()) { + userEmail_ = other.userEmail_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getAction().isEmpty()) { + action_ = other.action_; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.Changelog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dialogflow.cx.v3beta1.Changelog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The unique identifier of the changelog.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The unique identifier of the changelog.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The unique identifier of the changelog.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The unique identifier of the changelog.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The unique identifier of the changelog.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog 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; + onChanged(); + return this; + } + + private java.lang.Object userEmail_ = ""; + /** + * + * + *
+     * Email address of the authenticated user.
+     * 
+ * + * string user_email = 2; + * + * @return The userEmail. + */ + public java.lang.String getUserEmail() { + java.lang.Object ref = userEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Email address of the authenticated user.
+     * 
+ * + * string user_email = 2; + * + * @return The bytes for userEmail. + */ + public com.google.protobuf.ByteString getUserEmailBytes() { + java.lang.Object ref = userEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Email address of the authenticated user.
+     * 
+ * + * string user_email = 2; + * + * @param value The userEmail to set. + * @return This builder for chaining. + */ + public Builder setUserEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userEmail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the authenticated user.
+     * 
+ * + * string user_email = 2; + * + * @return This builder for chaining. + */ + public Builder clearUserEmail() { + + userEmail_ = getDefaultInstance().getUserEmail(); + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the authenticated user.
+     * 
+ * + * string user_email = 2; + * + * @param value The bytes for userEmail to set. + * @return This builder for chaining. + */ + public Builder setUserEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userEmail_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The affected resource display name of the change.
+     * 
+ * + * string display_name = 7; + * + * @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 affected resource display name of the change.
+     * 
+ * + * string display_name = 7; + * + * @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 affected resource display name of the change.
+     * 
+ * + * string display_name = 7; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource display name of the change.
+     * 
+ * + * string display_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource display name of the change.
+     * 
+ * + * string display_name = 7; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object action_ = ""; + /** + * + * + *
+     * The action of the change.
+     * 
+ * + * string action = 11; + * + * @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; + } + } + /** + * + * + *
+     * The action of the change.
+     * 
+ * + * string action = 11; + * + * @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; + } + } + /** + * + * + *
+     * The action of the change.
+     * 
+ * + * string action = 11; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The action of the change.
+     * 
+ * + * string action = 11; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + + action_ = getDefaultInstance().getAction(); + onChanged(); + return this; + } + /** + * + * + *
+     * The action of the change.
+     * 
+ * + * string action = 11; + * + * @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; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * The affected resource type.
+     * 
+ * + * string type = 8; + * + * @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 affected resource type.
+     * 
+ * + * string type = 8; + * + * @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 affected resource type.
+     * 
+ * + * string type = 8; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource type.
+     * 
+ * + * string type = 8; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource type.
+     * 
+ * + * string type = 8; + * + * @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; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + /** + * + * + *
+     * The affected resource name of the change.
+     * 
+ * + * string resource = 3; + * + * @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; + } + } + /** + * + * + *
+     * The affected resource name of the change.
+     * 
+ * + * string resource = 3; + * + * @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; + } + } + /** + * + * + *
+     * The affected resource name of the change.
+     * 
+ * + * string resource = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource name of the change.
+     * 
+ * + * string resource = 3; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * The affected resource name of the change.
+     * 
+ * + * string resource = 3; + * + * @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; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @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(); + } + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * The timestamp of the change.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Changelog) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Changelog) + private static final com.google.cloud.dialogflow.cx.v3beta1.Changelog DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Changelog(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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 { + return new Changelog(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Changelog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogName.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogName.java new file mode 100644 index 000000000..cf2d61114 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +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_AGENT_CHANGELOG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String agent; + private final String changelog; + + @Deprecated + protected ChangelogName() { + project = null; + location = null; + agent = null; + changelog = null; + } + + private ChangelogName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + agent = Preconditions.checkNotNull(builder.getAgent()); + changelog = Preconditions.checkNotNull(builder.getChangelog()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + 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 agent, String changelog) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .setChangelog(changelog) + .build(); + } + + public static String format(String project, String location, String agent, String changelog) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .setChangelog(changelog) + .build() + .toString(); + } + + public static ChangelogName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AGENT_CHANGELOG.validatedMatch( + formattedString, "ChangelogName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("agent"), + 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_AGENT_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 (agent != null) { + fieldMapBuilder.put("agent", agent); + } + 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_AGENT_CHANGELOG.instantiate( + "project", project, "location", location, "agent", agent, "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.agent, that.agent) + && 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(agent); + h *= 1000003; + h ^= Objects.hashCode(changelog); + return h; + } + + /** Builder for projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}. */ + public static class Builder { + private String project; + private String location; + private String agent; + private String changelog; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + 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 setAgent(String agent) { + this.agent = agent; + 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.agent = changelogName.agent; + this.changelog = changelogName.changelog; + } + + public ChangelogName build() { + return new ChangelogName(this); + } + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogOrBuilder.java new file mode 100644 index 000000000..e9d849b07 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogOrBuilder.java @@ -0,0 +1,214 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/changelog.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface ChangelogOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Changelog) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The unique identifier of the changelog.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The unique identifier of the changelog.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Email address of the authenticated user.
+   * 
+ * + * string user_email = 2; + * + * @return The userEmail. + */ + java.lang.String getUserEmail(); + /** + * + * + *
+   * Email address of the authenticated user.
+   * 
+ * + * string user_email = 2; + * + * @return The bytes for userEmail. + */ + com.google.protobuf.ByteString getUserEmailBytes(); + + /** + * + * + *
+   * The affected resource display name of the change.
+   * 
+ * + * string display_name = 7; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The affected resource display name of the change.
+   * 
+ * + * string display_name = 7; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The action of the change.
+   * 
+ * + * string action = 11; + * + * @return The action. + */ + java.lang.String getAction(); + /** + * + * + *
+   * The action of the change.
+   * 
+ * + * string action = 11; + * + * @return The bytes for action. + */ + com.google.protobuf.ByteString getActionBytes(); + + /** + * + * + *
+   * The affected resource type.
+   * 
+ * + * string type = 8; + * + * @return The type. + */ + java.lang.String getType(); + /** + * + * + *
+   * The affected resource type.
+   * 
+ * + * string type = 8; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * The affected resource name of the change.
+   * 
+ * + * string resource = 3; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * The affected resource name of the change.
+   * 
+ * + * string resource = 3; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * The timestamp of the change.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogProto.java new file mode 100644 index 000000000..66b2e7b0c --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogProto.java @@ -0,0 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/changelog.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public final class ChangelogProto { + private 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_dialogflow_cx_v3beta1_ListChangelogsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_GetChangelogRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_GetChangelogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_Changelog_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_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 = { + "\n2google/cloud/dialogflow/cx/v3beta1/cha" + + "ngelog.proto\022\"google.cloud.dialogflow.cx" + + ".v3beta1\032\034google/api/annotations.proto\032\027" + + "google/api/client.proto\032\037google/api/fiel" + + "d_behavior.proto\032\031google/api/resource.pr" + + "oto\032\034google/protobuf/struct.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\213\001\n\025ListChang" + + "elogsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#di" + + "alogflow.googleapis.com/Changelog\022\016\n\006fil" + + "ter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_tok" + + "en\030\004 \001(\t\"t\n\026ListChangelogsResponse\022A\n\nch" + + "angelogs\030\001 \003(\0132-.google.cloud.dialogflow" + + ".cx.v3beta1.Changelog\022\027\n\017next_page_token" + + "\030\002 \001(\t\"P\n\023GetChangelogRequest\0229\n\004name\030\001 " + + "\001(\tB+\340A\002\372A%\n#dialogflow.googleapis.com/C" + + "hangelog\"\235\002\n\tChangelog\022\014\n\004name\030\001 \001(\t\022\022\n\n" + + "user_email\030\002 \001(\t\022\024\n\014display_name\030\007 \001(\t\022\016" + + "\n\006action\030\013 \001(\t\022\014\n\004type\030\010 \001(\t\022\020\n\010resource" + + "\030\003 \001(\t\022/\n\013create_time\030\004 \001(\0132\032.google.pro" + + "tobuf.Timestamp:w\352At\n#dialogflow.googlea" + + "pis.com/Changelog\022Mprojects/{project}/lo" + + "cations/{location}/agents/{agent}/change" + + "logs/{changelog}2\245\004\n\nChangelogs\022\326\001\n\016List" + + "Changelogs\0229.google.cloud.dialogflow.cx." + + "v3beta1.ListChangelogsRequest\032:.google.c" + + "loud.dialogflow.cx.v3beta1.ListChangelog" + + "sResponse\"M\202\323\344\223\002>\022\022 + * The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions]. + *
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} + */ +public final class CompareVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) + CompareVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompareVersionsRequest.newBuilder() to construct. + private CompareVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompareVersionsRequest() { + baseVersion_ = ""; + targetVersion_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompareVersionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompareVersionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + baseVersion_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + targetVersion_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.Builder.class); + } + + public static final int BASE_VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object baseVersion_; + /** + * + * + *
+   * Required. Name of the base flow version to compare with the target version. Use
+   * version ID `0` to indicate the draft version of the specified flow.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+   * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The baseVersion. + */ + @java.lang.Override + public java.lang.String getBaseVersion() { + java.lang.Object ref = baseVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the base flow version to compare with the target version. Use
+   * version ID `0` to indicate the draft version of the specified flow.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+   * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for baseVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseVersionBytes() { + java.lang.Object ref = baseVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object targetVersion_; + /** + * + * + *
+   * Required. Name of the target flow version to compare with the
+   * base version. Use version ID `0` to indicate the draft version of the
+   * specified flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetVersion. + */ + @java.lang.Override + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the target flow version to compare with the
+   * base version. Use version ID `0` to indicate the draft version of the
+   * specified flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * The language to compare the flow versions for.
+   * If not specified, the agent's default language is used.
+   * [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+   * supported. Note: languages must be enabled in the agent before they can be
+   * used.
+   * 
+ * + * string language_code = 3; + * + * @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; + } + } + /** + * + * + *
+   * The language to compare the flow versions for.
+   * If not specified, the agent's default language is used.
+   * [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+   * supported. Note: languages must be enabled in the agent before they can be
+   * used.
+   * 
+ * + * string language_code = 3; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest other = + (com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) obj; + + if (!getBaseVersion().equals(other.getBaseVersion())) return false; + if (!getTargetVersion().equals(other.getTargetVersion())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BASE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getBaseVersion().hashCode(); + hash = (37 * hash) + TARGET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getTargetVersion().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + baseVersion_ = ""; + + targetVersion_ = ""; + + languageCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest build() { + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest result = + new com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest(this); + result.baseVersion_ = baseVersion_; + result.targetVersion_ = targetVersion_; + result.languageCode_ = languageCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.getDefaultInstance()) + return this; + if (!other.getBaseVersion().isEmpty()) { + baseVersion_ = other.baseVersion_; + onChanged(); + } + if (!other.getTargetVersion().isEmpty()) { + targetVersion_ = other.targetVersion_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object baseVersion_ = ""; + /** + * + * + *
+     * Required. Name of the base flow version to compare with the target version. Use
+     * version ID `0` to indicate the draft version of the specified flow.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+     * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The baseVersion. + */ + public java.lang.String getBaseVersion() { + java.lang.Object ref = baseVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the base flow version to compare with the target version. Use
+     * version ID `0` to indicate the draft version of the specified flow.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+     * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for baseVersion. + */ + public com.google.protobuf.ByteString getBaseVersionBytes() { + java.lang.Object ref = baseVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the base flow version to compare with the target version. Use
+     * version ID `0` to indicate the draft version of the specified flow.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+     * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The baseVersion to set. + * @return This builder for chaining. + */ + public Builder setBaseVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + baseVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the base flow version to compare with the target version. Use
+     * version ID `0` to indicate the draft version of the specified flow.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+     * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBaseVersion() { + + baseVersion_ = getDefaultInstance().getBaseVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the base flow version to compare with the target version. Use
+     * version ID `0` to indicate the draft version of the specified flow.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+     * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for baseVersion to set. + * @return This builder for chaining. + */ + public Builder setBaseVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + baseVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetVersion_ = ""; + /** + * + * + *
+     * Required. Name of the target flow version to compare with the
+     * base version. Use version ID `0` to indicate the draft version of the
+     * specified flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetVersion. + */ + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the target flow version to compare with the
+     * base version. Use version ID `0` to indicate the draft version of the
+     * specified flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetVersion. + */ + public com.google.protobuf.ByteString getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the target flow version to compare with the
+     * base version. Use version ID `0` to indicate the draft version of the
+     * specified flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the target flow version to compare with the
+     * base version. Use version ID `0` to indicate the draft version of the
+     * specified flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetVersion() { + + targetVersion_ = getDefaultInstance().getTargetVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the target flow version to compare with the
+     * base version. Use version ID `0` to indicate the draft version of the
+     * specified flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * The language to compare the flow versions for.
+     * If not specified, the agent's default language is used.
+     * [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+     * supported. Note: languages must be enabled in the agent before they can be
+     * used.
+     * 
+ * + * string language_code = 3; + * + * @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; + } + } + /** + * + * + *
+     * The language to compare the flow versions for.
+     * If not specified, the agent's default language is used.
+     * [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+     * supported. Note: languages must be enabled in the agent before they can be
+     * used.
+     * 
+ * + * string language_code = 3; + * + * @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; + } + } + /** + * + * + *
+     * The language to compare the flow versions for.
+     * If not specified, the agent's default language is used.
+     * [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+     * supported. Note: languages must be enabled in the agent before they can be
+     * used.
+     * 
+ * + * string language_code = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The language to compare the flow versions for.
+     * If not specified, the agent's default language is used.
+     * [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+     * supported. Note: languages must be enabled in the agent before they can be
+     * used.
+     * 
+ * + * string language_code = 3; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * The language to compare the flow versions for.
+     * If not specified, the agent's default language is used.
+     * [Many
+     * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+     * supported. Note: languages must be enabled in the agent before they can be
+     * used.
+     * 
+ * + * string language_code = 3; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) + private static final com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompareVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompareVersionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsRequestOrBuilder.java new file mode 100644 index 000000000..056322751 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/version.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface CompareVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the base flow version to compare with the target version. Use
+   * version ID `0` to indicate the draft version of the specified flow.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+   * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The baseVersion. + */ + java.lang.String getBaseVersion(); + /** + * + * + *
+   * Required. Name of the base flow version to compare with the target version. Use
+   * version ID `0` to indicate the draft version of the specified flow.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/
+   * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string base_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for baseVersion. + */ + com.google.protobuf.ByteString getBaseVersionBytes(); + + /** + * + * + *
+   * Required. Name of the target flow version to compare with the
+   * base version. Use version ID `0` to indicate the draft version of the
+   * specified flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetVersion. + */ + java.lang.String getTargetVersion(); + /** + * + * + *
+   * Required. Name of the target flow version to compare with the
+   * base version. Use version ID `0` to indicate the draft version of the
+   * specified flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string target_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetVersion. + */ + com.google.protobuf.ByteString getTargetVersionBytes(); + + /** + * + * + *
+   * The language to compare the flow versions for.
+   * If not specified, the agent's default language is used.
+   * [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+   * supported. Note: languages must be enabled in the agent before they can be
+   * used.
+   * 
+ * + * string language_code = 3; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * The language to compare the flow versions for.
+   * If not specified, the agent's default language is used.
+   * [Many
+   * languages](https://cloud.google.com/dialogflow/docs/reference/language) are
+   * supported. Note: languages must be enabled in the agent before they can be
+   * used.
+   * 
+ * + * string language_code = 3; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsResponse.java new file mode 100644 index 000000000..c197600c9 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsResponse.java @@ -0,0 +1,1097 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/version.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} + */ +public final class CompareVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) + CompareVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompareVersionsResponse.newBuilder() to construct. + private CompareVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompareVersionsResponse() { + baseVersionContentJson_ = ""; + targetVersionContentJson_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompareVersionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompareVersionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + baseVersionContentJson_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + targetVersionContentJson_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (compareTime_ != null) { + subBuilder = compareTime_.toBuilder(); + } + compareTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareTime_); + compareTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.class, + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.Builder.class); + } + + public static final int BASE_VERSION_CONTENT_JSON_FIELD_NUMBER = 1; + private volatile java.lang.Object baseVersionContentJson_; + /** + * + * + *
+   * JSON representation of the base version content.
+   * 
+ * + * string base_version_content_json = 1; + * + * @return The baseVersionContentJson. + */ + @java.lang.Override + public java.lang.String getBaseVersionContentJson() { + java.lang.Object ref = baseVersionContentJson_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseVersionContentJson_ = s; + return s; + } + } + /** + * + * + *
+   * JSON representation of the base version content.
+   * 
+ * + * string base_version_content_json = 1; + * + * @return The bytes for baseVersionContentJson. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseVersionContentJsonBytes() { + java.lang.Object ref = baseVersionContentJson_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseVersionContentJson_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_VERSION_CONTENT_JSON_FIELD_NUMBER = 2; + private volatile java.lang.Object targetVersionContentJson_; + /** + * + * + *
+   * JSON representation of the target version content.
+   * 
+ * + * string target_version_content_json = 2; + * + * @return The targetVersionContentJson. + */ + @java.lang.Override + public java.lang.String getTargetVersionContentJson() { + java.lang.Object ref = targetVersionContentJson_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersionContentJson_ = s; + return s; + } + } + /** + * + * + *
+   * JSON representation of the target version content.
+   * 
+ * + * string target_version_content_json = 2; + * + * @return The bytes for targetVersionContentJson. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetVersionContentJsonBytes() { + java.lang.Object ref = targetVersionContentJson_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersionContentJson_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPARE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp compareTime_; + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return Whether the compareTime field is set. + */ + @java.lang.Override + public boolean hasCompareTime() { + return compareTime_ != null; + } + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return The compareTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompareTime() { + return compareTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : compareTime_; + } + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompareTimeOrBuilder() { + return getCompareTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseVersionContentJson_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseVersionContentJson_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersionContentJson_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetVersionContentJson_); + } + if (compareTime_ != null) { + output.writeMessage(3, getCompareTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseVersionContentJson_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseVersionContentJson_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersionContentJson_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetVersionContentJson_); + } + if (compareTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCompareTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse other = + (com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) obj; + + if (!getBaseVersionContentJson().equals(other.getBaseVersionContentJson())) return false; + if (!getTargetVersionContentJson().equals(other.getTargetVersionContentJson())) return false; + if (hasCompareTime() != other.hasCompareTime()) return false; + if (hasCompareTime()) { + if (!getCompareTime().equals(other.getCompareTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BASE_VERSION_CONTENT_JSON_FIELD_NUMBER; + hash = (53 * hash) + getBaseVersionContentJson().hashCode(); + hash = (37 * hash) + TARGET_VERSION_CONTENT_JSON_FIELD_NUMBER; + hash = (53 * hash) + getTargetVersionContentJson().hashCode(); + if (hasCompareTime()) { + hash = (37 * hash) + COMPARE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompareTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.class, + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + baseVersionContentJson_ = ""; + + targetVersionContentJson_ = ""; + + if (compareTimeBuilder_ == null) { + compareTime_ = null; + } else { + compareTime_ = null; + compareTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.VersionProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse build() { + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse result = + new com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse(this); + result.baseVersionContentJson_ = baseVersionContentJson_; + result.targetVersionContentJson_ = targetVersionContentJson_; + if (compareTimeBuilder_ == null) { + result.compareTime_ = compareTime_; + } else { + result.compareTime_ = compareTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.getDefaultInstance()) + return this; + if (!other.getBaseVersionContentJson().isEmpty()) { + baseVersionContentJson_ = other.baseVersionContentJson_; + onChanged(); + } + if (!other.getTargetVersionContentJson().isEmpty()) { + targetVersionContentJson_ = other.targetVersionContentJson_; + onChanged(); + } + if (other.hasCompareTime()) { + mergeCompareTime(other.getCompareTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object baseVersionContentJson_ = ""; + /** + * + * + *
+     * JSON representation of the base version content.
+     * 
+ * + * string base_version_content_json = 1; + * + * @return The baseVersionContentJson. + */ + public java.lang.String getBaseVersionContentJson() { + java.lang.Object ref = baseVersionContentJson_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseVersionContentJson_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * JSON representation of the base version content.
+     * 
+ * + * string base_version_content_json = 1; + * + * @return The bytes for baseVersionContentJson. + */ + public com.google.protobuf.ByteString getBaseVersionContentJsonBytes() { + java.lang.Object ref = baseVersionContentJson_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseVersionContentJson_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * JSON representation of the base version content.
+     * 
+ * + * string base_version_content_json = 1; + * + * @param value The baseVersionContentJson to set. + * @return This builder for chaining. + */ + public Builder setBaseVersionContentJson(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + baseVersionContentJson_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * JSON representation of the base version content.
+     * 
+ * + * string base_version_content_json = 1; + * + * @return This builder for chaining. + */ + public Builder clearBaseVersionContentJson() { + + baseVersionContentJson_ = getDefaultInstance().getBaseVersionContentJson(); + onChanged(); + return this; + } + /** + * + * + *
+     * JSON representation of the base version content.
+     * 
+ * + * string base_version_content_json = 1; + * + * @param value The bytes for baseVersionContentJson to set. + * @return This builder for chaining. + */ + public Builder setBaseVersionContentJsonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + baseVersionContentJson_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetVersionContentJson_ = ""; + /** + * + * + *
+     * JSON representation of the target version content.
+     * 
+ * + * string target_version_content_json = 2; + * + * @return The targetVersionContentJson. + */ + public java.lang.String getTargetVersionContentJson() { + java.lang.Object ref = targetVersionContentJson_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersionContentJson_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * JSON representation of the target version content.
+     * 
+ * + * string target_version_content_json = 2; + * + * @return The bytes for targetVersionContentJson. + */ + public com.google.protobuf.ByteString getTargetVersionContentJsonBytes() { + java.lang.Object ref = targetVersionContentJson_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersionContentJson_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * JSON representation of the target version content.
+     * 
+ * + * string target_version_content_json = 2; + * + * @param value The targetVersionContentJson to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionContentJson(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetVersionContentJson_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * JSON representation of the target version content.
+     * 
+ * + * string target_version_content_json = 2; + * + * @return This builder for chaining. + */ + public Builder clearTargetVersionContentJson() { + + targetVersionContentJson_ = getDefaultInstance().getTargetVersionContentJson(); + onChanged(); + return this; + } + /** + * + * + *
+     * JSON representation of the target version content.
+     * 
+ * + * string target_version_content_json = 2; + * + * @param value The bytes for targetVersionContentJson to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionContentJsonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetVersionContentJson_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp compareTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + compareTimeBuilder_; + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return Whether the compareTime field is set. + */ + public boolean hasCompareTime() { + return compareTimeBuilder_ != null || compareTime_ != null; + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return The compareTime. + */ + public com.google.protobuf.Timestamp getCompareTime() { + if (compareTimeBuilder_ == null) { + return compareTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : compareTime_; + } else { + return compareTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public Builder setCompareTime(com.google.protobuf.Timestamp value) { + if (compareTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compareTime_ = value; + onChanged(); + } else { + compareTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public Builder setCompareTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (compareTimeBuilder_ == null) { + compareTime_ = builderForValue.build(); + onChanged(); + } else { + compareTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public Builder mergeCompareTime(com.google.protobuf.Timestamp value) { + if (compareTimeBuilder_ == null) { + if (compareTime_ != null) { + compareTime_ = + com.google.protobuf.Timestamp.newBuilder(compareTime_) + .mergeFrom(value) + .buildPartial(); + } else { + compareTime_ = value; + } + onChanged(); + } else { + compareTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public Builder clearCompareTime() { + if (compareTimeBuilder_ == null) { + compareTime_ = null; + onChanged(); + } else { + compareTime_ = null; + compareTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getCompareTimeBuilder() { + + onChanged(); + return getCompareTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getCompareTimeOrBuilder() { + if (compareTimeBuilder_ != null) { + return compareTimeBuilder_.getMessageOrBuilder(); + } else { + return compareTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : compareTime_; + } + } + /** + * + * + *
+     * The timestamp when the two version compares.
+     * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCompareTimeFieldBuilder() { + if (compareTimeBuilder_ == null) { + compareTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompareTime(), getParentForChildren(), isClean()); + compareTime_ = null; + } + return compareTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) + private static final com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompareVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompareVersionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsResponseOrBuilder.java new file mode 100644 index 000000000..ac4e04a32 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/version.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface CompareVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * JSON representation of the base version content.
+   * 
+ * + * string base_version_content_json = 1; + * + * @return The baseVersionContentJson. + */ + java.lang.String getBaseVersionContentJson(); + /** + * + * + *
+   * JSON representation of the base version content.
+   * 
+ * + * string base_version_content_json = 1; + * + * @return The bytes for baseVersionContentJson. + */ + com.google.protobuf.ByteString getBaseVersionContentJsonBytes(); + + /** + * + * + *
+   * JSON representation of the target version content.
+   * 
+ * + * string target_version_content_json = 2; + * + * @return The targetVersionContentJson. + */ + java.lang.String getTargetVersionContentJson(); + /** + * + * + *
+   * JSON representation of the target version content.
+   * 
+ * + * string target_version_content_json = 2; + * + * @return The bytes for targetVersionContentJson. + */ + com.google.protobuf.ByteString getTargetVersionContentJsonBytes(); + + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return Whether the compareTime field is set. + */ + boolean hasCompareTime(); + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + * + * @return The compareTime. + */ + com.google.protobuf.Timestamp getCompareTime(); + /** + * + * + *
+   * The timestamp when the two version compares.
+   * 
+ * + * .google.protobuf.Timestamp compare_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getCompareTimeOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResult.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResult.java index 3b282666d..58bc45c39 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResult.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResult.java @@ -533,7 +533,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (result_ @@ -557,7 +557,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (result_ diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateAgentRequest.java index 49e2bf107..c3c3b38d7 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateAgentRequest.java @@ -250,7 +250,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (agent_ != null) { @@ -265,7 +265,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (agent_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEntityTypeRequest.java index dd0a64487..3c9976d54 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEntityTypeRequest.java @@ -324,13 +324,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (entityType_ != null) { output.writeMessage(2, getEntityType()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -342,13 +342,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (entityType_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntityType()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEnvironmentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEnvironmentRequest.java index 369455755..33e1ec0d0 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEnvironmentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEnvironmentRequest.java @@ -251,7 +251,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (environment_ != null) { @@ -266,7 +266,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (environment_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateExperimentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateExperimentRequest.java index 9cb624c62..b84e30e5d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateExperimentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateExperimentRequest.java @@ -253,7 +253,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (experiment_ != null) { @@ -268,7 +268,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (experiment_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateFlowRequest.java index e464bb5b1..7f2f4f259 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateFlowRequest.java @@ -323,13 +323,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (flow_ != null) { output.writeMessage(2, getFlow()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -341,13 +341,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (flow_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFlow()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateIntentRequest.java index f04850eca..4437e020c 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateIntentRequest.java @@ -319,13 +319,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (intent_ != null) { output.writeMessage(2, getIntent()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -337,13 +337,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (intent_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIntent()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreatePageRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreatePageRequest.java index beb3199f4..8056a85cf 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreatePageRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreatePageRequest.java @@ -341,13 +341,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (page_ != null) { output.writeMessage(2, getPage()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -359,13 +359,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (page_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPage()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSecuritySettingsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSecuritySettingsRequest.java index 444aad2e2..d8fcf2f91 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSecuritySettingsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSecuritySettingsRequest.java @@ -252,7 +252,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (securitySettings_ != null) { @@ -267,7 +267,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (securitySettings_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSessionEntityTypeRequest.java index f13208eb0..7f51c4c7d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSessionEntityTypeRequest.java @@ -261,7 +261,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (sessionEntityType_ != null) { @@ -276,7 +276,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sessionEntityType_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTestCaseRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTestCaseRequest.java index e6eee1328..d6c297a65 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTestCaseRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTestCaseRequest.java @@ -250,7 +250,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (testCase_ != null) { @@ -265,7 +265,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (testCase_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTransitionRouteGroupRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTransitionRouteGroupRequest.java index e7c9cecd4..7acbf1c32 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTransitionRouteGroupRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTransitionRouteGroupRequest.java @@ -328,13 +328,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (transitionRouteGroup_ != null) { output.writeMessage(2, getTransitionRouteGroup()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -346,14 +346,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (transitionRouteGroup_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTransitionRouteGroup()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionOperationMetadata.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionOperationMetadata.java index 0afce8f84..9546b360e 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionOperationMetadata.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionOperationMetadata.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionRequest.java index 605761c74..fb43dcedb 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionRequest.java @@ -252,7 +252,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (version_ != null) { @@ -267,7 +267,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (version_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateWebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateWebhookRequest.java index 052aca789..d4aa96cb0 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateWebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateWebhookRequest.java @@ -250,7 +250,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (webhook_ != null) { @@ -265,7 +265,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (webhook_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteAgentRequest.java index 24112eae0..7b0372482 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteAgentRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEntityTypeRequest.java index f83ee2965..8d493c310 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEntityTypeRequest.java @@ -213,7 +213,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (force_ != false) { @@ -228,7 +228,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEnvironmentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEnvironmentRequest.java index e936a786b..cad5f499c 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEnvironmentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEnvironmentRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteExperimentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteExperimentRequest.java index 281aebe81..4036c979a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteExperimentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteExperimentRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteFlowRequest.java index 46ceef762..a002dc31a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteFlowRequest.java @@ -213,7 +213,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (force_ != false) { @@ -228,7 +228,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteIntentRequest.java index 4038935b2..4d93f55e3 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteIntentRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeletePageRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeletePageRequest.java index ad2e86800..b5b95ed18 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeletePageRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeletePageRequest.java @@ -213,7 +213,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (force_ != false) { @@ -228,7 +228,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSecuritySettingsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSecuritySettingsRequest.java index c6afdcfce..63704d431 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSecuritySettingsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSecuritySettingsRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSessionEntityTypeRequest.java index 618cec2e5..84c45600c 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSessionEntityTypeRequest.java @@ -191,7 +191,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -203,7 +203,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteTransitionRouteGroupRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteTransitionRouteGroupRequest.java index 1b988eff3..6d66ce2af 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteTransitionRouteGroupRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteTransitionRouteGroupRequest.java @@ -211,7 +211,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (force_ != false) { @@ -226,7 +226,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteVersionRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteVersionRequest.java index aad9b50ff..f2b1c2b2c 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteVersionRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteVersionRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteWebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteWebhookRequest.java index 3b1333469..90062d420 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteWebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteWebhookRequest.java @@ -212,7 +212,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (force_ != false) { @@ -227,7 +227,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowMetadata.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowMetadata.java new file mode 100644 index 000000000..94a102d3c --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowMetadata.java @@ -0,0 +1,962 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/environment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow] long running
+ * operation.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} + */ +public final class DeployFlowMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) + DeployFlowMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployFlowMetadata.newBuilder() to construct. + private DeployFlowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployFlowMetadata() { + testErrors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployFlowMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployFlowMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + testErrors_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + testErrors_.add( + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.TestError.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + testErrors_ = java.util.Collections.unmodifiableList(testErrors_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.class, + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.Builder.class); + } + + public static final int TEST_ERRORS_FIELD_NUMBER = 1; + private java.util.List testErrors_; + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + @java.lang.Override + public java.util.List getTestErrorsList() { + return testErrors_; + } + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + @java.lang.Override + public java.util.List + getTestErrorsOrBuilderList() { + return testErrors_; + } + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + @java.lang.Override + public int getTestErrorsCount() { + return testErrors_.size(); + } + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.TestError getTestErrors(int index) { + return testErrors_.get(index); + } + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.TestErrorOrBuilder getTestErrorsOrBuilder( + int index) { + return testErrors_.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 < testErrors_.size(); i++) { + output.writeMessage(1, testErrors_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < testErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, testErrors_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata other = + (com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) obj; + + if (!getTestErrorsList().equals(other.getTestErrorsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTestErrorsCount() > 0) { + hash = (37 * hash) + TEST_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getTestErrorsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow] long running
+   * operation.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.class, + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTestErrorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (testErrorsBuilder_ == null) { + testErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + testErrorsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata build() { + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata result = + new com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata(this); + int from_bitField0_ = bitField0_; + if (testErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + testErrors_ = java.util.Collections.unmodifiableList(testErrors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.testErrors_ = testErrors_; + } else { + result.testErrors_ = testErrorsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.getDefaultInstance()) + return this; + if (testErrorsBuilder_ == null) { + if (!other.testErrors_.isEmpty()) { + if (testErrors_.isEmpty()) { + testErrors_ = other.testErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTestErrorsIsMutable(); + testErrors_.addAll(other.testErrors_); + } + onChanged(); + } + } else { + if (!other.testErrors_.isEmpty()) { + if (testErrorsBuilder_.isEmpty()) { + testErrorsBuilder_.dispose(); + testErrorsBuilder_ = null; + testErrors_ = other.testErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + testErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTestErrorsFieldBuilder() + : null; + } else { + testErrorsBuilder_.addAllMessages(other.testErrors_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List testErrors_ = + java.util.Collections.emptyList(); + + private void ensureTestErrorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + testErrors_ = + new java.util.ArrayList(testErrors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.TestError, + com.google.cloud.dialogflow.cx.v3beta1.TestError.Builder, + com.google.cloud.dialogflow.cx.v3beta1.TestErrorOrBuilder> + testErrorsBuilder_; + + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public java.util.List getTestErrorsList() { + if (testErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(testErrors_); + } else { + return testErrorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public int getTestErrorsCount() { + if (testErrorsBuilder_ == null) { + return testErrors_.size(); + } else { + return testErrorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.TestError getTestErrors(int index) { + if (testErrorsBuilder_ == null) { + return testErrors_.get(index); + } else { + return testErrorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public Builder setTestErrors( + int index, com.google.cloud.dialogflow.cx.v3beta1.TestError value) { + if (testErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestErrorsIsMutable(); + testErrors_.set(index, value); + onChanged(); + } else { + testErrorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public Builder setTestErrors( + int index, com.google.cloud.dialogflow.cx.v3beta1.TestError.Builder builderForValue) { + if (testErrorsBuilder_ == null) { + ensureTestErrorsIsMutable(); + testErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + testErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public Builder addTestErrors(com.google.cloud.dialogflow.cx.v3beta1.TestError value) { + if (testErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestErrorsIsMutable(); + testErrors_.add(value); + onChanged(); + } else { + testErrorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public Builder addTestErrors( + int index, com.google.cloud.dialogflow.cx.v3beta1.TestError value) { + if (testErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestErrorsIsMutable(); + testErrors_.add(index, value); + onChanged(); + } else { + testErrorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public Builder addTestErrors( + com.google.cloud.dialogflow.cx.v3beta1.TestError.Builder builderForValue) { + if (testErrorsBuilder_ == null) { + ensureTestErrorsIsMutable(); + testErrors_.add(builderForValue.build()); + onChanged(); + } else { + testErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public Builder addTestErrors( + int index, com.google.cloud.dialogflow.cx.v3beta1.TestError.Builder builderForValue) { + if (testErrorsBuilder_ == null) { + ensureTestErrorsIsMutable(); + testErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + testErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public Builder addAllTestErrors( + java.lang.Iterable values) { + if (testErrorsBuilder_ == null) { + ensureTestErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, testErrors_); + onChanged(); + } else { + testErrorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public Builder clearTestErrors() { + if (testErrorsBuilder_ == null) { + testErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + testErrorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public Builder removeTestErrors(int index) { + if (testErrorsBuilder_ == null) { + ensureTestErrorsIsMutable(); + testErrors_.remove(index); + onChanged(); + } else { + testErrorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.TestError.Builder getTestErrorsBuilder( + int index) { + return getTestErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.TestErrorOrBuilder getTestErrorsOrBuilder( + int index) { + if (testErrorsBuilder_ == null) { + return testErrors_.get(index); + } else { + return testErrorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public java.util.List + getTestErrorsOrBuilderList() { + if (testErrorsBuilder_ != null) { + return testErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(testErrors_); + } + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.TestError.Builder addTestErrorsBuilder() { + return getTestErrorsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.TestError.getDefaultInstance()); + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.TestError.Builder addTestErrorsBuilder( + int index) { + return getTestErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3beta1.TestError.getDefaultInstance()); + } + /** + * + * + *
+     * Errors of running deployment tests.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + public java.util.List + getTestErrorsBuilderList() { + return getTestErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.TestError, + com.google.cloud.dialogflow.cx.v3beta1.TestError.Builder, + com.google.cloud.dialogflow.cx.v3beta1.TestErrorOrBuilder> + getTestErrorsFieldBuilder() { + if (testErrorsBuilder_ == null) { + testErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.TestError, + com.google.cloud.dialogflow.cx.v3beta1.TestError.Builder, + com.google.cloud.dialogflow.cx.v3beta1.TestErrorOrBuilder>( + testErrors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + testErrors_ = null; + } + return testErrorsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) + private static final com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployFlowMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployFlowMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowMetadataOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowMetadataOrBuilder.java new file mode 100644 index 000000000..0180694ea --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowMetadataOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/environment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface DeployFlowMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + java.util.List getTestErrorsList(); + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + com.google.cloud.dialogflow.cx.v3beta1.TestError getTestErrors(int index); + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + int getTestErrorsCount(); + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + java.util.List + getTestErrorsOrBuilderList(); + /** + * + * + *
+   * Errors of running deployment tests.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.TestError test_errors = 1; + */ + com.google.cloud.dialogflow.cx.v3beta1.TestErrorOrBuilder getTestErrorsOrBuilder(int index); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowRequest.java new file mode 100644 index 000000000..1dcbd92f2 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowRequest.java @@ -0,0 +1,872 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/environment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} + */ +public final class DeployFlowRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) + DeployFlowRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployFlowRequest.newBuilder() to construct. + private DeployFlowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployFlowRequest() { + environment_ = ""; + flowVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployFlowRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployFlowRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + environment_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + flowVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.Builder.class); + } + + public static final int ENVIRONMENT_FIELD_NUMBER = 1; + private volatile java.lang.Object environment_; + /** + * + * + *
+   * Required. The environment to deploy the flow to.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The environment. + */ + @java.lang.Override + public java.lang.String getEnvironment() { + java.lang.Object ref = environment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environment_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The environment to deploy the flow to.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for environment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEnvironmentBytes() { + java.lang.Object ref = environment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + environment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLOW_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object flowVersion_; + /** + * + * + *
+   * Required. The flow version to deploy.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flowVersion. + */ + @java.lang.Override + public java.lang.String getFlowVersion() { + java.lang.Object ref = flowVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flowVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The flow version to deploy.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flowVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlowVersionBytes() { + java.lang.Object ref = flowVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flowVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flowVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, environment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flowVersion_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest other = + (com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) obj; + + if (!getEnvironment().equals(other.getEnvironment())) return false; + if (!getFlowVersion().equals(other.getFlowVersion())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + getEnvironment().hashCode(); + hash = (37 * hash) + FLOW_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getFlowVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + environment_ = ""; + + flowVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest build() { + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest result = + new com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest(this); + result.environment_ = environment_; + result.flowVersion_ = flowVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.getDefaultInstance()) + return this; + if (!other.getEnvironment().isEmpty()) { + environment_ = other.environment_; + onChanged(); + } + if (!other.getFlowVersion().isEmpty()) { + flowVersion_ = other.flowVersion_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object environment_ = ""; + /** + * + * + *
+     * Required. The environment to deploy the flow to.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The environment. + */ + public java.lang.String getEnvironment() { + java.lang.Object ref = environment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The environment to deploy the flow to.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for environment. + */ + public com.google.protobuf.ByteString getEnvironmentBytes() { + java.lang.Object ref = environment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + environment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The environment to deploy the flow to.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + environment_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The environment to deploy the flow to.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEnvironment() { + + environment_ = getDefaultInstance().getEnvironment(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The environment to deploy the flow to.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + environment_ = value; + onChanged(); + return this; + } + + private java.lang.Object flowVersion_ = ""; + /** + * + * + *
+     * Required. The flow version to deploy.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flowVersion. + */ + public java.lang.String getFlowVersion() { + java.lang.Object ref = flowVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flowVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The flow version to deploy.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flowVersion. + */ + public com.google.protobuf.ByteString getFlowVersionBytes() { + java.lang.Object ref = flowVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flowVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The flow version to deploy.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The flowVersion to set. + * @return This builder for chaining. + */ + public Builder setFlowVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + flowVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The flow version to deploy.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFlowVersion() { + + flowVersion_ = getDefaultInstance().getFlowVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The flow version to deploy.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * flows/<Flow ID>/versions/<Version ID>`.
+     * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for flowVersion to set. + * @return This builder for chaining. + */ + public Builder setFlowVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + flowVersion_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) + private static final com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployFlowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployFlowRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowRequestOrBuilder.java new file mode 100644 index 000000000..898aac1e8 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/environment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface DeployFlowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The environment to deploy the flow to.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The environment. + */ + java.lang.String getEnvironment(); + /** + * + * + *
+   * Required. The environment to deploy the flow to.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for environment. + */ + com.google.protobuf.ByteString getEnvironmentBytes(); + + /** + * + * + *
+   * Required. The flow version to deploy.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The flowVersion. + */ + java.lang.String getFlowVersion(); + /** + * + * + *
+   * Required. The flow version to deploy.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * flows/<Flow ID>/versions/<Version ID>`.
+   * 
+ * + * + * string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for flowVersion. + */ + com.google.protobuf.ByteString getFlowVersionBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowResponse.java new file mode 100644 index 000000000..b18e16de9 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowResponse.java @@ -0,0 +1,930 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/environment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} + */ +public final class DeployFlowResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) + DeployFlowResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployFlowResponse.newBuilder() to construct. + private DeployFlowResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployFlowResponse() { + deployment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeployFlowResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployFlowResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder subBuilder = null; + if (environment_ != null) { + subBuilder = environment_.toBuilder(); + } + environment_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.Environment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(environment_); + environment_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + deployment_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.class, + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.Builder.class); + } + + public static final int ENVIRONMENT_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.cx.v3beta1.Environment environment_; + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + * + * @return Whether the environment field is set. + */ + @java.lang.Override + public boolean hasEnvironment() { + return environment_ != null; + } + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + * + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Environment getEnvironment() { + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.getDefaultInstance() + : environment_; + } + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder getEnvironmentOrBuilder() { + return getEnvironment(); + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 2; + private volatile java.lang.Object deployment_; + /** + * + * + *
+   * The name of the flow version deployment.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>/deployments/<Deployment ID>`.
+   * 
+ * + * string deployment = 2; + * + * @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; + } + } + /** + * + * + *
+   * The name of the flow version deployment.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>/deployments/<Deployment ID>`.
+   * 
+ * + * string deployment = 2; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (environment_ != null) { + output.writeMessage(1, getEnvironment()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployment_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (environment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnvironment()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployment_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse other = + (com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) obj; + + if (hasEnvironment() != other.hasEnvironment()) return false; + if (hasEnvironment()) { + if (!getEnvironment().equals(other.getEnvironment())) return false; + } + if (!getDeployment().equals(other.getDeployment())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnvironment()) { + hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + getEnvironment().hashCode(); + } + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.class, + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (environmentBuilder_ == null) { + environment_ = null; + } else { + environment_ = null; + environmentBuilder_ = null; + } + deployment_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse build() { + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse result = + new com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse(this); + if (environmentBuilder_ == null) { + result.environment_ = environment_; + } else { + result.environment_ = environmentBuilder_.build(); + } + result.deployment_ = deployment_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.getDefaultInstance()) + return this; + if (other.hasEnvironment()) { + mergeEnvironment(other.getEnvironment()); + } + if (!other.getDeployment().isEmpty()) { + deployment_ = other.deployment_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dialogflow.cx.v3beta1.Environment environment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Environment, + com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder, + com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder> + environmentBuilder_; + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + * + * @return Whether the environment field is set. + */ + public boolean hasEnvironment() { + return environmentBuilder_ != null || environment_ != null; + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + * + * @return The environment. + */ + public com.google.cloud.dialogflow.cx.v3beta1.Environment getEnvironment() { + if (environmentBuilder_ == null) { + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.getDefaultInstance() + : environment_; + } else { + return environmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + */ + public Builder setEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environment value) { + if (environmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environment_ = value; + onChanged(); + } else { + environmentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + */ + public Builder setEnvironment( + com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder builderForValue) { + if (environmentBuilder_ == null) { + environment_ = builderForValue.build(); + onChanged(); + } else { + environmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + */ + public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environment value) { + if (environmentBuilder_ == null) { + if (environment_ != null) { + environment_ = + com.google.cloud.dialogflow.cx.v3beta1.Environment.newBuilder(environment_) + .mergeFrom(value) + .buildPartial(); + } else { + environment_ = value; + } + onChanged(); + } else { + environmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + */ + public Builder clearEnvironment() { + if (environmentBuilder_ == null) { + environment_ = null; + onChanged(); + } else { + environment_ = null; + environmentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder getEnvironmentBuilder() { + + onChanged(); + return getEnvironmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder getEnvironmentOrBuilder() { + if (environmentBuilder_ != null) { + return environmentBuilder_.getMessageOrBuilder(); + } else { + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.getDefaultInstance() + : environment_; + } + } + /** + * + * + *
+     * The updated environment where the flow is deployed.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Environment, + com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder, + com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder> + getEnvironmentFieldBuilder() { + if (environmentBuilder_ == null) { + environmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Environment, + com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder, + com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder>( + getEnvironment(), getParentForChildren(), isClean()); + environment_ = null; + } + return environmentBuilder_; + } + + private java.lang.Object deployment_ = ""; + /** + * + * + *
+     * The name of the flow version deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * string deployment = 2; + * + * @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; + } + } + /** + * + * + *
+     * The name of the flow version deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * string deployment = 2; + * + * @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; + } + } + /** + * + * + *
+     * The name of the flow version deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * string deployment = 2; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the flow version deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * string deployment = 2; + * + * @return This builder for chaining. + */ + public Builder clearDeployment() { + + deployment_ = getDefaultInstance().getDeployment(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the flow version deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * string deployment = 2; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) + private static final com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployFlowResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployFlowResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowResponseOrBuilder.java new file mode 100644 index 000000000..b76138272 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowResponseOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/environment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface DeployFlowResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + * + * @return Whether the environment field is set. + */ + boolean hasEnvironment(); + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + * + * @return The environment. + */ + com.google.cloud.dialogflow.cx.v3beta1.Environment getEnvironment(); + /** + * + * + *
+   * The updated environment where the flow is deployed.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; + */ + com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder getEnvironmentOrBuilder(); + + /** + * + * + *
+   * The name of the flow version deployment.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>/deployments/<Deployment ID>`.
+   * 
+ * + * string deployment = 2; + * + * @return The deployment. + */ + java.lang.String getDeployment(); + /** + * + * + *
+   * The name of the flow version deployment.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>/deployments/<Deployment ID>`.
+   * 
+ * + * string deployment = 2; + * + * @return The bytes for deployment. + */ + com.google.protobuf.ByteString getDeploymentBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Deployment.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Deployment.java new file mode 100644 index 000000000..1bb51822e --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Deployment.java @@ -0,0 +1,3066 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/deployment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * Represents an deployment in an environment. A deployment happens when a flow
+ * version configured to be active in the environment. You can configure running
+ * pre-deployment steps, e.g. running validation test cases, experiment
+ * auto-rollout, etc.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Deployment} + */ +public final class Deployment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Deployment) + DeploymentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Deployment.newBuilder() to construct. + private Deployment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Deployment() { + name_ = ""; + flowVersion_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Deployment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Deployment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + flowVersion_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 34: + { + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.Builder subBuilder = null; + if (result_ != null) { + subBuilder = result_.toBuilder(); + } + result_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(result_); + result_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Deployment.class, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Builder.class); + } + + /** + * + * + *
+   * The state of the deployment.
+   * 
+ * + * Protobuf enum {@code google.cloud.dialogflow.cx.v3beta1.Deployment.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * State unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The deployment is running.
+     * 
+ * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
+     * The deployment succeeded.
+     * 
+ * + * SUCCEEDED = 2; + */ + SUCCEEDED(2), + /** + * + * + *
+     * The deployment failed.
+     * 
+ * + * FAILED = 3; + */ + FAILED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * State unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The deployment is running.
+     * 
+ * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + /** + * + * + *
+     * The deployment succeeded.
+     * 
+ * + * SUCCEEDED = 2; + */ + public static final int SUCCEEDED_VALUE = 2; + /** + * + * + *
+     * The deployment 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.Deployment.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.dialogflow.cx.v3beta1.Deployment.State) + } + + public interface ResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Deployment.Result) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the deploymentTestResults. + */ + java.util.List getDeploymentTestResultsList(); + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of deploymentTestResults. + */ + int getDeploymentTestResultsCount(); + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The deploymentTestResults at the given index. + */ + java.lang.String getDeploymentTestResults(int index); + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the deploymentTestResults at the given index. + */ + com.google.protobuf.ByteString getDeploymentTestResultsBytes(int index); + + /** + * + * + *
+     * The name of the experiment triggered by this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+     * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The experiment. + */ + java.lang.String getExperiment(); + /** + * + * + *
+     * The name of the experiment triggered by this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+     * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for experiment. + */ + com.google.protobuf.ByteString getExperimentBytes(); + } + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Deployment.Result} + */ + public static final class Result extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Deployment.Result) + ResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use Result.newBuilder() to construct. + private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Result() { + deploymentTestResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; + experiment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Result(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Result( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deploymentTestResults_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deploymentTestResults_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + experiment_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + deploymentTestResults_ = deploymentTestResults_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.class, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.Builder.class); + } + + public static final int DEPLOYMENT_TEST_RESULTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList deploymentTestResults_; + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the deploymentTestResults. + */ + public com.google.protobuf.ProtocolStringList getDeploymentTestResultsList() { + return deploymentTestResults_; + } + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of deploymentTestResults. + */ + public int getDeploymentTestResultsCount() { + return deploymentTestResults_.size(); + } + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The deploymentTestResults at the given index. + */ + public java.lang.String getDeploymentTestResults(int index) { + return deploymentTestResults_.get(index); + } + /** + * + * + *
+     * Results of test cases running before the deployment.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the deploymentTestResults at the given index. + */ + public com.google.protobuf.ByteString getDeploymentTestResultsBytes(int index) { + return deploymentTestResults_.getByteString(index); + } + + public static final int EXPERIMENT_FIELD_NUMBER = 2; + private volatile java.lang.Object experiment_; + /** + * + * + *
+     * The name of the experiment triggered by this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+     * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The experiment. + */ + @java.lang.Override + public java.lang.String getExperiment() { + java.lang.Object ref = experiment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + experiment_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the experiment triggered by this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+     * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for experiment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExperimentBytes() { + java.lang.Object ref = experiment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + experiment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < deploymentTestResults_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, deploymentTestResults_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(experiment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, experiment_); + } + unknownFields.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 < deploymentTestResults_.size(); i++) { + dataSize += computeStringSizeNoTag(deploymentTestResults_.getRaw(i)); + } + size += dataSize; + size += 1 * getDeploymentTestResultsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(experiment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, experiment_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result other = + (com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result) obj; + + if (!getDeploymentTestResultsList().equals(other.getDeploymentTestResultsList())) + return false; + if (!getExperiment().equals(other.getExperiment())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDeploymentTestResultsCount() > 0) { + hash = (37 * hash) + DEPLOYMENT_TEST_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentTestResultsList().hashCode(); + } + hash = (37 * hash) + EXPERIMENT_FIELD_NUMBER; + hash = (53 * hash) + getExperiment().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Deployment.Result} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Deployment.Result) + com.google.cloud.dialogflow.cx.v3beta1.Deployment.ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.class, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + deploymentTestResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + experiment_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_Result_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result build() { + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = + new com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + deploymentTestResults_ = deploymentTestResults_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deploymentTestResults_ = deploymentTestResults_; + result.experiment_ = experiment_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.getDefaultInstance()) + return this; + if (!other.deploymentTestResults_.isEmpty()) { + if (deploymentTestResults_.isEmpty()) { + deploymentTestResults_ = other.deploymentTestResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentTestResultsIsMutable(); + deploymentTestResults_.addAll(other.deploymentTestResults_); + } + onChanged(); + } + if (!other.getExperiment().isEmpty()) { + experiment_ = other.experiment_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList deploymentTestResults_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureDeploymentTestResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deploymentTestResults_ = + new com.google.protobuf.LazyStringArrayList(deploymentTestResults_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the deploymentTestResults. + */ + public com.google.protobuf.ProtocolStringList getDeploymentTestResultsList() { + return deploymentTestResults_.getUnmodifiableView(); + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of deploymentTestResults. + */ + public int getDeploymentTestResultsCount() { + return deploymentTestResults_.size(); + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The deploymentTestResults at the given index. + */ + public java.lang.String getDeploymentTestResults(int index) { + return deploymentTestResults_.get(index); + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the deploymentTestResults at the given index. + */ + public com.google.protobuf.ByteString getDeploymentTestResultsBytes(int index) { + return deploymentTestResults_.getByteString(index); + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The deploymentTestResults to set. + * @return This builder for chaining. + */ + public Builder setDeploymentTestResults(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentTestResultsIsMutable(); + deploymentTestResults_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param value The deploymentTestResults to add. + * @return This builder for chaining. + */ + public Builder addDeploymentTestResults(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentTestResultsIsMutable(); + deploymentTestResults_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param values The deploymentTestResults to add. + * @return This builder for chaining. + */ + public Builder addAllDeploymentTestResults(java.lang.Iterable values) { + ensureDeploymentTestResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deploymentTestResults_); + onChanged(); + return this; + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentTestResults() { + deploymentTestResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Results of test cases running before the deployment.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+       * 
+ * + * + * repeated string deployment_test_results = 1 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the deploymentTestResults to add. + * @return This builder for chaining. + */ + public Builder addDeploymentTestResultsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDeploymentTestResultsIsMutable(); + deploymentTestResults_.add(value); + onChanged(); + return this; + } + + private java.lang.Object experiment_ = ""; + /** + * + * + *
+       * The name of the experiment triggered by this deployment.
+       * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+       * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The experiment. + */ + public java.lang.String getExperiment() { + java.lang.Object ref = experiment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + experiment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the experiment triggered by this deployment.
+       * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+       * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for experiment. + */ + public com.google.protobuf.ByteString getExperimentBytes() { + java.lang.Object ref = experiment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + experiment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the experiment triggered by this deployment.
+       * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+       * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The experiment to set. + * @return This builder for chaining. + */ + public Builder setExperiment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + experiment_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the experiment triggered by this deployment.
+       * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+       * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearExperiment() { + + experiment_ = getDefaultInstance().getExperiment(); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the experiment triggered by this deployment.
+       * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/environments/<Environment ID>/experiments/<Experiment ID>.
+       * 
+ * + * string experiment = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for experiment to set. + * @return This builder for chaining. + */ + public Builder setExperimentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + experiment_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Deployment.Result) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Deployment.Result) + private static final com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of the deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment 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 FLOW_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object flowVersion_; + /** + * + * + *
+   * The name of the flow version for this deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/versions/<Verion ID>.
+   * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The flowVersion. + */ + @java.lang.Override + public java.lang.String getFlowVersion() { + java.lang.Object ref = flowVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flowVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the flow version for this deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/versions/<Verion ID>.
+   * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for flowVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlowVersionBytes() { + java.lang.Object ref = flowVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flowVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_; + /** + * + * + *
+   * The current state of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The current state of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.State state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.cx.v3beta1.Deployment.State result = + com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.valueOf(state_); + return result == null + ? com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.UNRECOGNIZED + : result; + } + + public static final int RESULT_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result result_; + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + * + * @return Whether the result field is set. + */ + @java.lang.Override + public boolean hasResult() { + return result_ != null; + } + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result getResult() { + return result_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.getDefaultInstance() + : result_; + } + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.ResultOrBuilder getResultOrBuilder() { + return getResult(); + } + + public static final int START_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flowVersion_); + } + if (state_ + != com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (result_ != null) { + output.writeMessage(4, getResult()); + } + if (startTime_ != null) { + output.writeMessage(5, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(6, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flowVersion_); + } + if (state_ + != com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (result_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResult()); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.Deployment)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.Deployment other = + (com.google.cloud.dialogflow.cx.v3beta1.Deployment) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFlowVersion().equals(other.getFlowVersion())) return false; + if (state_ != other.state_) return false; + if (hasResult() != other.hasResult()) return false; + if (hasResult()) { + if (!getResult().equals(other.getResult())) 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FLOW_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getFlowVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasResult()) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().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(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.Deployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.Deployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Deployment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents an deployment in an environment. A deployment happens when a flow
+   * version configured to be active in the environment. You can configure running
+   * pre-deployment steps, e.g. running validation test cases, experiment
+   * auto-rollout, etc.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Deployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Deployment) + com.google.cloud.dialogflow.cx.v3beta1.DeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Deployment.class, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.Deployment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + flowVersion_ = ""; + + state_ = 0; + + if (resultBuilder_ == null) { + result_ = null; + } else { + result_ = null; + resultBuilder_ = null; + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.Deployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment build() { + com.google.cloud.dialogflow.cx.v3beta1.Deployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.Deployment result = + new com.google.cloud.dialogflow.cx.v3beta1.Deployment(this); + result.name_ = name_; + result.flowVersion_ = flowVersion_; + result.state_ = state_; + if (resultBuilder_ == null) { + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.Deployment) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.Deployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Deployment other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.Deployment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getFlowVersion().isEmpty()) { + flowVersion_ = other.flowVersion_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasResult()) { + mergeResult(other.getResult()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.Deployment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.Deployment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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; + onChanged(); + return this; + } + + private java.lang.Object flowVersion_ = ""; + /** + * + * + *
+     * The name of the flow version for this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/versions/<Verion ID>.
+     * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The flowVersion. + */ + public java.lang.String getFlowVersion() { + java.lang.Object ref = flowVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flowVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the flow version for this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/versions/<Verion ID>.
+     * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for flowVersion. + */ + public com.google.protobuf.ByteString getFlowVersionBytes() { + java.lang.Object ref = flowVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flowVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the flow version for this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/versions/<Verion ID>.
+     * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The flowVersion to set. + * @return This builder for chaining. + */ + public Builder setFlowVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + flowVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the flow version for this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/versions/<Verion ID>.
+     * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearFlowVersion() { + + flowVersion_ = getDefaultInstance().getFlowVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the flow version for this deployment.
+     * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/versions/<Verion ID>.
+     * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for flowVersion to set. + * @return This builder for chaining. + */ + public Builder setFlowVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + flowVersion_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * The current state of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The current state of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.State state = 3; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The current state of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.State state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.cx.v3beta1.Deployment.State result = + com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.valueOf(state_); + return result == null + ? com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The current state of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.State state = 3; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dialogflow.cx.v3beta1.Deployment.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The current state of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.State state = 3; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result result_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.ResultOrBuilder> + resultBuilder_; + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + * + * @return Whether the result field is set. + */ + public boolean hasResult() { + return resultBuilder_ != null || result_ != null; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + * + * @return The result. + */ + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result getResult() { + if (resultBuilder_ == null) { + return result_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.getDefaultInstance() + : result_; + } else { + return resultBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + */ + public Builder setResult(com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + resultBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + */ + public Builder setResult( + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.Builder builderForValue) { + if (resultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + resultBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + */ + public Builder mergeResult(com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result value) { + if (resultBuilder_ == null) { + if (result_ != null) { + result_ = + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.newBuilder(result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + resultBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + */ + public Builder clearResult() { + if (resultBuilder_ == null) { + result_ = null; + onChanged(); + } else { + result_ = null; + resultBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.Builder getResultBuilder() { + + onChanged(); + return getResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.ResultOrBuilder getResultOrBuilder() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilder(); + } else { + return result_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.getDefaultInstance() + : result_; + } + } + /** + * + * + *
+     * Result of the deployment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.ResultOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.ResultOrBuilder>( + getResult(), getParentForChildren(), isClean()); + result_ = null; + } + return resultBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @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(); + } + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Start time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + 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.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @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(); + } + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * End time of this deployment.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Deployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Deployment) + private static final com.google.cloud.dialogflow.cx.v3beta1.Deployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Deployment(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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 { + return new Deployment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentName.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentName.java new file mode 100644 index 000000000..f32ab0db7 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentName.java @@ -0,0 +1,298 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3beta1; + +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_AGENT_ENVIRONMENT_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String agent; + private final String environment; + private final String deployment; + + @Deprecated + protected DeploymentName() { + project = null; + location = null; + agent = null; + environment = null; + deployment = null; + } + + private DeploymentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + agent = Preconditions.checkNotNull(builder.getAgent()); + environment = Preconditions.checkNotNull(builder.getEnvironment()); + deployment = Preconditions.checkNotNull(builder.getDeployment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + public String getEnvironment() { + return environment; + } + + 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 agent, String environment, String deployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .setEnvironment(environment) + .setDeployment(deployment) + .build(); + } + + public static String format( + String project, String location, String agent, String environment, String deployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .setEnvironment(environment) + .setDeployment(deployment) + .build() + .toString(); + } + + public static DeploymentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AGENT_ENVIRONMENT_DEPLOYMENT.validatedMatch( + formattedString, "DeploymentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("agent"), + matchMap.get("environment"), + 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_AGENT_ENVIRONMENT_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 (agent != null) { + fieldMapBuilder.put("agent", agent); + } + if (environment != null) { + fieldMapBuilder.put("environment", environment); + } + 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_AGENT_ENVIRONMENT_DEPLOYMENT.instantiate( + "project", + project, + "location", + location, + "agent", + agent, + "environment", + environment, + "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.agent, that.agent) + && Objects.equals(this.environment, that.environment) + && 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(agent); + h *= 1000003; + h ^= Objects.hashCode(environment); + h *= 1000003; + h ^= Objects.hashCode(deployment); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}. + */ + public static class Builder { + private String project; + private String location; + private String agent; + private String environment; + private String deployment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + public String getEnvironment() { + return environment; + } + + 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 setAgent(String agent) { + this.agent = agent; + return this; + } + + public Builder setEnvironment(String environment) { + this.environment = environment; + 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.agent = deploymentName.agent; + this.environment = deploymentName.environment; + this.deployment = deploymentName.deployment; + } + + public DeploymentName build() { + return new DeploymentName(this); + } + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentOrBuilder.java new file mode 100644 index 000000000..eed7c1d96 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentOrBuilder.java @@ -0,0 +1,213 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/deployment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface DeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Deployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment ID>.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The name of the flow version for this deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/versions/<Verion ID>.
+   * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The flowVersion. + */ + java.lang.String getFlowVersion(); + /** + * + * + *
+   * The name of the flow version for this deployment.
+   * Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/versions/<Verion ID>.
+   * 
+ * + * string flow_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for flowVersion. + */ + com.google.protobuf.ByteString getFlowVersionBytes(); + + /** + * + * + *
+   * The current state of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.State state = 3; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * The current state of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.State state = 3; + * + * @return The state. + */ + com.google.cloud.dialogflow.cx.v3beta1.Deployment.State getState(); + + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + * + * @return Whether the result field is set. + */ + boolean hasResult(); + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + * + * @return The result. + */ + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result getResult(); + /** + * + * + *
+   * Result of the deployment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; + */ + com.google.cloud.dialogflow.cx.v3beta1.Deployment.ResultOrBuilder getResultOrBuilder(); + + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Start time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * End time of this deployment.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 6; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentProto.java new file mode 100644 index 000000000..352be4aa4 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentProto.java @@ -0,0 +1,189 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/deployment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public final class DeploymentProto { + private DeploymentProto() {} + + 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_dialogflow_cx_v3beta1_Deployment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_Result_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_Result_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_GetDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_GetDeploymentRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/dialogflow/cx/v3beta1/dep" + + "loyment.proto\022\"google.cloud.dialogflow.c" + + "x.v3beta1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\033google/protobuf/empty.proto\032 googl" + + "e/protobuf/field_mask.proto\032\037google/prot" + + "obuf/timestamp.proto\"\275\005\n\nDeployment\022\014\n\004n" + + "ame\030\001 \001(\t\022<\n\014flow_version\030\002 \001(\tB&\372A#\n!di" + + "alogflow.googleapis.com/Version\022C\n\005state" + + "\030\003 \001(\01624.google.cloud.dialogflow.cx.v3be" + + "ta1.Deployment.State\022E\n\006result\030\004 \001(\01325.g" + + "oogle.cloud.dialogflow.cx.v3beta1.Deploy" + + "ment.Result\022.\n\nstart_time\030\005 \001(\0132\032.google" + + ".protobuf.Timestamp\022,\n\010end_time\030\006 \001(\0132\032." + + "google.protobuf.Timestamp\032\227\001\n\006Result\022N\n\027" + + "deployment_test_results\030\001 \003(\tB-\372A*\n(dial" + + "ogflow.googleapis.com/TestCaseResult\022=\n\n" + + "experiment\030\002 \001(\tB)\372A&\n$dialogflow.google" + + "apis.com/Experiment\"F\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022" + + "\n\n\006FAILED\020\003:\226\001\352A\222\001\n$dialogflow.googleapi" + + "s.com/Deployment\022jprojects/{project}/loc" + + "ations/{location}/agents/{agent}/environ" + + "ments/{environment}/deployments/{deploym" + + "ent}\"}\n\026ListDeploymentsRequest\022<\n\006parent" + + "\030\001 \001(\tB,\340A\002\372A&\022$dialogflow.googleapis.co" + + "m/Deployment\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"w\n\027ListDeploymentsResponse\022C" + + "\n\013deployments\030\001 \003(\0132..google.cloud.dialo" + + "gflow.cx.v3beta1.Deployment\022\027\n\017next_page" + + "_token\030\002 \001(\t\"R\n\024GetDeploymentRequest\022:\n\004" + + "name\030\001 \001(\tB,\340A\002\372A&\n$dialogflow.googleapi" + + "s.com/Deployment2\314\004\n\013Deployments\022\351\001\n\017Lis" + + "tDeployments\022:.google.cloud.dialogflow.c" + + "x.v3beta1.ListDeploymentsRequest\032;.googl" + + "e.cloud.dialogflow.cx.v3beta1.ListDeploy" + + "mentsResponse\"]\202\323\344\223\002N\022L/v3beta1/{parent=" + + "projects/*/locations/*/agents/*/environm" + + "ents/*}/deployments\332A\006parent\022\326\001\n\rGetDepl" + + "oyment\0228.google.cloud.dialogflow.cx.v3be" + + "ta1.GetDeploymentRequest\032..google.cloud." + + "dialogflow.cx.v3beta1.Deployment\"[\202\323\344\223\002N" + + "\022L/v3beta1/{name=projects/*/locations/*/" + + "agents/*/environments/*/deployments/*}\332A" + + "\004name\032x\312A\031dialogflow.googleapis.com\322AYht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form,https://www.googleapis.com/auth/dia" + + "logflowB\327\001\n&com.google.cloud.dialogflow." + + "cx.v3beta1B\017DeploymentProtoP\001ZDgoogle.go" + + "lang.org/genproto/googleapis/cloud/dialo" + + "gflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Clo" + + "ud.Dialogflow.Cx.V3Beta1\352\002&Google::Cloud" + + "::Dialogflow::CX::V3beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_descriptor, + new java.lang.String[] { + "Name", "FlowVersion", "State", "Result", "StartTime", "EndTime", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_Result_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_Result_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_Deployment_Result_descriptor, + new java.lang.String[] { + "DeploymentTestResults", "Experiment", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsResponse_descriptor, + new java.lang.String[] { + "Deployments", "NextPageToken", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_GetDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_cx_v3beta1_GetDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_GetDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentRequest.java index bd285892d..da135d2b5 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentRequest.java @@ -406,7 +406,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSessionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } if (queryParams_ != null) { @@ -427,7 +427,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSessionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); } if (queryParams_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java index c84bebdc1..9c7dd701d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java @@ -578,7 +578,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, responseId_); } if (queryResult_ != null) { @@ -608,7 +608,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, responseId_); } if (queryResult_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DtmfInput.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DtmfInput.java index 5e7609785..f11cf088a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DtmfInput.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DtmfInput.java @@ -231,10 +231,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDigitsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digits_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, digits_); } - if (!getFinishDigitBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, finishDigit_); } unknownFields.writeTo(output); @@ -246,10 +246,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDigitsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digits_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, digits_); } - if (!getFinishDigitBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, finishDigit_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityType.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityType.java index 92481c340..b2d16e688 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityType.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityType.java @@ -908,7 +908,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } for (int i = 0; i < synonyms_.size(); i++) { @@ -923,7 +923,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } { @@ -1836,7 +1836,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); @@ -1848,7 +1848,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); @@ -2729,10 +2729,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (kind_ @@ -2766,10 +2766,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (kind_ diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Environment.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Environment.java index f46512d9b..d4ab06455 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Environment.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Environment.java @@ -131,6 +131,24 @@ private Environment( extensionRegistry)); break; } + case 58: + { + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.Builder + subBuilder = null; + if (testCasesConfig_ != null) { + subBuilder = testCasesConfig_.toBuilder(); + } + testCasesConfig_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(testCasesConfig_); + testCasesConfig_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -366,7 +384,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } unknownFields.writeTo(output); @@ -378,7 +396,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } size += unknownFields.getSerializedSize(); @@ -683,98 +701,1146 @@ public Builder mergeFrom( return this; } - private java.lang.Object version_ = ""; + private java.lang.Object version_ = ""; + /** + * + * + *
+       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * 
+ * + * + * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * 
+ * + * + * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * 
+ * + * + * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * 
+ * + * + * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * 
+ * + * + * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig) + private static final com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VersionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VersionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TestCasesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the testCases. + */ + java.util.List getTestCasesList(); + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of testCases. + */ + int getTestCasesCount(); + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The testCases at the given index. + */ + java.lang.String getTestCases(int index); + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the testCases at the given index. + */ + com.google.protobuf.ByteString getTestCasesBytes(int index); + + /** + * + * + *
+     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] periodically.
+     * Default false. If set to true, run once a day.
+     * 
+ * + * bool enable_continuous_run = 2; + * + * @return The enableContinuousRun. + */ + boolean getEnableContinuousRun(); + + /** + * + * + *
+     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] before
+     * deploying a flow version to the environment. Default false.
+     * 
+ * + * bool enable_predeployment_run = 3; + * + * @return The enablePredeploymentRun. + */ + boolean getEnablePredeploymentRun(); + } + /** + * + * + *
+   * The configuration for continuous tests.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} + */ + public static final class TestCasesConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) + TestCasesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TestCasesConfig.newBuilder() to construct. + private TestCasesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TestCasesConfig() { + testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TestCasesConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TestCasesConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + testCases_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + testCases_.add(s); + break; + } + case 16: + { + enableContinuousRun_ = input.readBool(); + break; + } + case 24: + { + enablePredeploymentRun_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + testCases_ = testCases_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_TestCasesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_TestCasesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.class, + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.Builder.class); + } + + public static final int TEST_CASES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList testCases_; + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the testCases. + */ + public com.google.protobuf.ProtocolStringList getTestCasesList() { + return testCases_; + } + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of testCases. + */ + public int getTestCasesCount() { + return testCases_.size(); + } + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The testCases at the given index. + */ + public java.lang.String getTestCases(int index) { + return testCases_.get(index); + } + /** + * + * + *
+     * A list of test case names to run. They should be under the same agent.
+     * Format of each test case name: `projects/<Project ID>/locations/
+     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+     * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the testCases at the given index. + */ + public com.google.protobuf.ByteString getTestCasesBytes(int index) { + return testCases_.getByteString(index); + } + + public static final int ENABLE_CONTINUOUS_RUN_FIELD_NUMBER = 2; + private boolean enableContinuousRun_; + /** + * + * + *
+     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] periodically.
+     * Default false. If set to true, run once a day.
+     * 
+ * + * bool enable_continuous_run = 2; + * + * @return The enableContinuousRun. + */ + @java.lang.Override + public boolean getEnableContinuousRun() { + return enableContinuousRun_; + } + + public static final int ENABLE_PREDEPLOYMENT_RUN_FIELD_NUMBER = 3; + private boolean enablePredeploymentRun_; + /** + * + * + *
+     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] before
+     * deploying a flow version to the environment. Default false.
+     * 
+ * + * bool enable_predeployment_run = 3; + * + * @return The enablePredeploymentRun. + */ + @java.lang.Override + public boolean getEnablePredeploymentRun() { + return enablePredeploymentRun_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < testCases_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, testCases_.getRaw(i)); + } + if (enableContinuousRun_ != false) { + output.writeBool(2, enableContinuousRun_); + } + if (enablePredeploymentRun_ != false) { + output.writeBool(3, enablePredeploymentRun_); + } + unknownFields.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 < testCases_.size(); i++) { + dataSize += computeStringSizeNoTag(testCases_.getRaw(i)); + } + size += dataSize; + size += 1 * getTestCasesList().size(); + } + if (enableContinuousRun_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableContinuousRun_); + } + if (enablePredeploymentRun_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enablePredeploymentRun_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig other = + (com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) obj; + + if (!getTestCasesList().equals(other.getTestCasesList())) return false; + if (getEnableContinuousRun() != other.getEnableContinuousRun()) return false; + if (getEnablePredeploymentRun() != other.getEnablePredeploymentRun()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTestCasesCount() > 0) { + hash = (37 * hash) + TEST_CASES_FIELD_NUMBER; + hash = (53 * hash) + getTestCasesList().hashCode(); + } + hash = (37 * hash) + ENABLE_CONTINUOUS_RUN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableContinuousRun()); + hash = (37 * hash) + ENABLE_PREDEPLOYMENT_RUN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePredeploymentRun()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The configuration for continuous tests.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_TestCasesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_TestCasesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.class, + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + enableContinuousRun_ = false; + + enablePredeploymentRun_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_TestCasesConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig build() { + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig result = + new com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + testCases_ = testCases_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.testCases_ = testCases_; + result.enableContinuousRun_ = enableContinuousRun_; + result.enablePredeploymentRun_ = enablePredeploymentRun_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + .getDefaultInstance()) return this; + if (!other.testCases_.isEmpty()) { + if (testCases_.isEmpty()) { + testCases_ = other.testCases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTestCasesIsMutable(); + testCases_.addAll(other.testCases_); + } + onChanged(); + } + if (other.getEnableContinuousRun() != false) { + setEnableContinuousRun(other.getEnableContinuousRun()); + } + if (other.getEnablePredeploymentRun() != false) { + setEnablePredeploymentRun(other.getEnablePredeploymentRun()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList testCases_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTestCasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + testCases_ = new com.google.protobuf.LazyStringArrayList(testCases_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the testCases. + */ + public com.google.protobuf.ProtocolStringList getTestCasesList() { + return testCases_.getUnmodifiableView(); + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return The count of testCases. + */ + public int getTestCasesCount() { + return testCases_.size(); + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The testCases at the given index. + */ + public java.lang.String getTestCases(int index) { + return testCases_.get(index); + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the testCases at the given index. + */ + public com.google.protobuf.ByteString getTestCasesBytes(int index) { + return testCases_.getByteString(index); + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The testCases to set. + * @return This builder for chaining. + */ + public Builder setTestCases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestCasesIsMutable(); + testCases_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The testCases to add. + * @return This builder for chaining. + */ + public Builder addTestCases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestCasesIsMutable(); + testCases_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param values The testCases to add. + * @return This builder for chaining. + */ + public Builder addAllTestCases(java.lang.Iterable values) { + ensureTestCasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, testCases_); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTestCases() { + testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * A list of test case names to run. They should be under the same agent.
+       * Format of each test case name: `projects/<Project ID>/locations/
+       * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
+       * 
+ * + * repeated string test_cases = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the testCases to add. + * @return This builder for chaining. + */ + public Builder addTestCasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTestCasesIsMutable(); + testCases_.add(value); + onChanged(); + return this; + } + + private boolean enableContinuousRun_; /** * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] periodically.
+       * Default false. If set to true, run once a day.
        * 
* - * - * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * bool enable_continuous_run = 2; * - * @return The version. + * @return The enableContinuousRun. */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean getEnableContinuousRun() { + return enableContinuousRun_; } /** * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] periodically.
+       * Default false. If set to true, run once a day.
        * 
* - * - * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * bool enable_continuous_run = 2; * - * @return The bytes for version. + * @param value The enableContinuousRun to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setEnableContinuousRun(boolean value) { + + enableContinuousRun_ = value; + onChanged(); + return this; } /** * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] periodically.
+       * Default false. If set to true, run once a day.
        * 
* - * - * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * bool enable_continuous_run = 2; * - * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder clearEnableContinuousRun() { - version_ = value; + enableContinuousRun_ = false; onChanged(); return this; } + + private boolean enablePredeploymentRun_; /** * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] before
+       * deploying a flow version to the environment. Default false.
        * 
* - * - * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * bool enable_predeployment_run = 3; + * + * @return The enablePredeploymentRun. + */ + @java.lang.Override + public boolean getEnablePredeploymentRun() { + return enablePredeploymentRun_; + } + /** * + * + *
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] before
+       * deploying a flow version to the environment. Default false.
+       * 
+ * + * bool enable_predeployment_run = 3; + * + * @param value The enablePredeploymentRun to set. * @return This builder for chaining. */ - public Builder clearVersion() { + public Builder setEnablePredeploymentRun(boolean value) { - version_ = getDefaultInstance().getVersion(); + enablePredeploymentRun_ = value; onChanged(); return this; } @@ -782,24 +1848,17 @@ public Builder clearVersion() { * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] before
+       * deploying a flow version to the environment. Default false.
        * 
* - * - * string version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * bool enable_predeployment_run = 3; * - * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearEnablePredeploymentRun() { - version_ = value; + enablePredeploymentRun_ = false; onChanged(); return this; } @@ -816,44 +1875,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig) - private static final com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) + private static final com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig(); } - public static com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + public static com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig 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 VersionConfig parsePartialFrom( + public TestCasesConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VersionConfig(input, extensionRegistry); + return new TestCasesConfig(input, extensionRegistry); } }; - 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.dialogflow.cx.v3beta1.Environment.VersionConfig + public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1162,6 +2221,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); } + public static final int TEST_CASES_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig testCasesConfig_; + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + * + * @return Whether the testCasesConfig field is set. + */ + @java.lang.Override + public boolean hasTestCasesConfig() { + return testCasesConfig_ != null; + } + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + * + * @return The testCasesConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig getTestCasesConfig() { + return testCasesConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.getDefaultInstance() + : testCasesConfig_; + } + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfigOrBuilder + getTestCasesConfigOrBuilder() { + return getTestCasesConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1176,13 +2287,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (updateTime_ != null) { @@ -1191,6 +2302,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < versionConfigs_.size(); i++) { output.writeMessage(6, versionConfigs_.get(i)); } + if (testCasesConfig_ != null) { + output.writeMessage(7, getTestCasesConfig()); + } unknownFields.writeTo(output); } @@ -1200,13 +2314,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (updateTime_ != null) { @@ -1215,6 +2329,9 @@ public int getSerializedSize() { for (int i = 0; i < versionConfigs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, versionConfigs_.get(i)); } + if (testCasesConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTestCasesConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1239,6 +2356,10 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (hasTestCasesConfig() != other.hasTestCasesConfig()) return false; + if (hasTestCasesConfig()) { + if (!getTestCasesConfig().equals(other.getTestCasesConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1264,6 +2385,10 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + if (hasTestCasesConfig()) { + hash = (37 * hash) + TEST_CASES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTestCasesConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1436,6 +2561,12 @@ public Builder clear() { updateTime_ = null; updateTimeBuilder_ = null; } + if (testCasesConfigBuilder_ == null) { + testCasesConfig_ = null; + } else { + testCasesConfig_ = null; + testCasesConfigBuilder_ = null; + } return this; } @@ -1481,6 +2612,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment buildPartial() { } else { result.updateTime_ = updateTimeBuilder_.build(); } + if (testCasesConfigBuilder_ == null) { + result.testCasesConfig_ = testCasesConfig_; + } else { + result.testCasesConfig_ = testCasesConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1573,6 +2709,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Environment othe if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (other.hasTestCasesConfig()) { + mergeTestCasesConfig(other.getTestCasesConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2608,6 +3747,209 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig testCasesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig, + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfigOrBuilder> + testCasesConfigBuilder_; + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + * + * @return Whether the testCasesConfig field is set. + */ + public boolean hasTestCasesConfig() { + return testCasesConfigBuilder_ != null || testCasesConfig_ != null; + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + * + * @return The testCasesConfig. + */ + public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig getTestCasesConfig() { + if (testCasesConfigBuilder_ == null) { + return testCasesConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + .getDefaultInstance() + : testCasesConfig_; + } else { + return testCasesConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public Builder setTestCasesConfig( + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig value) { + if (testCasesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testCasesConfig_ = value; + onChanged(); + } else { + testCasesConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public Builder setTestCasesConfig( + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.Builder + builderForValue) { + if (testCasesConfigBuilder_ == null) { + testCasesConfig_ = builderForValue.build(); + onChanged(); + } else { + testCasesConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public Builder mergeTestCasesConfig( + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig value) { + if (testCasesConfigBuilder_ == null) { + if (testCasesConfig_ != null) { + testCasesConfig_ = + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.newBuilder( + testCasesConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + testCasesConfig_ = value; + } + onChanged(); + } else { + testCasesConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public Builder clearTestCasesConfig() { + if (testCasesConfigBuilder_ == null) { + testCasesConfig_ = null; + onChanged(); + } else { + testCasesConfig_ = null; + testCasesConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.Builder + getTestCasesConfigBuilder() { + + onChanged(); + return getTestCasesConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfigOrBuilder + getTestCasesConfigOrBuilder() { + if (testCasesConfigBuilder_ != null) { + return testCasesConfigBuilder_.getMessageOrBuilder(); + } else { + return testCasesConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + .getDefaultInstance() + : testCasesConfig_; + } + } + /** + * + * + *
+     * The test cases config for continuous tests of this environment.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig, + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfigOrBuilder> + getTestCasesConfigFieldBuilder() { + if (testCasesConfigBuilder_ == null) { + testCasesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig, + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfigOrBuilder>( + getTestCasesConfig(), getParentForChildren(), isClean()); + testCasesConfig_ = null; + } + return testCasesConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentOrBuilder.java index d90706d1c..357c633c2 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentOrBuilder.java @@ -223,4 +223,43 @@ public interface EnvironmentOrBuilder * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + * + * @return Whether the testCasesConfig field is set. + */ + boolean hasTestCasesConfig(); + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + * + * @return The testCasesConfig. + */ + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig getTestCasesConfig(); + /** + * + * + *
+   * The test cases config for continuous tests of this environment.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfigOrBuilder + getTestCasesConfigOrBuilder(); } diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentProto.java index c748a0bd3..81960338e 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentProto.java @@ -35,6 +35,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_VersionConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_VersionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_TestCasesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_TestCasesConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_ListEnvironmentsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -91,6 +95,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_ListContinuousTestResultsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_ListContinuousTestResultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -106,134 +122,156 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032\027google/api/client.proto\032\037google/api/fi" + "eld_behavior.proto\032\031google/api/resource." + "proto\0322google/cloud/dialogflow/cx/v3beta" - + "1/test_case.proto\032#google/longrunning/op" - + "erations.proto\032\033google/protobuf/empty.pr" - + "oto\032 google/protobuf/field_mask.proto\032\037g" - + "oogle/protobuf/timestamp.proto\"\252\003\n\013Envir" - + "onment\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001" - + "(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022[\n\017version_" - + "configs\030\006 \003(\0132=.google.cloud.dialogflow." - + "cx.v3beta1.Environment.VersionConfigB\003\340A" - + "\002\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\032K\n\rVersionConfig\022:\n\007vers" - + "ion\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapis" - + ".com/Version:}\352Az\n%dialogflow.googleapis" - + ".com/Environment\022Qprojects/{project}/loc" - + "ations/{location}/agents/{agent}/environ" - + "ments/{environment}\"\177\n\027ListEnvironmentsR" - + "equest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dialogfl" - + "ow.googleapis.com/Environment\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\030ListEnvi" - + "ronmentsResponse\022E\n\014environments\030\001 \003(\0132/" - + ".google.cloud.dialogflow.cx.v3beta1.Envi" - + "ronment\022\027\n\017next_page_token\030\002 \001(\t\"T\n\025GetE" - + "nvironmentRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%dialogflow.googleapis.com/Environment\"\244" - + "\001\n\030CreateEnvironmentRequest\022=\n\006parent\030\001 " - + "\001(\tB-\340A\002\372A\'\022%dialogflow.googleapis.com/E" - + "nvironment\022I\n\013environment\030\002 \001(\0132/.google" - + ".cloud.dialogflow.cx.v3beta1.Environment" - + "B\003\340A\002\"\233\001\n\030UpdateEnvironmentRequest\022I\n\013en" - + "vironment\030\001 \001(\0132/.google.cloud.dialogflo" - + "w.cx.v3beta1.EnvironmentB\003\340A\002\0224\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" - + "\340A\002\"W\n\030DeleteEnvironmentRequest\022;\n\004name\030" - + "\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googleapis.com" - + "/Environment\"\205\001\n\037LookupEnvironmentHistor" - + "yRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dialogfl" - + "ow.googleapis.com/Environment\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n LookupE" - + "nvironmentHistoryResponse\022E\n\014environment" - + "s\030\001 \003(\0132/.google.cloud.dialogflow.cx.v3b" - + "eta1.Environment\022\027\n\017next_page_token\030\002 \001(" - + "\t\"\215\004\n\024ContinuousTestResult\022\014\n\004name\030\001 \001(\t" - + "\022]\n\006result\030\002 \001(\0162M.google.cloud.dialogfl" - + "ow.cx.v3beta1.ContinuousTestResult.Aggre" - + "gatedTestResult\022H\n\021test_case_results\030\003 \003" - + "(\tB-\372A*\n(dialogflow.googleapis.com/TestC" - + "aseResult\022,\n\010run_time\030\004 \001(\0132\032.google.pro" - + "tobuf.Timestamp\"V\n\024AggregatedTestResult\022" - + "&\n\"AGGREGATED_TEST_RESULT_UNSPECIFIED\020\000\022" - + "\n\n\006PASSED\020\001\022\n\n\006FAILED\020\002:\267\001\352A\263\001\n.dialogfl" - + "ow.googleapis.com/ContinuousTestResult\022\200" - + "\001projects/{project}/locations/{location}" - + "/agents/{agent}/environments/{environmen" - + "t}/continuousTestResults/{continuous_tes" - + "t_result}\"^\n\030RunContinuousTestRequest\022B\n" - + "\013environment\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.g" - + "oogleapis.com/Environment\"u\n\031RunContinuo" - + "usTestResponse\022X\n\026continuous_test_result" - + "\030\001 \001(\01328.google.cloud.dialogflow.cx.v3be" - + "ta1.ContinuousTestResult\"Z\n\031RunContinuou" - + "sTestMetadata\022=\n\006errors\030\001 \003(\0132-.google.c" - + "loud.dialogflow.cx.v3beta1.TestError\"\221\001\n" - + " ListContinuousTestResultsRequest\022F\n\006par" - + "ent\030\001 \001(\tB6\340A\002\372A0\022.dialogflow.googleapis" - + ".com/ContinuousTestResult\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"\227\001\n!ListContinu" - + "ousTestResultsResponse\022Y\n\027continuous_tes" - + "t_results\030\001 \003(\01328.google.cloud.dialogflo" - + "w.cx.v3beta1.ContinuousTestResult\022\027\n\017nex" - + "t_page_token\030\002 \001(\t2\304\020\n\014Environments\022\336\001\n\020" - + "ListEnvironments\022;.google.cloud.dialogfl" - + "ow.cx.v3beta1.ListEnvironmentsRequest\032<." - + "google.cloud.dialogflow.cx.v3beta1.ListE" - + "nvironmentsResponse\"O\202\323\344\223\002@\022>/v3beta1/{p" - + "arent=projects/*/locations/*/agents/*}/e" - + "nvironments\332A\006parent\022\313\001\n\016GetEnvironment\022" - + "9.google.cloud.dialogflow.cx.v3beta1.Get" - + "EnvironmentRequest\032/.google.cloud.dialog" - + "flow.cx.v3beta1.Environment\"M\202\323\344\223\002@\022>/v3" - + "beta1/{name=projects/*/locations/*/agent" - + "s/*/environments/*}\332A\004name\022\203\002\n\021CreateEnv" - + "ironment\022<.google.cloud.dialogflow.cx.v3" - + "beta1.CreateEnvironmentRequest\032\035.google." - + "longrunning.Operation\"\220\001\202\323\344\223\002M\">/v3beta1" - + "/{parent=projects/*/locations/*/agents/*" - + "}/environments:\013environment\332A\022parent,env" - + "ironment\312A%\n\013Environment\022\026google.protobu" - + "f.Struct\022\224\002\n\021UpdateEnvironment\022<.google." - + "cloud.dialogflow.cx.v3beta1.UpdateEnviro" - + "nmentRequest\032\035.google.longrunning.Operat" - + "ion\"\241\001\202\323\344\223\002Y2J/v3beta1/{environment.name" - + "=projects/*/locations/*/agents/*/environ" - + "ments/*}:\013environment\332A\027environment,upda" - + "te_mask\312A%\n\013Environment\022\026google.protobuf" - + ".Struct\022\270\001\n\021DeleteEnvironment\022<.google.c" - + "loud.dialogflow.cx.v3beta1.DeleteEnviron" - + "mentRequest\032\026.google.protobuf.Empty\"M\202\323\344" - + "\223\002@*>/v3beta1/{name=projects/*/locations" - + "/*/agents/*/environments/*}\332A\004name\022\215\002\n\030L" - + "ookupEnvironmentHistory\022C.google.cloud.d" - + "ialogflow.cx.v3beta1.LookupEnvironmentHi" - + "storyRequest\032D.google.cloud.dialogflow.c" - + "x.v3beta1.LookupEnvironmentHistoryRespon" - + "se\"f\202\323\344\223\002Y\022W/v3beta1/{name=projects/*/lo" - + "cations/*/agents/*/environments/*}:looku" - + "pEnvironmentHistory\332A\004name\022\216\002\n\021RunContin" - + "uousTest\022<.google.cloud.dialogflow.cx.v3" - + "beta1.RunContinuousTestRequest\032\035.google." - + "longrunning.Operation\"\233\001\202\323\344\223\002\\\"W/v3beta1" - + "/{environment=projects/*/locations/*/age" - + "nts/*/environments/*}:runContinuousTest:" - + "\001*\312A6\n\031RunContinuousTestResponse\022\031RunCon" - + "tinuousTestMetadata\022\221\002\n\031ListContinuousTe" - + "stResults\022D.google.cloud.dialogflow.cx.v" - + "3beta1.ListContinuousTestResultsRequest\032" - + "E.google.cloud.dialogflow.cx.v3beta1.Lis" - + "tContinuousTestResultsResponse\"g\202\323\344\223\002X\022V" - + "/v3beta1/{parent=projects/*/locations/*/" - + "agents/*/environments/*}/continuousTestR" - + "esults\332A\006parent\032x\312A\031dialogflow.googleapi" - + "s.com\322AYhttps://www.googleapis.com/auth/" - + "cloud-platform,https://www.googleapis.co" - + "m/auth/dialogflowB\330\001\n&com.google.cloud.d" - + "ialogflow.cx.v3beta1B\020EnvironmentProtoP\001" - + "ZDgoogle.golang.org/genproto/googleapis/" - + "cloud/dialogflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002" - + "\"Google.Cloud.Dialogflow.Cx.V3Beta1\352\002&Go" - + "ogle::Cloud::Dialogflow::CX::V3beta1b\006pr" - + "oto3" + + "1/test_case.proto\0320google/cloud/dialogfl" + + "ow/cx/v3beta1/webhook.proto\032#google/long" + + "running/operations.proto\032\033google/protobu" + + "f/empty.proto\032 google/protobuf/field_mas" + + "k.proto\032\037google/protobuf/timestamp.proto" + + "\"\230\005\n\013Environment\022\014\n\004name\030\001 \001(\t\022\031\n\014displa" + + "y_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022[" + + "\n\017version_configs\030\006 \003(\0132=.google.cloud.d" + + "ialogflow.cx.v3beta1.Environment.Version" + + "ConfigB\003\340A\002\0224\n\013update_time\030\005 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022Z\n\021test_cases_" + + "config\030\007 \001(\0132?.google.cloud.dialogflow.c" + + "x.v3beta1.Environment.TestCasesConfig\032K\n" + + "\rVersionConfig\022:\n\007version\030\001 \001(\tB)\340A\002\372A#\n" + + "!dialogflow.googleapis.com/Version\032\217\001\n\017T" + + "estCasesConfig\022;\n\ntest_cases\030\001 \003(\tB\'\372A$\n" + + "\"dialogflow.googleapis.com/TestCase\022\035\n\025e" + + "nable_continuous_run\030\002 \001(\010\022 \n\030enable_pre" + + "deployment_run\030\003 \001(\010:}\352Az\n%dialogflow.go" + + "ogleapis.com/Environment\022Qprojects/{proj" + + "ect}/locations/{location}/agents/{agent}" + + "/environments/{environment}\"\177\n\027ListEnvir" + + "onmentsRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%" + + "dialogflow.googleapis.com/Environment\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\030" + + "ListEnvironmentsResponse\022E\n\014environments" + + "\030\001 \003(\0132/.google.cloud.dialogflow.cx.v3be" + + "ta1.Environment\022\027\n\017next_page_token\030\002 \001(\t" + + "\"T\n\025GetEnvironmentRequest\022;\n\004name\030\001 \001(\tB" + + "-\340A\002\372A\'\n%dialogflow.googleapis.com/Envir" + + "onment\"\244\001\n\030CreateEnvironmentRequest\022=\n\006p" + + "arent\030\001 \001(\tB-\340A\002\372A\'\022%dialogflow.googleap" + + "is.com/Environment\022I\n\013environment\030\002 \001(\0132" + + "/.google.cloud.dialogflow.cx.v3beta1.Env" + + "ironmentB\003\340A\002\"\233\001\n\030UpdateEnvironmentReque" + + "st\022I\n\013environment\030\001 \001(\0132/.google.cloud.d" + + "ialogflow.cx.v3beta1.EnvironmentB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\002\"W\n\030DeleteEnvironmentRequest\022" + + ";\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.google" + + "apis.com/Environment\"\205\001\n\037LookupEnvironme" + + "ntHistoryRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" + + "dialogflow.googleapis.com/Environment\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n" + + " LookupEnvironmentHistoryResponse\022E\n\014env" + + "ironments\030\001 \003(\0132/.google.cloud.dialogflo" + + "w.cx.v3beta1.Environment\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"\215\004\n\024ContinuousTestResult\022\014\n\004na" + + "me\030\001 \001(\t\022]\n\006result\030\002 \001(\0162M.google.cloud." + + "dialogflow.cx.v3beta1.ContinuousTestResu" + + "lt.AggregatedTestResult\022H\n\021test_case_res" + + "ults\030\003 \003(\tB-\372A*\n(dialogflow.googleapis.c" + + "om/TestCaseResult\022,\n\010run_time\030\004 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\"V\n\024AggregatedTes" + + "tResult\022&\n\"AGGREGATED_TEST_RESULT_UNSPEC" + + "IFIED\020\000\022\n\n\006PASSED\020\001\022\n\n\006FAILED\020\002:\267\001\352A\263\001\n." + + "dialogflow.googleapis.com/ContinuousTest" + + "Result\022\200\001projects/{project}/locations/{l" + + "ocation}/agents/{agent}/environments/{en" + + "vironment}/continuousTestResults/{contin" + + "uous_test_result}\"^\n\030RunContinuousTestRe" + + "quest\022B\n\013environment\030\001 \001(\tB-\340A\002\372A\'\n%dial" + + "ogflow.googleapis.com/Environment\"u\n\031Run" + + "ContinuousTestResponse\022X\n\026continuous_tes" + + "t_result\030\001 \001(\01328.google.cloud.dialogflow" + + ".cx.v3beta1.ContinuousTestResult\"Z\n\031RunC" + + "ontinuousTestMetadata\022=\n\006errors\030\001 \003(\0132-." + + "google.cloud.dialogflow.cx.v3beta1.TestE" + + "rror\"\221\001\n ListContinuousTestResultsReques" + + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.dialogflow.go" + + "ogleapis.com/ContinuousTestResult\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\227\001\n!Lis" + + "tContinuousTestResultsResponse\022Y\n\027contin" + + "uous_test_results\030\001 \003(\01328.google.cloud.d" + + "ialogflow.cx.v3beta1.ContinuousTestResul" + + "t\022\027\n\017next_page_token\030\002 \001(\t\"\230\001\n\021DeployFlo" + + "wRequest\022B\n\013environment\030\001 \001(\tB-\340A\002\372A\'\n%d" + + "ialogflow.googleapis.com/Environment\022?\n\014" + + "flow_version\030\002 \001(\tB)\340A\002\372A#\n!dialogflow.g" + + "oogleapis.com/Version\"n\n\022DeployFlowRespo" + + "nse\022D\n\013environment\030\001 \001(\0132/.google.cloud." + + "dialogflow.cx.v3beta1.Environment\022\022\n\ndep" + + "loyment\030\002 \001(\t\"X\n\022DeployFlowMetadata\022B\n\013t" + + "est_errors\030\001 \003(\0132-.google.cloud.dialogfl" + + "ow.cx.v3beta1.TestError2\262\022\n\014Environments" + + "\022\336\001\n\020ListEnvironments\022;.google.cloud.dia" + + "logflow.cx.v3beta1.ListEnvironmentsReque" + + "st\032<.google.cloud.dialogflow.cx.v3beta1." + + "ListEnvironmentsResponse\"O\202\323\344\223\002@\022>/v3bet" + + "a1/{parent=projects/*/locations/*/agents" + + "/*}/environments\332A\006parent\022\313\001\n\016GetEnviron" + + "ment\0229.google.cloud.dialogflow.cx.v3beta" + + "1.GetEnvironmentRequest\032/.google.cloud.d" + + "ialogflow.cx.v3beta1.Environment\"M\202\323\344\223\002@" + + "\022>/v3beta1/{name=projects/*/locations/*/" + + "agents/*/environments/*}\332A\004name\022\203\002\n\021Crea" + + "teEnvironment\022<.google.cloud.dialogflow." + + "cx.v3beta1.CreateEnvironmentRequest\032\035.go" + + "ogle.longrunning.Operation\"\220\001\202\323\344\223\002M\">/v3" + + "beta1/{parent=projects/*/locations/*/age" + + "nts/*}/environments:\013environment\332A\022paren" + + "t,environment\312A%\n\013Environment\022\026google.pr" + + "otobuf.Struct\022\224\002\n\021UpdateEnvironment\022<.go" + + "ogle.cloud.dialogflow.cx.v3beta1.UpdateE" + + "nvironmentRequest\032\035.google.longrunning.O" + + "peration\"\241\001\202\323\344\223\002Y2J/v3beta1/{environment" + + ".name=projects/*/locations/*/agents/*/en" + + "vironments/*}:\013environment\332A\027environment" + + ",update_mask\312A%\n\013Environment\022\026google.pro" + + "tobuf.Struct\022\270\001\n\021DeleteEnvironment\022<.goo" + + "gle.cloud.dialogflow.cx.v3beta1.DeleteEn" + + "vironmentRequest\032\026.google.protobuf.Empty" + + "\"M\202\323\344\223\002@*>/v3beta1/{name=projects/*/loca" + + "tions/*/agents/*/environments/*}\332A\004name\022" + + "\215\002\n\030LookupEnvironmentHistory\022C.google.cl" + + "oud.dialogflow.cx.v3beta1.LookupEnvironm" + + "entHistoryRequest\032D.google.cloud.dialogf" + + "low.cx.v3beta1.LookupEnvironmentHistoryR" + + "esponse\"f\202\323\344\223\002Y\022W/v3beta1/{name=projects" + + "/*/locations/*/agents/*/environments/*}:" + + "lookupEnvironmentHistory\332A\004name\022\216\002\n\021RunC" + + "ontinuousTest\022<.google.cloud.dialogflow." + + "cx.v3beta1.RunContinuousTestRequest\032\035.go" + + "ogle.longrunning.Operation\"\233\001\202\323\344\223\002\\\"W/v3" + + "beta1/{environment=projects/*/locations/" + + "*/agents/*/environments/*}:runContinuous" + + "Test:\001*\312A6\n\031RunContinuousTestResponse\022\031R" + + "unContinuousTestMetadata\022\221\002\n\031ListContinu" + + "ousTestResults\022D.google.cloud.dialogflow" + + ".cx.v3beta1.ListContinuousTestResultsReq" + + "uest\032E.google.cloud.dialogflow.cx.v3beta" + + "1.ListContinuousTestResultsResponse\"g\202\323\344" + + "\223\002X\022V/v3beta1/{parent=projects/*/locatio" + + "ns/*/agents/*/environments/*}/continuous" + + "TestResults\332A\006parent\022\353\001\n\nDeployFlow\0225.go" + + "ogle.cloud.dialogflow.cx.v3beta1.DeployF" + + "lowRequest\032\035.google.longrunning.Operatio" + + "n\"\206\001\202\323\344\223\002U\"P/v3beta1/{environment=projec" + + "ts/*/locations/*/agents/*/environments/*" + + "}:deployFlow:\001*\312A(\n\022DeployFlowResponse\022\022" + + "DeployFlowMetadata\032x\312A\031dialogflow.google" + + "apis.com\322AYhttps://www.googleapis.com/au" + + "th/cloud-platform,https://www.googleapis" + + ".com/auth/dialogflowB\330\001\n&com.google.clou" + + "d.dialogflow.cx.v3beta1B\020EnvironmentProt" + + "oP\001ZDgoogle.golang.org/genproto/googleap" + + "is/cloud/dialogflow/cx/v3beta1;cx\370\001\001\242\002\002D" + + "F\252\002\"Google.Cloud.Dialogflow.Cx.V3Beta1\352\002" + + "&Google::Cloud::Dialogflow::CX::V3beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -244,6 +282,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto.getDescriptor(), + com.google.cloud.dialogflow.cx.v3beta1.WebhookProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -255,7 +294,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_descriptor, new java.lang.String[] { - "Name", "DisplayName", "Description", "VersionConfigs", "UpdateTime", + "Name", + "DisplayName", + "Description", + "VersionConfigs", + "UpdateTime", + "TestCasesConfig", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_VersionConfig_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_descriptor @@ -267,6 +311,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Version", }); + internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_TestCasesConfig_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_TestCasesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_Environment_TestCasesConfig_descriptor, + new java.lang.String[] { + "TestCases", "EnableContinuousRun", "EnablePredeploymentRun", + }); internal_static_google_cloud_dialogflow_cx_v3beta1_ListEnvironmentsRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_dialogflow_cx_v3beta1_ListEnvironmentsRequest_fieldAccessorTable = @@ -379,6 +433,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ContinuousTestResults", "NextPageToken", }); + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowRequest_descriptor, + new java.lang.String[] { + "Environment", "FlowVersion", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowResponse_descriptor, + new java.lang.String[] { + "Environment", "Deployment", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowMetadata_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_DeployFlowMetadata_descriptor, + new java.lang.String[] { + "TestErrors", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -396,6 +474,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto.getDescriptor(); + com.google.cloud.dialogflow.cx.v3beta1.WebhookProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java index 10a660ef5..03e3071de 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java @@ -534,13 +534,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (targetCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); } - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, event_); } if (triggerFulfillment_ != null) { output.writeMessage(5, getTriggerFulfillment()); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } unknownFields.writeTo(output); @@ -558,13 +558,13 @@ public int getSerializedSize() { if (targetCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); } - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, event_); } if (triggerFulfillment_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTriggerFulfillment()); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventInput.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventInput.java index c7e450de4..eaaf01708 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventInput.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventInput.java @@ -174,7 +174,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, event_); } unknownFields.writeTo(output); @@ -186,7 +186,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, event_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Experiment.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Experiment.java index 1cbd9efc4..6e643c7a8 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Experiment.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Experiment.java @@ -861,7 +861,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, condition_); } if (variantsCase_ == 2) { @@ -876,7 +876,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, condition_); } if (variantsCase_ == 2) { @@ -5232,7 +5232,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } for (int i = 0; i < metrics_.size(); i++) { @@ -5250,7 +5250,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } for (int i = 0; i < metrics_.size(); i++) { @@ -8248,13 +8248,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (state_ @@ -8291,7 +8291,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (rolloutState_ != null) { output.writeMessage(15, getRolloutState()); } - if (!getRolloutFailureReasonBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutFailureReason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, rolloutFailureReason_); } unknownFields.writeTo(output); @@ -8303,13 +8303,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (state_ @@ -8346,7 +8346,7 @@ public int getSerializedSize() { if (rolloutState_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getRolloutState()); } - if (!getRolloutFailureReasonBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutFailureReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, rolloutFailureReason_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java index 87fa13634..695787d51 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java @@ -308,13 +308,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getAgentUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, agentUri_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, environment_); } unknownFields.writeTo(output); @@ -326,13 +326,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getAgentUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, agentUri_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, environment_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowRequest.java index 037ae36db..b9c21896f 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowRequest.java @@ -268,10 +268,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getFlowUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flowUri_); } if (includeReferencedFlows_ != false) { @@ -286,10 +286,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getFlowUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flowUri_); } if (includeReferencedFlows_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesMetadata.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesMetadata.java index fd64d00fc..60cb2bd12 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesMetadata.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesMetadata.java @@ -24,6 +24,7 @@ *
  * Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCases] long running
  * operation.
+ * This message currently has no fields.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} @@ -260,6 +261,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCases] long running
    * operation.
+   * This message currently has no fields.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesRequest.java index 731660256..c3a25b910 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesRequest.java @@ -589,7 +589,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (destinationCase_ == 2) { @@ -601,7 +601,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, dataFormat_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } unknownFields.writeTo(output); @@ -613,7 +613,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (destinationCase_ == 2) { @@ -625,7 +625,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, dataFormat_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java index e03d454b9..08db9e4e9 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java @@ -760,13 +760,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } for (int i = 0; i < transitionRoutes_.size(); i++) { @@ -791,13 +791,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < transitionRoutes_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResult.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResult.java index 049b41145..702111d23 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResult.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResult.java @@ -335,7 +335,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < validationMessages_.size(); i++) { @@ -353,7 +353,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < validationMessages_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java index 5325c7ebe..6191f0557 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java @@ -2958,13 +2958,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } if (required_ != false) { output.writeBool(2, required_); } - if (!getEntityTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entityType_); } if (isList_ != false) { @@ -2988,13 +2988,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (required_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, required_); } - if (!getEntityTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entityType_); } if (isList_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentResponse.java index e602ce21f..6761d5a04 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentResponse.java @@ -340,7 +340,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, responseId_); } if (queryResult_ != null) { @@ -361,7 +361,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, responseId_); } if (queryResult_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java index 935d8967e..0b54e807a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java @@ -469,7 +469,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParameterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameter_); } if (value_ != null) { @@ -484,7 +484,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParameterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parameter_); } if (value_ != null) { @@ -3079,7 +3079,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, condition_); } for (int i = 0; i < caseContent_.size(); i++) { @@ -3094,7 +3094,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, condition_); } for (int i = 0; i < caseContent_.size(); i++) { @@ -5417,10 +5417,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } - if (!getWebhookBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhook_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, webhook_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tag_); } for (int i = 0; i < setParameterActions_.size(); i++) { @@ -5444,10 +5444,10 @@ public int getSerializedSize() { for (int i = 0; i < messages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); } - if (!getWebhookBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhook_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, webhook_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tag_); } for (int i = 0; i < setParameterActions_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentRequest.java index 222abad8b..be681a5f7 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentValidationResultRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentValidationResultRequest.java index 6539648cc..0a53310bc 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentValidationResultRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentValidationResultRequest.java @@ -240,10 +240,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -255,10 +255,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetChangelogRequest.java similarity index 62% rename from proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java rename to proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetChangelogRequest.java index 6b7c7e0a1..6328e742f 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetChangelogRequest.java @@ -14,37 +14,37 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto +// source: google/cloud/dialogflow/cx/v3beta1/changelog.proto -package com.google.cloud.location; +package com.google.cloud.dialogflow.cx.v3beta1; /** * * *
- * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
+ * The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelog].
  * 
* - * Protobuf type {@code google.cloud.location.GetLocationRequest} + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} */ -public final class GetLocationRequest extends com.google.protobuf.GeneratedMessageV3 +public final class GetChangelogRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.location.GetLocationRequest) - GetLocationRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) + GetChangelogRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use GetLocationRequest.newBuilder() to construct. - private GetLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetChangelogRequest.newBuilder() to construct. + private GetChangelogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetLocationRequest() { + private GetChangelogRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetLocationRequest(); + return new GetChangelogRequest(); } @java.lang.Override @@ -52,7 +52,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetLocationRequest( + private GetChangelogRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -97,18 +97,18 @@ private GetLocationRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetChangelogRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetChangelogRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, - com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -117,10 +117,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name for the location.
+   * Required. The name of the changelog to get.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -140,10 +144,14 @@ public java.lang.String getName() { * * *
-   * Resource name for the location.
+   * Required. The name of the changelog to get.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -174,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -186,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); @@ -199,11 +207,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.location.GetLocationRequest)) { + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest)) { return super.equals(obj); } - com.google.cloud.location.GetLocationRequest other = - (com.google.cloud.location.GetLocationRequest) obj; + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest other = + (com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) obj; if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -224,71 +232,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.GetLocationRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.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.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.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.location.GetLocationRequest parseFrom(byte[] data) + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.location.GetLocationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.location.GetLocationRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -305,7 +313,8 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.location.GetLocationRequest prototype) { + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -323,31 +332,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
+   * The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelog].
    * 
* - * Protobuf type {@code google.cloud.location.GetLocationRequest} + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.GetLocationRequest) - com.google.cloud.location.GetLocationRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetChangelogRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetChangelogRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, - com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.Builder.class); } - // Construct using com.google.cloud.location.GetLocationRequest.newBuilder() + // Construct using com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -371,18 +380,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetChangelogRequest_descriptor; } @java.lang.Override - public com.google.cloud.location.GetLocationRequest getDefaultInstanceForType() { - return com.google.cloud.location.GetLocationRequest.getDefaultInstance(); + public com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.location.GetLocationRequest build() { - com.google.cloud.location.GetLocationRequest result = buildPartial(); + public com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest build() { + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -390,9 +399,9 @@ public com.google.cloud.location.GetLocationRequest build() { } @java.lang.Override - public com.google.cloud.location.GetLocationRequest buildPartial() { - com.google.cloud.location.GetLocationRequest result = - new com.google.cloud.location.GetLocationRequest(this); + public com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest result = + new com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest(this); result.name_ = name_; onBuilt(); return result; @@ -433,16 +442,17 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.GetLocationRequest) { - return mergeFrom((com.google.cloud.location.GetLocationRequest) other); + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.location.GetLocationRequest other) { - if (other == com.google.cloud.location.GetLocationRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -462,11 +472,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.location.GetLocationRequest parsedMessage = null; + com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.GetLocationRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -481,10 +492,14 @@ public Builder mergeFrom( * * *
-     * Resource name for the location.
+     * Required. The name of the changelog to get.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -503,10 +518,14 @@ public java.lang.String getName() { * * *
-     * Resource name for the location.
+     * Required. The name of the changelog to get.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -525,10 +544,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name for the location.
+     * Required. The name of the changelog to get.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -546,10 +569,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name for the location.
+     * Required. The name of the changelog to get.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -563,10 +590,14 @@ public Builder clearName() { * * *
-     * Resource name for the location.
+     * Required. The name of the changelog to get.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/changelogs/<Changelog ID>`.
      * 
* - * string name = 1; + * + * 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. @@ -593,42 +624,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.location.GetLocationRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.location.GetLocationRequest) - private static final com.google.cloud.location.GetLocationRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) + private static final com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.location.GetLocationRequest(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest(); } - public static com.google.cloud.location.GetLocationRequest getDefaultInstance() { + public static com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest 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 GetLocationRequest parsePartialFrom( + public GetChangelogRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLocationRequest(input, extensionRegistry); + return new GetChangelogRequest(input, extensionRegistry); } }; - 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.location.GetLocationRequest getDefaultInstanceForType() { + public com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetChangelogRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java rename to proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetChangelogRequestOrBuilder.java index a8f3d0f9b..5572a45a1 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetChangelogRequestOrBuilder.java @@ -14,23 +14,27 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto +// source: google/cloud/dialogflow/cx/v3beta1/changelog.proto -package com.google.cloud.location; +package com.google.cloud.dialogflow.cx.v3beta1; -public interface GetLocationRequestOrBuilder +public interface GetChangelogRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Resource name for the location.
+   * Required. The name of the changelog to get.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -39,10 +43,14 @@ public interface GetLocationRequestOrBuilder * * *
-   * Resource name for the location.
+   * Required. The name of the changelog to get.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/changelogs/<Changelog ID>`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetDeploymentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetDeploymentRequest.java new file mode 100644 index 000000000..32ea8bfc0 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetDeploymentRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/deployment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeployment].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} + */ +public final class GetDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) + GetDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDeploymentRequest.newBuilder() to construct. + private GetDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDeploymentRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetDeploymentRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment 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. The name of the [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest other = + (com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.GetDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.GetDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeployment].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest build() { + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest result = + new com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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. The name of the [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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. The name of the [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>/deployments/<Deployment 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) + private static final com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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 { + return new GetDeploymentRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetDeploymentRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetDeploymentRequestOrBuilder.java new file mode 100644 index 000000000..f971c3c6f --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetDeploymentRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/deployment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface GetDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
+   * 
+ * + * + * 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][google.cloud.dialogflow.cx.v3beta1.Deployment].
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>/deployments/<Deployment 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/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEntityTypeRequest.java index 6a2ce91f3..6e0b14be7 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEntityTypeRequest.java @@ -257,10 +257,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -272,10 +272,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEnvironmentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEnvironmentRequest.java index 891cb9903..5cb20d02f 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEnvironmentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEnvironmentRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetExperimentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetExperimentRequest.java index 4f8e2a29e..9729571b6 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetExperimentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetExperimentRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowRequest.java index de14c5695..9cad317d3 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowRequest.java @@ -259,10 +259,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -274,10 +274,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowValidationResultRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowValidationResultRequest.java index 02809b62b..2dadfb24f 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowValidationResultRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowValidationResultRequest.java @@ -240,10 +240,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -255,10 +255,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetIntentRequest.java index 59f9d721a..948b2f8b8 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetIntentRequest.java @@ -253,10 +253,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -268,10 +268,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetPageRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetPageRequest.java index e6debe844..5ca55d8a9 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetPageRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetPageRequest.java @@ -275,10 +275,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -290,10 +290,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSecuritySettingsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSecuritySettingsRequest.java index d22af576e..19ae1fbb7 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSecuritySettingsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSecuritySettingsRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSessionEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSessionEntityTypeRequest.java index 6fd72da3a..4946d7a8b 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSessionEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSessionEntityTypeRequest.java @@ -190,7 +190,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -202,7 +202,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseRequest.java index 3e7c132de..a29f155e1 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java index 4513e89ea..9aa597a77 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTransitionRouteGroupRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTransitionRouteGroupRequest.java index 6ab0d5f2f..77981ec95 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTransitionRouteGroupRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTransitionRouteGroupRequest.java @@ -258,10 +258,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -273,10 +273,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetVersionRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetVersionRequest.java index a7593ad28..33e929f0d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetVersionRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetVersionRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetWebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetWebhookRequest.java index fad0e1648..3020f421a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetWebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetWebhookRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowRequest.java index 3c629b2f3..c17ff5246 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowRequest.java @@ -567,7 +567,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (flowCase_ == 2) { @@ -591,7 +591,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (flowCase_ == 2) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowResponse.java index 5bde55f34..edf6eecc5 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowResponse.java @@ -178,7 +178,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flow_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, flow_); } unknownFields.writeTo(output); @@ -190,7 +190,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flow_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, flow_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesRequest.java index 515ac9065..270bd5f2d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesRequest.java @@ -351,7 +351,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (sourceCase_ == 2) { @@ -369,7 +369,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sourceCase_ == 2) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/InputAudioConfig.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/InputAudioConfig.java index 40c7cb901..d5729394f 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/InputAudioConfig.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/InputAudioConfig.java @@ -476,7 +476,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < phraseHints_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phraseHints_.getRaw(i)); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, model_); } if (singleUtterance_ != false) { @@ -516,7 +516,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPhraseHintsList().size(); } - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, model_); } if (singleUtterance_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java index a88d54315..81e9e1c75 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java @@ -763,10 +763,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTextBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); } - if (!getParameterIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterId_); } unknownFields.writeTo(output); @@ -778,10 +778,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTextBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); } - if (!getParameterIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterId_); } size += unknownFields.getSerializedSize(); @@ -1598,7 +1598,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } for (int i = 0; i < parts_.size(); i++) { @@ -1616,7 +1616,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } for (int i = 0; i < parts_.size(); i++) { @@ -3208,10 +3208,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - if (!getEntityTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entityType_); } if (isList_ != false) { @@ -3229,10 +3229,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - if (!getEntityTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entityType_); } if (isList_ != false) { @@ -4502,10 +4502,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } for (int i = 0; i < trainingPhrases_.size(); i++) { @@ -4522,7 +4522,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); } unknownFields.writeTo(output); @@ -4534,10 +4534,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < trainingPhrases_.size(); i++) { @@ -4562,7 +4562,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentCoverage.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentCoverage.java index 8f611bae1..03053bbf3 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentCoverage.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentCoverage.java @@ -352,7 +352,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intent_); } if (covered_ != false) { @@ -367,7 +367,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, intent_); } if (covered_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentInput.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentInput.java index 143a23eaa..4b80b9b12 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentInput.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentInput.java @@ -183,7 +183,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intent_); } unknownFields.writeTo(output); @@ -195,7 +195,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, intent_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsRequest.java index 72b151ff7..b4d952fe5 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsRequest.java @@ -261,13 +261,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -279,13 +279,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsResponse.java index 84837d503..79246429e 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < agents_.size(); i++) { output.writeMessage(1, agents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < agents_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsRequest.java new file mode 100644 index 000000000..c46fc8976 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsRequest.java @@ -0,0 +1,1246 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/changelog.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogs].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} + */ +public final class ListChangelogsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) + ListChangelogsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListChangelogsRequest.newBuilder() to construct. + private ListChangelogsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListChangelogsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListChangelogsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListChangelogsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The agent containing the changelogs.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 agent containing the changelogs.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * The filter string. Supports filter by user_email, resource, type and
+   * create_time. Some examples:
+   *   1. By user email:
+   *        user_email = "someone@google.com"
+   *   2. By resource name:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *   3. By resource display name:
+   *        display_name = "my agent"
+   *   4. By action:
+   *        action = "Create"
+   *   5. By type:
+   *        type = "flows"
+   *   6. By create time. Currently predicates on `create_time` and
+   *      `create_time_epoch_seconds` are supported:
+   *        create_time_epoch_seconds > 1551790877 AND create_time <=
+   *        2017-01-15T01:30:15.01Z
+   *   7. Combination of above filters:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *          AND user_email = "someone@google.com"
+   *          AND create_time <= 2017-01-15T01:30:15.01Z
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * The filter string. Supports filter by user_email, resource, type and
+   * create_time. Some examples:
+   *   1. By user email:
+   *        user_email = "someone@google.com"
+   *   2. By resource name:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *   3. By resource display name:
+   *        display_name = "my agent"
+   *   4. By action:
+   *        action = "Create"
+   *   5. By type:
+   *        type = "flows"
+   *   6. By create time. Currently predicates on `create_time` and
+   *      `create_time_epoch_seconds` are supported:
+   *        create_time_epoch_seconds > 1551790877 AND create_time <=
+   *        2017-01-15T01:30:15.01Z
+   *   7. Combination of above filters:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *          AND user_email = "someone@google.com"
+   *          AND create_time <= 2017-01-15T01:30:15.01Z
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * The maximum number of items to return in a single page. By default 100 and
+   * at most 1000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest other = + (com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.ListChangelogsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.ListChangelogsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogs].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest build() { + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest result = + new com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The agent containing the changelogs.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 agent containing the changelogs.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 agent containing the changelogs.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The agent containing the changelogs.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The agent containing the changelogs.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 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; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * The filter string. Supports filter by user_email, resource, type and
+     * create_time. Some examples:
+     *   1. By user email:
+     *        user_email = "someone@google.com"
+     *   2. By resource name:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *   3. By resource display name:
+     *        display_name = "my agent"
+     *   4. By action:
+     *        action = "Create"
+     *   5. By type:
+     *        type = "flows"
+     *   6. By create time. Currently predicates on `create_time` and
+     *      `create_time_epoch_seconds` are supported:
+     *        create_time_epoch_seconds > 1551790877 AND create_time <=
+     *        2017-01-15T01:30:15.01Z
+     *   7. Combination of above filters:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *          AND user_email = "someone@google.com"
+     *          AND create_time <= 2017-01-15T01:30:15.01Z
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The filter string. Supports filter by user_email, resource, type and
+     * create_time. Some examples:
+     *   1. By user email:
+     *        user_email = "someone@google.com"
+     *   2. By resource name:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *   3. By resource display name:
+     *        display_name = "my agent"
+     *   4. By action:
+     *        action = "Create"
+     *   5. By type:
+     *        type = "flows"
+     *   6. By create time. Currently predicates on `create_time` and
+     *      `create_time_epoch_seconds` are supported:
+     *        create_time_epoch_seconds > 1551790877 AND create_time <=
+     *        2017-01-15T01:30:15.01Z
+     *   7. Combination of above filters:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *          AND user_email = "someone@google.com"
+     *          AND create_time <= 2017-01-15T01:30:15.01Z
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The filter string. Supports filter by user_email, resource, type and
+     * create_time. Some examples:
+     *   1. By user email:
+     *        user_email = "someone@google.com"
+     *   2. By resource name:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *   3. By resource display name:
+     *        display_name = "my agent"
+     *   4. By action:
+     *        action = "Create"
+     *   5. By type:
+     *        type = "flows"
+     *   6. By create time. Currently predicates on `create_time` and
+     *      `create_time_epoch_seconds` are supported:
+     *        create_time_epoch_seconds > 1551790877 AND create_time <=
+     *        2017-01-15T01:30:15.01Z
+     *   7. Combination of above filters:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *          AND user_email = "someone@google.com"
+     *          AND create_time <= 2017-01-15T01:30:15.01Z
+     * 
+ * + * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The filter string. Supports filter by user_email, resource, type and
+     * create_time. Some examples:
+     *   1. By user email:
+     *        user_email = "someone@google.com"
+     *   2. By resource name:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *   3. By resource display name:
+     *        display_name = "my agent"
+     *   4. By action:
+     *        action = "Create"
+     *   5. By type:
+     *        type = "flows"
+     *   6. By create time. Currently predicates on `create_time` and
+     *      `create_time_epoch_seconds` are supported:
+     *        create_time_epoch_seconds > 1551790877 AND create_time <=
+     *        2017-01-15T01:30:15.01Z
+     *   7. Combination of above filters:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *          AND user_email = "someone@google.com"
+     *          AND create_time <= 2017-01-15T01:30:15.01Z
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * The filter string. Supports filter by user_email, resource, type and
+     * create_time. Some examples:
+     *   1. By user email:
+     *        user_email = "someone@google.com"
+     *   2. By resource name:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *   3. By resource display name:
+     *        display_name = "my agent"
+     *   4. By action:
+     *        action = "Create"
+     *   5. By type:
+     *        type = "flows"
+     *   6. By create time. Currently predicates on `create_time` and
+     *      `create_time_epoch_seconds` are supported:
+     *        create_time_epoch_seconds > 1551790877 AND create_time <=
+     *        2017-01-15T01:30:15.01Z
+     *   7. Combination of above filters:
+     *        resource = "projects/123/locations/global/agents/456/flows/789"
+     *          AND user_email = "someone@google.com"
+     *          AND create_time <= 2017-01-15T01:30:15.01Z
+     * 
+ * + * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of items to return in a single page. By default 100 and
+     * at most 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of items to return in a single page. By default 100 and
+     * at most 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of items to return in a single page. By default 100 and
+     * at most 1000.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 4; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 4; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) + private static final com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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 { + return new ListChangelogsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsRequestOrBuilder.java new file mode 100644 index 000000000..6f0b62cfe --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsRequestOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/changelog.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface ListChangelogsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The agent containing the changelogs.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The agent containing the changelogs.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The filter string. Supports filter by user_email, resource, type and
+   * create_time. Some examples:
+   *   1. By user email:
+   *        user_email = "someone@google.com"
+   *   2. By resource name:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *   3. By resource display name:
+   *        display_name = "my agent"
+   *   4. By action:
+   *        action = "Create"
+   *   5. By type:
+   *        type = "flows"
+   *   6. By create time. Currently predicates on `create_time` and
+   *      `create_time_epoch_seconds` are supported:
+   *        create_time_epoch_seconds > 1551790877 AND create_time <=
+   *        2017-01-15T01:30:15.01Z
+   *   7. Combination of above filters:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *          AND user_email = "someone@google.com"
+   *          AND create_time <= 2017-01-15T01:30:15.01Z
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * The filter string. Supports filter by user_email, resource, type and
+   * create_time. Some examples:
+   *   1. By user email:
+   *        user_email = "someone@google.com"
+   *   2. By resource name:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *   3. By resource display name:
+   *        display_name = "my agent"
+   *   4. By action:
+   *        action = "Create"
+   *   5. By type:
+   *        type = "flows"
+   *   6. By create time. Currently predicates on `create_time` and
+   *      `create_time_epoch_seconds` are supported:
+   *        create_time_epoch_seconds > 1551790877 AND create_time <=
+   *        2017-01-15T01:30:15.01Z
+   *   7. Combination of above filters:
+   *        resource = "projects/123/locations/global/agents/456/flows/789"
+   *          AND user_email = "someone@google.com"
+   *          AND create_time <= 2017-01-15T01:30:15.01Z
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of items to return in a single page. By default 100 and
+   * at most 1000.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsResponse.java new file mode 100644 index 000000000..46e3e57e6 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsResponse.java @@ -0,0 +1,1196 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/changelog.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogs].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} + */ +public final class ListChangelogsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) + ListChangelogsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListChangelogsResponse.newBuilder() to construct. + private ListChangelogsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListChangelogsResponse() { + changelogs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListChangelogsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListChangelogsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + changelogs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + changelogs_.add( + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.Changelog.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + changelogs_ = java.util.Collections.unmodifiableList(changelogs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.class, + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.Builder.class); + } + + public static final int CHANGELOGS_FIELD_NUMBER = 1; + private java.util.List changelogs_; + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + @java.lang.Override + public java.util.List getChangelogsList() { + return changelogs_; + } + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + @java.lang.Override + public java.util.List + getChangelogsOrBuilderList() { + return changelogs_; + } + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + @java.lang.Override + public int getChangelogsCount() { + return changelogs_.size(); + } + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Changelog getChangelogs(int index) { + return changelogs_.get(index); + } + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ChangelogOrBuilder getChangelogsOrBuilder( + int index) { + return changelogs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < changelogs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, changelogs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse other = + (com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) obj; + + if (!getChangelogsList().equals(other.getChangelogsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.ListChangelogsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.ListChangelogsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogs].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.class, + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChangelogsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (changelogsBuilder_ == null) { + changelogs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + changelogsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ChangelogProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListChangelogsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse build() { + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse result = + new com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse(this); + int from_bitField0_ = bitField0_; + if (changelogsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changelogs_ = java.util.Collections.unmodifiableList(changelogs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changelogs_ = changelogs_; + } else { + result.changelogs_ = changelogsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangelogsFieldBuilder() + : null; + } else { + changelogsBuilder_.addAllMessages(other.changelogs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Changelog, + com.google.cloud.dialogflow.cx.v3beta1.Changelog.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ChangelogOrBuilder> + changelogsBuilder_; + + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public int getChangelogsCount() { + if (changelogsBuilder_ == null) { + return changelogs_.size(); + } else { + return changelogsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Changelog getChangelogs(int index) { + if (changelogsBuilder_ == null) { + return changelogs_.get(index); + } else { + return changelogsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public Builder setChangelogs( + int index, com.google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public Builder setChangelogs( + int index, com.google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public Builder addChangelogs(com.google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public Builder addChangelogs( + int index, com.google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public Builder addChangelogs( + com.google.cloud.dialogflow.cx.v3beta1.Changelog.Builder builderForValue) { + if (changelogsBuilder_ == null) { + ensureChangelogsIsMutable(); + changelogs_.add(builderForValue.build()); + onChanged(); + } else { + changelogsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public Builder addChangelogs( + int index, com.google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Changelog.Builder getChangelogsBuilder( + int index) { + return getChangelogsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.ChangelogOrBuilder getChangelogsOrBuilder( + int index) { + if (changelogsBuilder_ == null) { + return changelogs_.get(index); + } else { + return changelogsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Changelog.Builder addChangelogsBuilder() { + return getChangelogsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.Changelog.getDefaultInstance()); + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Changelog.Builder addChangelogsBuilder( + int index) { + return getChangelogsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3beta1.Changelog.getDefaultInstance()); + } + /** + * + * + *
+     * The list of changelogs. There will be a maximum number of items returned
+     * based on the page_size field in the request. The changelogs will be ordered
+     * by timestamp.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + public java.util.List + getChangelogsBuilderList() { + return getChangelogsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Changelog, + com.google.cloud.dialogflow.cx.v3beta1.Changelog.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ChangelogOrBuilder> + getChangelogsFieldBuilder() { + if (changelogsBuilder_ == null) { + changelogsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Changelog, + com.google.cloud.dialogflow.cx.v3beta1.Changelog.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ChangelogOrBuilder>( + changelogs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + changelogs_ = null; + } + return changelogsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) + private static final com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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 { + return new ListChangelogsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsResponseOrBuilder.java new file mode 100644 index 000000000..1791792f9 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/changelog.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface ListChangelogsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + java.util.List getChangelogsList(); + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + com.google.cloud.dialogflow.cx.v3beta1.Changelog getChangelogs(int index); + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + int getChangelogsCount(); + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + java.util.List + getChangelogsOrBuilderList(); + /** + * + * + *
+   * The list of changelogs. There will be a maximum number of items returned
+   * based on the page_size field in the request. The changelogs will be ordered
+   * by timestamp.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Changelog changelogs = 1; + */ + com.google.cloud.dialogflow.cx.v3beta1.ChangelogOrBuilder getChangelogsOrBuilder(int index); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsRequest.java index ce6f01411..804d605bd 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsRequest.java @@ -264,13 +264,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -282,13 +282,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsResponse.java index 41dd10909..db43845e2 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsResponse.java @@ -283,7 +283,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < continuousTestResults_.size(); i++) { output.writeMessage(1, continuousTestResults_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -300,7 +300,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, continuousTestResults_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsRequest.java similarity index 58% rename from proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java rename to proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsRequest.java index e1b3af7f9..d39066a7e 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsRequest.java @@ -14,39 +14,38 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto +// source: google/cloud/dialogflow/cx/v3beta1/deployment.proto -package com.google.cloud.location; +package com.google.cloud.dialogflow.cx.v3beta1; /** * * *
- * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
+ * The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeployments].
  * 
* - * Protobuf type {@code google.cloud.location.ListLocationsRequest} + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} */ -public final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3 +public final class ListDeploymentsRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsRequest) - ListLocationsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) + ListDeploymentsRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ListLocationsRequest.newBuilder() to construct. - private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ListDeploymentsRequest.newBuilder() to construct. + private ListDeploymentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLocationsRequest() { - name_ = ""; - filter_ = ""; + private ListDeploymentsRequest() { + parent_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListLocationsRequest(); + return new ListDeploymentsRequest(); } @java.lang.Override @@ -54,7 +53,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListLocationsRequest( + private ListDeploymentsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -76,22 +75,15 @@ private ListLocationsRequest( { java.lang.String s = input.readStringRequireUtf8(); - name_ = s; + parent_ = s; break; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: + case 16: { pageSize_ = input.readInt32(); break; } - case 34: + case 26: { java.lang.String s = input.readStringRequireUtf8(); @@ -118,91 +110,46 @@ private ListLocationsRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, - com.google.cloud.location.ListLocationsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.Builder.class); } - public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; /** * * *
-   * The standard list filter.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
    * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The filter. + * @return The parent. */ @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; + 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(); - filter_ = s; + parent_ = s; return s; } } @@ -210,36 +157,41 @@ public java.lang.String getFilter() { * * *
-   * The standard list filter.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
    * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for filter. + * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; + 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); - filter_ = b; + parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PAGE_SIZE_FIELD_NUMBER = 3; + public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** * * *
-   * The standard list page size.
+   * The maximum number of items to return in a single page. By default 20 and
+   * at most 100.
    * 
* - * int32 page_size = 3; + * int32 page_size = 2; * * @return The pageSize. */ @@ -248,16 +200,16 @@ public int getPageSize() { return pageSize_; } - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** * * *
-   * The standard list page token.
+   * The next_page_token value returned from a previous list request.
    * 
* - * string page_token = 4; + * string page_token = 3; * * @return The pageToken. */ @@ -277,10 +229,10 @@ public java.lang.String getPageToken() { * * *
-   * The standard list page token.
+   * The next_page_token value returned from a previous list request.
    * 
* - * string page_token = 4; + * string page_token = 3; * * @return The bytes for pageToken. */ @@ -311,17 +263,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); + output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); } @@ -332,17 +281,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -354,14 +300,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.location.ListLocationsRequest)) { + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest)) { return super.equals(obj); } - com.google.cloud.location.ListLocationsRequest other = - (com.google.cloud.location.ListLocationsRequest) obj; + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest other = + (com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -375,10 +320,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + 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; @@ -388,71 +331,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.ListLocationsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.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.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.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.location.ListLocationsRequest parseFrom(byte[] data) + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.location.ListLocationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.location.ListLocationsRequest parseFrom( + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -469,7 +412,8 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.location.ListLocationsRequest prototype) { + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -487,31 +431,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
+   * The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeployments].
    * 
* - * Protobuf type {@code google.cloud.location.ListLocationsRequest} + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.ListLocationsRequest) - com.google.cloud.location.ListLocationsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, - com.google.cloud.location.ListLocationsRequest.Builder.class); + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.Builder.class); } - // Construct using com.google.cloud.location.ListLocationsRequest.newBuilder() + // Construct using com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -528,9 +472,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - name_ = ""; - - filter_ = ""; + parent_ = ""; pageSize_ = 0; @@ -541,18 +483,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsRequest_descriptor; } @java.lang.Override - public com.google.cloud.location.ListLocationsRequest getDefaultInstanceForType() { - return com.google.cloud.location.ListLocationsRequest.getDefaultInstance(); + public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.location.ListLocationsRequest build() { - com.google.cloud.location.ListLocationsRequest result = buildPartial(); + public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest build() { + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -560,11 +503,10 @@ public com.google.cloud.location.ListLocationsRequest build() { } @java.lang.Override - public com.google.cloud.location.ListLocationsRequest buildPartial() { - com.google.cloud.location.ListLocationsRequest result = - new com.google.cloud.location.ListLocationsRequest(this); - result.name_ = name_; - result.filter_ = filter_; + public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest result = + new com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest(this); + result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); @@ -606,22 +548,20 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.ListLocationsRequest) { - return mergeFrom((com.google.cloud.location.ListLocationsRequest) other); + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.location.ListLocationsRequest other) { - if (other == com.google.cloud.location.ListLocationsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; onChanged(); } if (other.getPageSize() != 0) { @@ -646,11 +586,13 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.location.ListLocationsRequest parsedMessage = null; + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.ListLocationsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -660,130 +602,28 @@ public Builder mergeFrom( return this; } - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; + private java.lang.Object parent_ = ""; /** * * *
-     * The standard list filter.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The filter. + * @return The parent. */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; + 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(); - filter_ = s; + parent_ = s; return s; } else { return (java.lang.String) ref; @@ -793,19 +633,23 @@ public java.lang.String getFilter() { * * *
-     * The standard list filter.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for filter. + * @return The bytes for parent. */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; + 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); - filter_ = b; + parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -815,20 +659,24 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * The standard list filter.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The filter to set. + * @param value The parent to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + parent_ = value; onChanged(); return this; } @@ -836,16 +684,20 @@ public Builder setFilter(java.lang.String value) { * * *
-     * The standard list filter.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ - public Builder clearFilter() { + public Builder clearParent() { - filter_ = getDefaultInstance().getFilter(); + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } @@ -853,21 +705,25 @@ public Builder clearFilter() { * * *
-     * The standard list filter.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* - * string filter = 2; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The bytes for filter to set. + * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + parent_ = value; onChanged(); return this; } @@ -877,10 +733,11 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * The standard list page size.
+     * The maximum number of items to return in a single page. By default 20 and
+     * at most 100.
      * 
* - * int32 page_size = 3; + * int32 page_size = 2; * * @return The pageSize. */ @@ -892,10 +749,11 @@ public int getPageSize() { * * *
-     * The standard list page size.
+     * The maximum number of items to return in a single page. By default 20 and
+     * at most 100.
      * 
* - * int32 page_size = 3; + * int32 page_size = 2; * * @param value The pageSize to set. * @return This builder for chaining. @@ -910,10 +768,11 @@ public Builder setPageSize(int value) { * * *
-     * The standard list page size.
+     * The maximum number of items to return in a single page. By default 20 and
+     * at most 100.
      * 
* - * int32 page_size = 3; + * int32 page_size = 2; * * @return This builder for chaining. */ @@ -929,10 +788,10 @@ public Builder clearPageSize() { * * *
-     * The standard list page token.
+     * The next_page_token value returned from a previous list request.
      * 
* - * string page_token = 4; + * string page_token = 3; * * @return The pageToken. */ @@ -951,10 +810,10 @@ public java.lang.String getPageToken() { * * *
-     * The standard list page token.
+     * The next_page_token value returned from a previous list request.
      * 
* - * string page_token = 4; + * string page_token = 3; * * @return The bytes for pageToken. */ @@ -973,10 +832,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * The standard list page token.
+     * The next_page_token value returned from a previous list request.
      * 
* - * string page_token = 4; + * string page_token = 3; * * @param value The pageToken to set. * @return This builder for chaining. @@ -994,10 +853,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * The standard list page token.
+     * The next_page_token value returned from a previous list request.
      * 
* - * string page_token = 4; + * string page_token = 3; * * @return This builder for chaining. */ @@ -1011,10 +870,10 @@ public Builder clearPageToken() { * * *
-     * The standard list page token.
+     * The next_page_token value returned from a previous list request.
      * 
* - * string page_token = 4; + * string page_token = 3; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -1041,42 +900,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsRequest) - private static final com.google.cloud.location.ListLocationsRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) + private static final com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest(); } - public static com.google.cloud.location.ListLocationsRequest getDefaultInstance() { + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest 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 ListLocationsRequest parsePartialFrom( + public ListDeploymentsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsRequest(input, extensionRegistry); + return new ListDeploymentsRequest(input, extensionRegistry); } }; - 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.location.ListLocationsRequest getDefaultInstanceForType() { + public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsRequestOrBuilder.java new file mode 100644 index 000000000..ad630e0af --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/deployment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface ListDeploymentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of items to return in a single page. By default 20 and
+   * at most 100.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsResponse.java new file mode 100644 index 000000000..805623df1 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsResponse.java @@ -0,0 +1,1223 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/deployment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeployments].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} + */ +public final class ListDeploymentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) + ListDeploymentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentsResponse.newBuilder() to construct. + private ListDeploymentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentsResponse() { + deployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDeploymentsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deployments_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deployments_.add( + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.Deployment.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.class, + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.Builder.class); + } + + public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + private java.util.List deployments_; + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List getDeploymentsList() { + return deployments_; + } + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List + getDeploymentsOrBuilderList() { + return deployments_; + } + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + @java.lang.Override + public int getDeploymentsCount() { + return deployments_.size(); + } + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Deployment getDeployments(int index) { + return deployments_.get(index); + } + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + return deployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deployments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse other = + (com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) obj; + + if (!getDeploymentsList().equals(other.getDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.ListDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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.dialogflow.cx.v3beta1.ListDeploymentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeployments].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.class, + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDeploymentsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + deploymentsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.DeploymentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse build() { + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse result = + new com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse(this); + int from_bitField0_ = bitField0_; + if (deploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployments_ = deployments_; + } else { + result.deployments_ = deploymentsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeploymentsFieldBuilder() + : null; + } else { + deploymentsBuilder_.addAllMessages(other.deployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Deployment, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Builder, + com.google.cloud.dialogflow.cx.v3beta1.DeploymentOrBuilder> + deploymentsBuilder_; + + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public int getDeploymentsCount() { + if (deploymentsBuilder_ == null) { + return deployments_.size(); + } else { + return deploymentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Deployment getDeployments(int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public Builder addDeployments(com.google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public Builder addDeployments( + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Builder getDeploymentsBuilder( + int index) { + return getDeploymentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.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. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Builder addDeploymentsBuilder() { + return getDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Builder addDeploymentsBuilder( + int index) { + return getDeploymentsFieldBuilder() + .addBuilder( + index, com.google.cloud.dialogflow.cx.v3beta1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of deployments. There will be a maximum number of items
+     * returned based on the page_size field in the request. The list may in some
+     * cases be empty or contain fewer entries than page_size even if this isn't
+     * the last page.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsBuilderList() { + return getDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Deployment, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Builder, + com.google.cloud.dialogflow.cx.v3beta1.DeploymentOrBuilder> + getDeploymentsFieldBuilder() { + if (deploymentsBuilder_ == null) { + deploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Deployment, + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Builder, + com.google.cloud.dialogflow.cx.v3beta1.DeploymentOrBuilder>( + deployments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + deployments_ = null; + } + return deploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) + private static final com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.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 { + return new ListDeploymentsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsResponseOrBuilder.java new file mode 100644 index 000000000..671f24359 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsResponseOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/deployment.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface ListDeploymentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + java.util.List getDeploymentsList(); + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + com.google.cloud.dialogflow.cx.v3beta1.Deployment getDeployments(int index); + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + int getDeploymentsCount(); + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + java.util.List + getDeploymentsOrBuilderList(); + /** + * + * + *
+   * The list of deployments. There will be a maximum number of items
+   * returned based on the page_size field in the request. The list may in some
+   * cases be empty or contain fewer entries than page_size even if this isn't
+   * the last page.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Deployment deployments = 1; + */ + com.google.cloud.dialogflow.cx.v3beta1.DeploymentOrBuilder getDeploymentsOrBuilder(int index); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesRequest.java index 80db3103f..de5cecf85 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesRequest.java @@ -336,16 +336,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } unknownFields.writeTo(output); @@ -357,16 +357,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesResponse.java index d2145c7e0..09225d8c7 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesResponse.java @@ -272,7 +272,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < entityTypes_.size(); i++) { output.writeMessage(1, entityTypes_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -287,7 +287,7 @@ public int getSerializedSize() { for (int i = 0; i < entityTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entityTypes_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsRequest.java index 8c5425478..cb519f33a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsRequest.java @@ -261,13 +261,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -279,13 +279,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsResponse.java index 258d49882..9adcae76c 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsResponse.java @@ -282,7 +282,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < environments_.size(); i++) { output.writeMessage(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -297,7 +297,7 @@ public int getSerializedSize() { for (int i = 0; i < environments_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsRequest.java index 6f9ccd7dd..c0c5a2cb3 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsRequest.java @@ -263,13 +263,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -281,13 +281,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsResponse.java index 7b8008b6e..fbd35fa6a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsResponse.java @@ -282,7 +282,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < experiments_.size(); i++) { output.writeMessage(1, experiments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -297,7 +297,7 @@ public int getSerializedSize() { for (int i = 0; i < experiments_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, experiments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsRequest.java index 476aaf4be..fee1a2a75 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsRequest.java @@ -338,16 +338,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); } unknownFields.writeTo(output); @@ -359,16 +359,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsResponse.java index e9c3879e1..49615d7b1 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < flows_.size(); i++) { output.writeMessage(1, flows_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < flows_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, flows_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsRequest.java index b58d15421..fed049b77 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsRequest.java @@ -376,16 +376,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } if (intentView_ @@ -401,16 +401,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (intentView_ diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsResponse.java index 67ee47f24..90dfdacb9 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < intents_.size(); i++) { output.writeMessage(1, intents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < intents_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, intents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesRequest.java index 60ce2166c..7a99f65fd 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesRequest.java @@ -356,16 +356,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } unknownFields.writeTo(output); @@ -377,16 +377,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesResponse.java index 3f7469217..f5d877cd9 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pages_.size(); i++) { output.writeMessage(1, pages_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < pages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pages_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsRequest.java index 85d7d1cbb..4b48b0af6 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsRequest.java @@ -261,13 +261,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -279,13 +279,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsResponse.java index d8236deb2..0d62a7e4c 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsResponse.java @@ -274,7 +274,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < securitySettings_.size(); i++) { output.writeMessage(1, securitySettings_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -289,7 +289,7 @@ public int getSerializedSize() { for (int i = 0; i < securitySettings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, securitySettings_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesRequest.java index 242c4e85e..1dcc732a2 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesRequest.java @@ -269,13 +269,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -287,13 +287,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesResponse.java index 8ca058dab..1e8e3c2f9 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesResponse.java @@ -281,7 +281,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < sessionEntityTypes_.size(); i++) { output.writeMessage(1, sessionEntityTypes_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -297,7 +297,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sessionEntityTypes_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsRequest.java index 18a0a291e..362a5ed23 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsRequest.java @@ -358,16 +358,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } unknownFields.writeTo(output); @@ -379,16 +379,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsResponse.java index 5c78717a4..89a804a02 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsResponse.java @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < testCaseResults_.size(); i++) { output.writeMessage(1, testCaseResults_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < testCaseResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, testCaseResults_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesRequest.java index a32d49887..04f43f4ad 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesRequest.java @@ -471,13 +471,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } if (view_ @@ -495,13 +495,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (view_ diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesResponse.java index 1b2ad224b..9be65b0e5 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesResponse.java @@ -270,7 +270,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < testCases_.size(); i++) { output.writeMessage(1, testCases_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -285,7 +285,7 @@ public int getSerializedSize() { for (int i = 0; i < testCases_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, testCases_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsRequest.java index 14f8a48ca..3dfbf40e1 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsRequest.java @@ -339,16 +339,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); } unknownFields.writeTo(output); @@ -360,16 +360,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsResponse.java index bc31e0a46..d5f2a3cd8 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsResponse.java @@ -298,7 +298,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < transitionRouteGroups_.size(); i++) { output.writeMessage(1, transitionRouteGroups_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -315,7 +315,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, transitionRouteGroups_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsRequest.java index 7261b0a8a..cceeba857 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsRequest.java @@ -263,13 +263,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -281,13 +281,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsResponse.java index 786f5eead..7caf25f17 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsResponse.java @@ -275,7 +275,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < versions_.size(); i++) { output.writeMessage(1, versions_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -290,7 +290,7 @@ public int getSerializedSize() { for (int i = 0; i < versions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, versions_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksRequest.java index 1433052f8..7e63f9a7d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksRequest.java @@ -261,13 +261,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -279,13 +279,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksResponse.java index cc964672d..ca9ec585b 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksResponse.java @@ -270,7 +270,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < webhooks_.size(); i++) { output.writeMessage(1, webhooks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -285,7 +285,7 @@ public int getSerializedSize() { for (int i = 0; i < webhooks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webhooks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LoadVersionRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LoadVersionRequest.java index 26b28f11d..4d10070ae 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LoadVersionRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LoadVersionRequest.java @@ -208,7 +208,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (allowOverrideAgentResources_ != false) { @@ -223,7 +223,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (allowOverrideAgentResources_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryRequest.java index 5f81395b5..c34484ae6 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryRequest.java @@ -264,13 +264,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -282,13 +282,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryResponse.java index 6e7d2f58a..28481ff57 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryResponse.java @@ -273,7 +273,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < environments_.size(); i++) { output.writeMessage(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -288,7 +288,7 @@ public int getSerializedSize() { for (int i = 0; i < environments_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java index 6b0f8f511..3765a0028 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java @@ -732,7 +732,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (parameters_ != null) { output.writeMessage(2, getParameters()); } - if (!getResolvedInputBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolvedInput_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resolvedInput_); } if (matchType_ @@ -743,7 +743,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (confidence_ != 0F) { output.writeFloat(5, confidence_); } - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, event_); } unknownFields.writeTo(output); @@ -761,7 +761,7 @@ public int getSerializedSize() { if (parameters_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getParameters()); } - if (!getResolvedInputBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolvedInput_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resolvedInput_); } if (matchType_ @@ -772,7 +772,7 @@ public int getSerializedSize() { if (confidence_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidence_); } - if (!getEventBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, event_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentRequest.java index e1bee4170..8f6a5ae86 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentRequest.java @@ -334,7 +334,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSessionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } if (queryParams_ != null) { @@ -352,7 +352,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSessionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); } if (queryParams_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Page.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Page.java index 79669e8a6..959ad6d70 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Page.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Page.java @@ -761,10 +761,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (form_ != null) { @@ -792,10 +792,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (form_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfo.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfo.java index 6283429c9..569b31a19 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfo.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfo.java @@ -39,6 +39,7 @@ private PageInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { private PageInfo() { currentPage_ = ""; + displayName_ = ""; } @java.lang.Override @@ -92,6 +93,13 @@ private PageInfo( formInfo_ = subBuilder.buildPartial(); } + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; break; } default: @@ -995,7 +1003,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } if (required_ != false) { @@ -1022,7 +1030,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (required_ != false) { @@ -3044,6 +3052,57 @@ public com.google.protobuf.ByteString getCurrentPageBytes() { } } + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse].
+   * The display name of the current page.
+   * 
+ * + * string display_name = 4; + * + * @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; + } + } + /** + * + * + *
+   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse].
+   * The display name of the current page.
+   * 
+ * + * string display_name = 4; + * + * @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 FORM_INFO_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo formInfo_; /** @@ -3109,12 +3168,15 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getCurrentPageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentPage_); } if (formInfo_ != null) { output.writeMessage(3, getFormInfo()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); + } unknownFields.writeTo(output); } @@ -3124,12 +3186,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getCurrentPageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentPage_); } if (formInfo_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFormInfo()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3147,6 +3212,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dialogflow.cx.v3beta1.PageInfo) obj; if (!getCurrentPage().equals(other.getCurrentPage())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasFormInfo() != other.hasFormInfo()) return false; if (hasFormInfo()) { if (!getFormInfo().equals(other.getFormInfo())) return false; @@ -3164,6 +3230,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CURRENT_PAGE_FIELD_NUMBER; hash = (53 * hash) + getCurrentPage().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); if (hasFormInfo()) { hash = (37 * hash) + FORM_INFO_FIELD_NUMBER; hash = (53 * hash) + getFormInfo().hashCode(); @@ -3315,6 +3383,8 @@ public Builder clear() { super.clear(); currentPage_ = ""; + displayName_ = ""; + if (formInfoBuilder_ == null) { formInfo_ = null; } else { @@ -3349,6 +3419,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.PageInfo result = new com.google.cloud.dialogflow.cx.v3beta1.PageInfo(this); result.currentPage_ = currentPage_; + result.displayName_ = displayName_; if (formInfoBuilder_ == null) { result.formInfo_ = formInfo_; } else { @@ -3408,6 +3479,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.PageInfo other) currentPage_ = other.currentPage_; onChanged(); } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } if (other.hasFormInfo()) { mergeFormInfo(other.getFormInfo()); } @@ -3561,6 +3636,117 @@ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse].
+     * The display name of the current page.
+     * 
+ * + * string display_name = 4; + * + * @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; + } + } + /** + * + * + *
+     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse].
+     * The display name of the current page.
+     * 
+ * + * string display_name = 4; + * + * @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; + } + } + /** + * + * + *
+     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse].
+     * The display name of the current page.
+     * 
+ * + * string display_name = 4; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse].
+     * The display name of the current page.
+     * 
+ * + * string display_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse].
+     * The display name of the current page.
+     * 
+ * + * string display_name = 4; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + private com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo formInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo, diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfoOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfoOrBuilder.java index a6608831f..ab7d24512 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfoOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfoOrBuilder.java @@ -54,6 +54,33 @@ public interface PageInfoOrBuilder */ com.google.protobuf.ByteString getCurrentPageBytes(); + /** + * + * + *
+   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse].
+   * The display name of the current page.
+   * 
+ * + * string display_name = 4; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse].
+   * The display name of the current page.
+   * 
+ * + * string display_name = 4; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + /** * * diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryInput.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryInput.java index e6f1cfe44..e8ecae2e3 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryInput.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryInput.java @@ -589,7 +589,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputCase_ == 3) { output.writeMessage(3, (com.google.cloud.dialogflow.cx.v3beta1.IntentInput) input_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); } if (inputCase_ == 5) { @@ -620,7 +620,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.dialogflow.cx.v3beta1.IntentInput) input_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); } if (inputCase_ == 5) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java index 37c28a19d..b635cdf48 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java @@ -937,7 +937,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, timeZone_); } if (geoLocation_ != null) { @@ -952,7 +952,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (parameters_ != null) { output.writeMessage(5, getParameters()); } - if (!getCurrentPageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, currentPage_); } if (disableWebhook_ != false) { @@ -975,7 +975,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, timeZone_); } if (geoLocation_ != null) { @@ -991,7 +991,7 @@ public int getSerializedSize() { if (parameters_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getParameters()); } - if (!getCurrentPageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, currentPage_); } if (disableWebhook_ != false) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java index ea52600be..86060bace 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java @@ -242,6 +242,23 @@ private QueryResult( sentimentAnalysisResult_ = subBuilder.buildPartial(); } + break; + } + case 186: + { + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.Builder subBuilder = null; + if (queryCase_ == 23) { + subBuilder = + ((com.google.cloud.dialogflow.cx.v3beta1.DtmfInput) query_).toBuilder(); + } + query_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.DtmfInput) query_); + query_ = subBuilder.buildPartial(); + } + queryCase_ = 23; break; } default: @@ -298,6 +315,7 @@ public enum QueryCase TRIGGER_INTENT(11), TRANSCRIPT(12), TRIGGER_EVENT(14), + DTMF(23), QUERY_NOT_SET(0); private final int value; @@ -324,6 +342,8 @@ public static QueryCase forNumber(int value) { return TRANSCRIPT; case 14: return TRIGGER_EVENT; + case 23: + return DTMF; case 0: return QUERY_NOT_SET; default: @@ -638,6 +658,60 @@ public com.google.protobuf.ByteString getTriggerEventBytes() { } } + public static final int DTMF_FIELD_NUMBER = 23; + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + * + * @return Whether the dtmf field is set. + */ + @java.lang.Override + public boolean hasDtmf() { + return queryCase_ == 23; + } + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + * + * @return The dtmf. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DtmfInput getDtmf() { + if (queryCase_ == 23) { + return (com.google.cloud.dialogflow.cx.v3beta1.DtmfInput) query_; + } + return com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.getDefaultInstance(); + } + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DtmfInputOrBuilder getDtmfOrBuilder() { + if (queryCase_ == 23) { + return (com.google.cloud.dialogflow.cx.v3beta1.DtmfInput) query_; + } + return com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.getDefaultInstance(); + } + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** @@ -1329,7 +1403,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queryCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (parameters_ != null) { @@ -1371,6 +1445,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sentimentAnalysisResult_ != null) { output.writeMessage(17, getSentimentAnalysisResult()); } + if (queryCase_ == 23) { + output.writeMessage(23, (com.google.cloud.dialogflow.cx.v3beta1.DtmfInput) query_); + } unknownFields.writeTo(output); } @@ -1383,7 +1460,7 @@ public int getSerializedSize() { if (queryCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (parameters_ != null) { @@ -1427,6 +1504,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 17, getSentimentAnalysisResult()); } + if (queryCase_ == 23) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.cloud.dialogflow.cx.v3beta1.DtmfInput) query_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1487,6 +1569,9 @@ public boolean equals(final java.lang.Object obj) { case 14: if (!getTriggerEvent().equals(other.getTriggerEvent())) return false; break; + case 23: + if (!getDtmf().equals(other.getDtmf())) return false; + break; case 0: default: } @@ -1558,6 +1643,10 @@ public int hashCode() { hash = (37 * hash) + TRIGGER_EVENT_FIELD_NUMBER; hash = (53 * hash) + getTriggerEvent().hashCode(); break; + case 23: + hash = (37 * hash) + DTMF_FIELD_NUMBER; + hash = (53 * hash) + getDtmf().hashCode(); + break; case 0: default: } @@ -1810,6 +1899,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryResult buildPartial() { if (queryCase_ == 14) { result.query_ = query_; } + if (queryCase_ == 23) { + if (dtmfBuilder_ == null) { + result.query_ = query_; + } else { + result.query_ = dtmfBuilder_.build(); + } + } result.languageCode_ = languageCode_; if (parametersBuilder_ == null) { result.parameters_ = parameters_; @@ -2055,6 +2151,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryResult othe onChanged(); break; } + case DTMF: + { + mergeDtmf(other.getDtmf()); + break; + } case QUERY_NOT_SET: { break; @@ -2678,6 +2779,224 @@ public Builder setTriggerEventBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput, + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.Builder, + com.google.cloud.dialogflow.cx.v3beta1.DtmfInputOrBuilder> + dtmfBuilder_; + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + * + * @return Whether the dtmf field is set. + */ + @java.lang.Override + public boolean hasDtmf() { + return queryCase_ == 23; + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + * + * @return The dtmf. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DtmfInput getDtmf() { + if (dtmfBuilder_ == null) { + if (queryCase_ == 23) { + return (com.google.cloud.dialogflow.cx.v3beta1.DtmfInput) query_; + } + return com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.getDefaultInstance(); + } else { + if (queryCase_ == 23) { + return dtmfBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + */ + public Builder setDtmf(com.google.cloud.dialogflow.cx.v3beta1.DtmfInput value) { + if (dtmfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + onChanged(); + } else { + dtmfBuilder_.setMessage(value); + } + queryCase_ = 23; + return this; + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + */ + public Builder setDtmf( + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.Builder builderForValue) { + if (dtmfBuilder_ == null) { + query_ = builderForValue.build(); + onChanged(); + } else { + dtmfBuilder_.setMessage(builderForValue.build()); + } + queryCase_ = 23; + return this; + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + */ + public Builder mergeDtmf(com.google.cloud.dialogflow.cx.v3beta1.DtmfInput value) { + if (dtmfBuilder_ == null) { + if (queryCase_ == 23 + && query_ != com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.getDefaultInstance()) { + query_ = + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.newBuilder( + (com.google.cloud.dialogflow.cx.v3beta1.DtmfInput) query_) + .mergeFrom(value) + .buildPartial(); + } else { + query_ = value; + } + onChanged(); + } else { + if (queryCase_ == 23) { + dtmfBuilder_.mergeFrom(value); + } + dtmfBuilder_.setMessage(value); + } + queryCase_ = 23; + return this; + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + */ + public Builder clearDtmf() { + if (dtmfBuilder_ == null) { + if (queryCase_ == 23) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + } else { + if (queryCase_ == 23) { + queryCase_ = 0; + query_ = null; + } + dtmfBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + */ + public com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.Builder getDtmfBuilder() { + return getDtmfFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DtmfInputOrBuilder getDtmfOrBuilder() { + if ((queryCase_ == 23) && (dtmfBuilder_ != null)) { + return dtmfBuilder_.getMessageOrBuilder(); + } else { + if (queryCase_ == 23) { + return (com.google.cloud.dialogflow.cx.v3beta1.DtmfInput) query_; + } + return com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * If a [DTMF][DTMFInput] was provided as input, this field will contain
+     * a copy of the [DTMFInput][].
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput, + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.Builder, + com.google.cloud.dialogflow.cx.v3beta1.DtmfInputOrBuilder> + getDtmfFieldBuilder() { + if (dtmfBuilder_ == null) { + if (!(queryCase_ == 23)) { + query_ = com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.getDefaultInstance(); + } + dtmfBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput, + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput.Builder, + com.google.cloud.dialogflow.cx.v3beta1.DtmfInputOrBuilder>( + (com.google.cloud.dialogflow.cx.v3beta1.DtmfInput) query_, + getParentForChildren(), + isClean()); + query_ = null; + } + queryCase_ = 23; + onChanged(); + ; + return dtmfBuilder_; + } + private java.lang.Object languageCode_ = ""; /** * diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java index 57ec257b5..835a5738b 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java @@ -189,6 +189,44 @@ public interface QueryResultOrBuilder */ com.google.protobuf.ByteString getTriggerEventBytes(); + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + * + * @return Whether the dtmf field is set. + */ + boolean hasDtmf(); + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + * + * @return The dtmf. + */ + com.google.cloud.dialogflow.cx.v3beta1.DtmfInput getDtmf(); + /** + * + * + *
+   * If a [DTMF][DTMFInput] was provided as input, this field will contain
+   * a copy of the [DTMFInput][].
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23; + */ + com.google.cloud.dialogflow.cx.v3beta1.DtmfInputOrBuilder getDtmfOrBuilder(); + /** * * diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResourceName.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResourceName.java index 377ee9be3..e7ca362cd 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResourceName.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResourceName.java @@ -231,10 +231,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } unknownFields.writeTo(output); @@ -246,10 +246,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java index 0c26ead74..874e75422 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java @@ -253,6 +253,30 @@ private ResponseMessage( messageCase_ = 13; break; } + case 146: + { + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.Builder + subBuilder = null; + if (messageCase_ == 18) { + subBuilder = + ((com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + message_) + .toBuilder(); + } + message_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + message_); + message_ = subBuilder.buildPartial(); + } + messageCase_ = 18; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4709,7 +4733,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getAudioUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audioUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audioUri_); } if (allowPlaybackInterruption_ != false) { @@ -4724,7 +4748,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getAudioUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audioUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audioUri_); } if (allowPlaybackInterruption_ != false) { @@ -7523,188 +7547,1031 @@ public com.google.protobuf.Parser getParserForType() { } } - private int messageCase_ = 0; - private java.lang.Object message_; - - public enum MessageCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TEXT(1), - PAYLOAD(2), - CONVERSATION_SUCCESS(9), - OUTPUT_AUDIO_TEXT(8), - LIVE_AGENT_HANDOFF(10), - END_INTERACTION(11), - PLAY_AUDIO(12), - MIXED_AUDIO(13), - MESSAGE_NOT_SET(0); - private final int value; + public interface TelephonyTransferCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + com.google.protobuf.MessageOrBuilder { - private MessageCase(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. + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return Whether the phoneNumber field is set. */ - @java.lang.Deprecated - public static MessageCase valueOf(int value) { - return forNumber(value); - } - - public static MessageCase forNumber(int value) { - switch (value) { - case 1: - return TEXT; - case 2: - return PAYLOAD; - case 9: - return CONVERSATION_SUCCESS; - case 8: - return OUTPUT_AUDIO_TEXT; - case 10: - return LIVE_AGENT_HANDOFF; - case 11: - return END_INTERACTION; - case 12: - return PLAY_AUDIO; - case 13: - return MIXED_AUDIO; - case 0: - return MESSAGE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public MessageCase getMessageCase() { - return MessageCase.forNumber(messageCase_); - } + boolean hasPhoneNumber(); + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString getPhoneNumberBytes(); - public static final int TEXT_FIELD_NUMBER = 1; - /** - * - * - *
-   * Returns a text response.
-   * 
- * - * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1; - * - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return messageCase_ == 1; + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.EndpointCase + getEndpointCase(); } /** * * *
-   * Returns a text response.
+   * Represents the signal that telles the client to transfer the phone call
+   * connected to the agent to a third-party endpoint.
    * 
* - * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1; - * - * @return The text. + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} */ - @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text getText() { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text) message_; + public static final class TelephonyTransferCall extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + TelephonyTransferCallOrBuilder { + private static final long serialVersionUID = 0L; + // Use TelephonyTransferCall.newBuilder() to construct. + private TelephonyTransferCall(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.getDefaultInstance(); - } - /** - * - * - *
-   * Returns a text response.
-   * 
- * - * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1; - */ - @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TextOrBuilder getTextOrBuilder() { - if (messageCase_ == 1) { - return (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text) message_; + + private TelephonyTransferCall() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TelephonyTransferCall(); } - return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.getDefaultInstance(); - } - public static final int PAYLOAD_FIELD_NUMBER = 2; - /** - * - * - *
-   * Returns a response containing a custom, platform-specific payload.
-   * 
- * - * .google.protobuf.Struct payload = 2; - * - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return messageCase_ == 2; - } - /** - * - * - *
-   * Returns a response containing a custom, platform-specific payload.
-   * 
- * - * .google.protobuf.Struct payload = 2; - * - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.Struct getPayload() { - if (messageCase_ == 2) { - return (com.google.protobuf.Struct) message_; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - return com.google.protobuf.Struct.getDefaultInstance(); - } - /** - * - * - *
-   * Returns a response containing a custom, platform-specific payload.
-   * 
- * - * .google.protobuf.Struct payload = 2; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - if (messageCase_ == 2) { - return (com.google.protobuf.Struct) message_; + + private TelephonyTransferCall( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + endpointCase_ = 1; + endpoint_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } - return com.google.protobuf.Struct.getDefaultInstance(); - } - public static final int CONVERSATION_SUCCESS_FIELD_NUMBER = 9; - /** - * - * - *
-   * Indicates that the conversation succeeded.
-   * 
- * - * - * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess conversation_success = 9; - * - * - * @return Whether the conversationSuccess field is set. - */ - @java.lang.Override + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_TelephonyTransferCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_TelephonyTransferCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.class, + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.Builder + .class); + } + + private int endpointCase_ = 0; + private java.lang.Object endpoint_; + + public enum EndpointCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PHONE_NUMBER(1), + ENDPOINT_NOT_SET(0); + private final int value; + + private EndpointCase(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 EndpointCase valueOf(int value) { + return forNumber(value); + } + + public static EndpointCase forNumber(int value) { + switch (value) { + case 1: + return PHONE_NUMBER; + case 0: + return ENDPOINT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EndpointCase getEndpointCase() { + return EndpointCase.forNumber(endpointCase_); + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 1; + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return Whether the phoneNumber field is set. + */ + public boolean hasPhoneNumber() { + return endpointCase_ == 1; + } + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (ref instanceof java.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 (endpointCase_ == 1) { + endpoint_ = s; + } + return s; + } + } + /** + * + * + *
+     * Transfer the call to a phone number
+     * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+     * 
+ * + * string phone_number = 1; + * + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (endpointCase_ == 1) { + endpoint_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (endpointCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (endpointCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall other = + (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) obj; + + if (!getEndpointCase().equals(other.getEndpointCase())) return false; + switch (endpointCase_) { + case 1: + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (endpointCase_) { + case 1: + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Represents the signal that telles the client to transfer the phone call
+     * connected to the agent to a third-party endpoint.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_TelephonyTransferCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_TelephonyTransferCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.class, + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + endpointCase_ = 0; + endpoint_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_TelephonyTransferCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall build() { + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall result = + new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall(this); + if (endpointCase_ == 1) { + result.endpoint_ = endpoint_; + } + result.endpointCase_ = endpointCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .getDefaultInstance()) return this; + switch (other.getEndpointCase()) { + case PHONE_NUMBER: + { + endpointCase_ = 1; + endpoint_ = other.endpoint_; + onChanged(); + break; + } + case ENDPOINT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int endpointCase_ = 0; + private java.lang.Object endpoint_; + + public EndpointCase getEndpointCase() { + return EndpointCase.forNumber(endpointCase_); + } + + public Builder clearEndpoint() { + endpointCase_ = 0; + endpoint_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return Whether the phoneNumber field is set. + */ + @java.lang.Override + public boolean hasPhoneNumber() { + return endpointCase_ == 1; + } + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (endpointCase_ == 1) { + endpoint_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = ""; + if (endpointCase_ == 1) { + ref = endpoint_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (endpointCase_ == 1) { + endpoint_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpointCase_ = 1; + endpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + if (endpointCase_ == 1) { + endpointCase_ = 0; + endpoint_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Transfer the call to a phone number
+       * in [E.164 format](https://en.wikipedia.org/wiki/E.164).
+       * 
+ * + * string phone_number = 1; + * + * @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); + endpointCase_ = 1; + endpoint_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + private static final com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage + .TelephonyTransferCall + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TelephonyTransferCall parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TelephonyTransferCall(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int messageCase_ = 0; + private java.lang.Object message_; + + public enum MessageCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + PAYLOAD(2), + CONVERSATION_SUCCESS(9), + OUTPUT_AUDIO_TEXT(8), + LIVE_AGENT_HANDOFF(10), + END_INTERACTION(11), + PLAY_AUDIO(12), + MIXED_AUDIO(13), + TELEPHONY_TRANSFER_CALL(18), + MESSAGE_NOT_SET(0); + private final int value; + + private MessageCase(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 MessageCase valueOf(int value) { + return forNumber(value); + } + + public static MessageCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return PAYLOAD; + case 9: + return CONVERSATION_SUCCESS; + case 8: + return OUTPUT_AUDIO_TEXT; + case 10: + return LIVE_AGENT_HANDOFF; + case 11: + return END_INTERACTION; + case 12: + return PLAY_AUDIO; + case 13: + return MIXED_AUDIO; + case 18: + return TELEPHONY_TRANSFER_CALL; + case 0: + return MESSAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MessageCase getMessageCase() { + return MessageCase.forNumber(messageCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return messageCase_ == 1; + } + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1; + * + * @return The text. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text getText() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text) message_; + } + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.getDefaultInstance(); + } + /** + * + * + *
+   * Returns a text response.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TextOrBuilder getTextOrBuilder() { + if (messageCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text) message_; + } + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.getDefaultInstance(); + } + + public static final int PAYLOAD_FIELD_NUMBER = 2; + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return messageCase_ == 2; + } + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (messageCase_ == 2) { + return (com.google.protobuf.Struct) message_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + /** + * + * + *
+   * Returns a response containing a custom, platform-specific payload.
+   * 
+ * + * .google.protobuf.Struct payload = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if (messageCase_ == 2) { + return (com.google.protobuf.Struct) message_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int CONVERSATION_SUCCESS_FIELD_NUMBER = 9; + /** + * + * + *
+   * Indicates that the conversation succeeded.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess conversation_success = 9; + * + * + * @return Whether the conversationSuccess field is set. + */ + @java.lang.Override public boolean hasConversationSuccess() { return messageCase_ == 9; } @@ -8079,6 +8946,72 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio getMixe return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.getDefaultInstance(); } + public static final int TELEPHONY_TRANSFER_CALL_FIELD_NUMBER = 18; + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return Whether the telephonyTransferCall field is set. + */ + @java.lang.Override + public boolean hasTelephonyTransferCall() { + return messageCase_ == 18; + } + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return The telephonyTransferCall. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + getTelephonyTransferCall() { + if (messageCase_ == 18) { + return (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + message_; + } + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCallOrBuilder + getTelephonyTransferCallOrBuilder() { + if (messageCase_ == 18) { + return (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + message_; + } + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8124,6 +9057,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 13, (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio) message_); } + if (messageCase_ == 18) { + output.writeMessage( + 18, + (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) message_); + } unknownFields.writeTo(output); } @@ -8176,6 +9114,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 13, (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio) message_); } + if (messageCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, + (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + message_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -8218,6 +9163,9 @@ public boolean equals(final java.lang.Object obj) { case 13: if (!getMixedAudio().equals(other.getMixedAudio())) return false; break; + case 18: + if (!getTelephonyTransferCall().equals(other.getTelephonyTransferCall())) return false; + break; case 0: default: } @@ -8265,6 +9213,10 @@ public int hashCode() { hash = (37 * hash) + MIXED_AUDIO_FIELD_NUMBER; hash = (53 * hash) + getMixedAudio().hashCode(); break; + case 18: + hash = (37 * hash) + TELEPHONY_TRANSFER_CALL_FIELD_NUMBER; + hash = (53 * hash) + getTelephonyTransferCall().hashCode(); + break; case 0: default: } @@ -8512,6 +9464,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage buildPartial() { result.message_ = mixedAudioBuilder_.build(); } } + if (messageCase_ == 18) { + if (telephonyTransferCallBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = telephonyTransferCallBuilder_.build(); + } + } result.messageCase_ = messageCase_; onBuilt(); return result; @@ -8604,6 +9563,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage mergeMixedAudio(other.getMixedAudio()); break; } + case TELEPHONY_TRANSFER_CALL: + { + mergeTelephonyTransferCall(other.getTelephonyTransferCall()); + break; + } case MESSAGE_NOT_SET: { break; @@ -10602,6 +11566,262 @@ public Builder clearMixedAudio() { return mixedAudioBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall, + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCallOrBuilder> + telephonyTransferCallBuilder_; + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return Whether the telephonyTransferCall field is set. + */ + @java.lang.Override + public boolean hasTelephonyTransferCall() { + return messageCase_ == 18; + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return The telephonyTransferCall. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + getTelephonyTransferCall() { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 18) { + return (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + message_; + } + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } else { + if (messageCase_ == 18) { + return telephonyTransferCallBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + public Builder setTelephonyTransferCall( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall value) { + if (telephonyTransferCallBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + telephonyTransferCallBuilder_.setMessage(value); + } + messageCase_ = 18; + return this; + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + public Builder setTelephonyTransferCall( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.Builder + builderForValue) { + if (telephonyTransferCallBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + telephonyTransferCallBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 18; + return this; + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + public Builder mergeTelephonyTransferCall( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall value) { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 18 + && message_ + != com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .newBuilder( + (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 18) { + telephonyTransferCallBuilder_.mergeFrom(value); + } + telephonyTransferCallBuilder_.setMessage(value); + } + messageCase_ = 18; + return this; + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + public Builder clearTelephonyTransferCall() { + if (telephonyTransferCallBuilder_ == null) { + if (messageCase_ == 18) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 18) { + messageCase_ = 0; + message_ = null; + } + telephonyTransferCallBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.Builder + getTelephonyTransferCallBuilder() { + return getTelephonyTransferCallFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCallOrBuilder + getTelephonyTransferCallOrBuilder() { + if ((messageCase_ == 18) && (telephonyTransferCallBuilder_ != null)) { + return telephonyTransferCallBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 18) { + return (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + message_; + } + return com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A signal that the client should transfer the phone call connected to
+     * this agent to a third-party endpoint.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall, + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCallOrBuilder> + getTelephonyTransferCallFieldBuilder() { + if (telephonyTransferCallBuilder_ == null) { + if (!(messageCase_ == 18)) { + message_ = + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .getDefaultInstance(); + } + telephonyTransferCallBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall, + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + .Builder, + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage + .TelephonyTransferCallOrBuilder>( + (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 18; + onChanged(); + ; + return telephonyTransferCallBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageOrBuilder.java index 989651d29..e696ce060 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageOrBuilder.java @@ -375,5 +375,51 @@ public interface ResponseMessageOrBuilder com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudioOrBuilder getMixedAudioOrBuilder(); + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return Whether the telephonyTransferCall field is set. + */ + boolean hasTelephonyTransferCall(); + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + * + * @return The telephonyTransferCall. + */ + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + getTelephonyTransferCall(); + /** + * + * + *
+   * A signal that the client should transfer the phone call connected to
+   * this agent to a third-party endpoint.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall telephony_transfer_call = 18; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCallOrBuilder + getTelephonyTransferCallOrBuilder(); + public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MessageCase getMessageCase(); } diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageProto.java index dc3c369c1..169d43879 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageProto.java @@ -63,6 +63,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_MixedAudio_Segment_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_MixedAudio_Segment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_TelephonyTransferCall_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_TelephonyTransferCall_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -76,7 +80,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ponse_message.proto\022\"google.cloud.dialog" + "flow.cx.v3beta1\032\037google/api/field_behavi" + "or.proto\032\034google/protobuf/struct.proto\032\034" - + "google/api/annotations.proto\"\255\n\n\017Respons" + + "google/api/annotations.proto\"\330\013\n\017Respons" + "eMessage\022H\n\004text\030\001 \001(\01328.google.cloud.di" + "alogflow.cx.v3beta1.ResponseMessage.Text" + "H\000\022*\n\007payload\030\002 \001(\0132\027.google.protobuf.St" @@ -94,28 +98,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud.dialogflow.cx.v3beta1.ResponseMessa" + "ge.PlayAudioH\000\022Z\n\013mixed_audio\030\r \001(\0132>.go" + "ogle.cloud.dialogflow.cx.v3beta1.Respons" - + "eMessage.MixedAudioB\003\340A\003H\000\032C\n\004Text\022\021\n\004te" - + "xt\030\001 \003(\tB\003\340A\002\022(\n\033allow_playback_interrup" - + "tion\030\002 \001(\010B\003\340A\003\032=\n\020LiveAgentHandoff\022)\n\010m" - + "etadata\030\001 \001(\0132\027.google.protobuf.Struct\032@" - + "\n\023ConversationSuccess\022)\n\010metadata\030\001 \001(\0132" - + "\027.google.protobuf.Struct\032e\n\017OutputAudioT" - + "ext\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000\022(\n\033a" - + "llow_playback_interruption\030\003 \001(\010B\003\340A\003B\010\n" - + "\006source\032\020\n\016EndInteraction\032M\n\tPlayAudio\022\026" - + "\n\taudio_uri\030\001 \001(\tB\003\340A\002\022(\n\033allow_playback" - + "_interruption\030\002 \001(\010B\003\340A\003\032\306\001\n\nMixedAudio\022" - + "X\n\010segments\030\001 \003(\0132F.google.cloud.dialogf" - + "low.cx.v3beta1.ResponseMessage.MixedAudi" - + "o.Segment\032^\n\007Segment\022\017\n\005audio\030\001 \001(\014H\000\022\r\n" - + "\003uri\030\002 \001(\tH\000\022(\n\033allow_playback_interrupt" - + "ion\030\003 \001(\010B\003\340A\003B\t\n\007contentB\t\n\007messageB\334\001\n" - + "&com.google.cloud.dialogflow.cx.v3beta1B" - + "\024ResponseMessageProtoP\001ZDgoogle.golang.o" - + "rg/genproto/googleapis/cloud/dialogflow/" - + "cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dia" - + "logflow.Cx.V3Beta1\352\002&Google::Cloud::Dial" - + "ogflow::CX::V3beta1b\006proto3" + + "eMessage.MixedAudioB\003\340A\003H\000\022l\n\027telephony_" + + "transfer_call\030\022 \001(\0132I.google.cloud.dialo" + + "gflow.cx.v3beta1.ResponseMessage.Telepho" + + "nyTransferCallH\000\032C\n\004Text\022\021\n\004text\030\001 \003(\tB\003" + + "\340A\002\022(\n\033allow_playback_interruption\030\002 \001(\010" + + "B\003\340A\003\032=\n\020LiveAgentHandoff\022)\n\010metadata\030\001 " + + "\001(\0132\027.google.protobuf.Struct\032@\n\023Conversa" + + "tionSuccess\022)\n\010metadata\030\001 \001(\0132\027.google.p" + + "rotobuf.Struct\032e\n\017OutputAudioText\022\016\n\004tex" + + "t\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000\022(\n\033allow_playb" + + "ack_interruption\030\003 \001(\010B\003\340A\003B\010\n\006source\032\020\n" + + "\016EndInteraction\032M\n\tPlayAudio\022\026\n\taudio_ur" + + "i\030\001 \001(\tB\003\340A\002\022(\n\033allow_playback_interrupt" + + "ion\030\002 \001(\010B\003\340A\003\032\306\001\n\nMixedAudio\022X\n\010segment" + + "s\030\001 \003(\0132F.google.cloud.dialogflow.cx.v3b" + + "eta1.ResponseMessage.MixedAudio.Segment\032" + + "^\n\007Segment\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\t" + + "H\000\022(\n\033allow_playback_interruption\030\003 \001(\010B" + + "\003\340A\003B\t\n\007content\032;\n\025TelephonyTransferCall" + + "\022\026\n\014phone_number\030\001 \001(\tH\000B\n\n\010endpointB\t\n\007" + + "messageB\334\001\n&com.google.cloud.dialogflow." + + "cx.v3beta1B\024ResponseMessageProtoP\001ZDgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "dialogflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Googl" + + "e.Cloud.Dialogflow.Cx.V3Beta1\352\002&Google::" + + "Cloud::Dialogflow::CX::V3beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -139,6 +147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EndInteraction", "PlayAudio", "MixedAudio", + "TelephonyTransferCall", "Message", }); internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_Text_descriptor = @@ -219,6 +228,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Audio", "Uri", "AllowPlaybackInterruption", "Content", }); + internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_TelephonyTransferCall_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_descriptor + .getNestedTypes() + .get(7); + internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_TelephonyTransferCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_TelephonyTransferCall_descriptor, + new java.lang.String[] { + "PhoneNumber", "Endpoint", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java index 7ee3624bf..1090f51d2 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java @@ -566,7 +566,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (agentCase_ == 2) { @@ -590,7 +590,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (agentCase_ == 2) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutConfig.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutConfig.java index 4201709a5..49cb7ff4d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutConfig.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutConfig.java @@ -472,7 +472,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } if (trafficPercent_ != 0) { @@ -490,7 +490,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (trafficPercent_ != 0) { @@ -1464,10 +1464,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < rolloutSteps_.size(); i++) { output.writeMessage(1, rolloutSteps_.get(i)); } - if (!getRolloutConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutCondition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rolloutCondition_); } - if (!getFailureConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureCondition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, failureCondition_); } unknownFields.writeTo(output); @@ -1482,10 +1482,10 @@ public int getSerializedSize() { for (int i = 0; i < rolloutSteps_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rolloutSteps_.get(i)); } - if (!getRolloutConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutCondition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rolloutCondition_); } - if (!getFailureConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureCondition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, failureCondition_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutState.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutState.java index 0f496e619..87863cf91 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutState.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutState.java @@ -258,7 +258,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getStepBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(step_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, step_); } if (startTime_ != null) { @@ -276,7 +276,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getStepBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(step_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, step_); } if (startTime_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestRequest.java index 24a9083e9..e54610819 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environment_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, environment_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseRequest.java index 554243e5b..6c2c1c744 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseRequest.java @@ -245,10 +245,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environment_); } unknownFields.writeTo(output); @@ -260,10 +260,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environment_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java index c1fc434e5..2576345bc 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java @@ -1269,12 +1269,15 @@ public DataRetentionCase getDataRetentionCase() { * * *
-   * Required. Resource name of the settings.
+   * Resource name of the settings.
+   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings] method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings] populates the name
+   * automatically.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The name. */ @@ -1294,12 +1297,15 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of the settings.
+   * Resource name of the settings.
+   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings] method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings] populates the name
+   * automatically.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The bytes for name. */ @@ -1465,6 +1471,10 @@ public int getRedactionScopeValue() { *
    * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
    * template to define inspect base settings.
+   * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, we use the default DLP inspect config.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -1496,6 +1506,10 @@ public java.lang.String getInspectTemplate() {
    * 
    * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
    * template to define inspect base settings.
+   * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, we use the default DLP inspect config.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -1530,6 +1544,10 @@ public com.google.protobuf.ByteString getInspectTemplateBytes() {
    * 
    * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
    * template to define de-identification configuration for the content.
+   * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location
@@ -1561,6 +1579,10 @@ public java.lang.String getDeidentifyTemplate() {
    * 
    * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
    * template to define de-identification configuration for the content.
+   * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location
@@ -1595,7 +1617,7 @@ public com.google.protobuf.ByteString getDeidentifyTemplateBytes() {
    * Retains data in interaction logging for the specified number of days.
    * This does not apply to Cloud logging, which is owned by the user - not
    * Dialogflow.
-   * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+   * User must set a value lower than Dialogflow's default 365d TTL. Setting a
    * value higher than that has no effect.
    * A missing value or setting to 0 also means we use Dialogflow's default
    * TTL.
@@ -1618,7 +1640,7 @@ public boolean hasRetentionWindowDays() {
    * Retains data in interaction logging for the specified number of days.
    * This does not apply to Cloud logging, which is owned by the user - not
    * Dialogflow.
-   * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+   * User must set a value lower than Dialogflow's default 365d TTL. Setting a
    * value higher than that has no effect.
    * A missing value or setting to 0 also means we use Dialogflow's default
    * TTL.
@@ -1834,10 +1856,10 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getSerializedSize();
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
-    if (!getDisplayNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
     }
     if (redactionStrategy_
@@ -1862,13 +1884,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     for (int i = 0; i < purgeDataTypes_.size(); i++) {
       output.writeEnumNoTag(purgeDataTypes_.get(i));
     }
-    if (!getInspectTemplateBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inspectTemplate_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 9, inspectTemplate_);
     }
     if (insightsExportSettings_ != null) {
       output.writeMessage(13, getInsightsExportSettings());
     }
-    if (!getDeidentifyTemplateBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deidentifyTemplate_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 17, deidentifyTemplate_);
     }
     unknownFields.writeTo(output);
@@ -1880,10 +1902,10 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    if (!getDisplayNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
     }
     if (redactionStrategy_
@@ -1916,14 +1938,14 @@ public int getSerializedSize() {
       }
       purgeDataTypesMemoizedSerializedSize = dataSize;
     }
-    if (!getInspectTemplateBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inspectTemplate_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, inspectTemplate_);
     }
     if (insightsExportSettings_ != null) {
       size +=
           com.google.protobuf.CodedOutputStream.computeMessageSize(13, getInsightsExportSettings());
     }
-    if (!getDeidentifyTemplateBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deidentifyTemplate_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, deidentifyTemplate_);
     }
     size += unknownFields.getSerializedSize();
@@ -2365,12 +2387,15 @@ public Builder clearDataRetention() {
      *
      *
      * 
-     * Required. Resource name of the settings.
+     * Resource name of the settings.
+     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings] method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings] populates the name
+     * automatically.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The name. */ @@ -2389,12 +2414,15 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of the settings.
+     * Resource name of the settings.
+     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings] method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings] populates the name
+     * automatically.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The bytes for name. */ @@ -2413,12 +2441,15 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of the settings.
+     * Resource name of the settings.
+     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings] method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings] populates the name
+     * automatically.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @param value The name to set. * @return This builder for chaining. @@ -2436,12 +2467,15 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of the settings.
+     * Resource name of the settings.
+     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings] method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings] populates the name
+     * automatically.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return This builder for chaining. */ @@ -2455,12 +2489,15 @@ public Builder clearName() { * * *
-     * Required. Resource name of the settings.
+     * Resource name of the settings.
+     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings] method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings] populates the name
+     * automatically.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -2816,6 +2853,10 @@ public Builder clearRedactionScope() { *
      * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
      * template to define inspect base settings.
+     * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, we use the default DLP inspect config.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -2846,6 +2887,10 @@ public java.lang.String getInspectTemplate() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
      * template to define inspect base settings.
+     * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, we use the default DLP inspect config.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -2876,6 +2921,10 @@ public com.google.protobuf.ByteString getInspectTemplateBytes() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
      * template to define inspect base settings.
+     * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, we use the default DLP inspect config.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -2905,6 +2954,10 @@ public Builder setInspectTemplate(java.lang.String value) {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
      * template to define inspect base settings.
+     * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, we use the default DLP inspect config.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -2930,6 +2983,10 @@ public Builder clearInspectTemplate() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
      * template to define inspect base settings.
+     * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, we use the default DLP inspect config.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -2962,6 +3019,10 @@ public Builder setInspectTemplateBytes(com.google.protobuf.ByteString value) {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
      * template to define de-identification configuration for the content.
+     * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location
@@ -2992,6 +3053,10 @@ public java.lang.String getDeidentifyTemplate() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
      * template to define de-identification configuration for the content.
+     * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location
@@ -3022,6 +3087,10 @@ public com.google.protobuf.ByteString getDeidentifyTemplateBytes() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
      * template to define de-identification configuration for the content.
+     * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location
@@ -3051,6 +3120,10 @@ public Builder setDeidentifyTemplate(java.lang.String value) {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
      * template to define de-identification configuration for the content.
+     * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location
@@ -3076,6 +3149,10 @@ public Builder clearDeidentifyTemplate() {
      * 
      * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
      * template to define de-identification configuration for the content.
+     * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+     * service identity service account (has the form
+     * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+     * for your agent's project.
      * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
      * The template name will have one of the following formats:
      * `projects/<Project ID>/locations/<Location
@@ -3108,7 +3185,7 @@ public Builder setDeidentifyTemplateBytes(com.google.protobuf.ByteString value)
      * Retains data in interaction logging for the specified number of days.
      * This does not apply to Cloud logging, which is owned by the user - not
      * Dialogflow.
-     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+     * User must set a value lower than Dialogflow's default 365d TTL. Setting a
      * value higher than that has no effect.
      * A missing value or setting to 0 also means we use Dialogflow's default
      * TTL.
@@ -3130,7 +3207,7 @@ public boolean hasRetentionWindowDays() {
      * Retains data in interaction logging for the specified number of days.
      * This does not apply to Cloud logging, which is owned by the user - not
      * Dialogflow.
-     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+     * User must set a value lower than Dialogflow's default 365d TTL. Setting a
      * value higher than that has no effect.
      * A missing value or setting to 0 also means we use Dialogflow's default
      * TTL.
@@ -3155,7 +3232,7 @@ public int getRetentionWindowDays() {
      * Retains data in interaction logging for the specified number of days.
      * This does not apply to Cloud logging, which is owned by the user - not
      * Dialogflow.
-     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+     * User must set a value lower than Dialogflow's default 365d TTL. Setting a
      * value higher than that has no effect.
      * A missing value or setting to 0 also means we use Dialogflow's default
      * TTL.
@@ -3181,7 +3258,7 @@ public Builder setRetentionWindowDays(int value) {
      * Retains data in interaction logging for the specified number of days.
      * This does not apply to Cloud logging, which is owned by the user - not
      * Dialogflow.
-     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+     * User must set a value lower than Dialogflow's default 365d TTL. Setting a
      * value higher than that has no effect.
      * A missing value or setting to 0 also means we use Dialogflow's default
      * TTL.
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsOrBuilder.java
index 2b2bcae58..c014104bd 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsOrBuilder.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsOrBuilder.java
@@ -27,12 +27,15 @@ public interface SecuritySettingsOrBuilder
    *
    *
    * 
-   * Required. Resource name of the settings.
+   * Resource name of the settings.
+   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings] method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings] populates the name
+   * automatically.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The name. */ @@ -41,12 +44,15 @@ public interface SecuritySettingsOrBuilder * * *
-   * Required. Resource name of the settings.
+   * Resource name of the settings.
+   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings] method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings] populates the name
+   * automatically.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1; * * @return The bytes for name. */ @@ -145,6 +151,10 @@ public interface SecuritySettingsOrBuilder *
    * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
    * template to define inspect base settings.
+   * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, we use the default DLP inspect config.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -165,6 +175,10 @@ public interface SecuritySettingsOrBuilder
    * 
    * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
    * template to define inspect base settings.
+   * The `DLP Inspect Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, we use the default DLP inspect config.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
@@ -186,6 +200,10 @@ public interface SecuritySettingsOrBuilder
    * 
    * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
    * template to define de-identification configuration for the content.
+   * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location
@@ -206,6 +224,10 @@ public interface SecuritySettingsOrBuilder
    * 
    * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
    * template to define de-identification configuration for the content.
+   * The `DLP De-identify Templates Reader` role is needed on the Dialogflow
+   * service identity service account (has the form
+   * `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`)
+   * for your agent's project.
    * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
    * The template name will have one of the following formats:
    * `projects/<Project ID>/locations/<Location
@@ -228,7 +250,7 @@ public interface SecuritySettingsOrBuilder
    * Retains data in interaction logging for the specified number of days.
    * This does not apply to Cloud logging, which is owned by the user - not
    * Dialogflow.
-   * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+   * User must set a value lower than Dialogflow's default 365d TTL. Setting a
    * value higher than that has no effect.
    * A missing value or setting to 0 also means we use Dialogflow's default
    * TTL.
@@ -248,7 +270,7 @@ public interface SecuritySettingsOrBuilder
    * Retains data in interaction logging for the specified number of days.
    * This does not apply to Cloud logging, which is owned by the user - not
    * Dialogflow.
-   * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
+   * User must set a value lower than Dialogflow's default 365d TTL. Setting a
    * value higher than that has no effect.
    * A missing value or setting to 0 also means we use Dialogflow's default
    * TTL.
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsProto.java
index 613fb70e1..74f39fe3a 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsProto.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsProto.java
@@ -96,84 +96,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "oud.dialogflow.cx.v3beta1.SecuritySettin"
           + "gsB\003\340A\002\"a\n\035DeleteSecuritySettingsRequest"
           + "\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*dialogflow.googl"
-          + "eapis.com/SecuritySettings\"\257\010\n\020SecurityS"
-          + "ettings\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014display_na"
-          + "me\030\002 \001(\tB\003\340A\002\022b\n\022redaction_strategy\030\003 \001("
-          + "\0162F.google.cloud.dialogflow.cx.v3beta1.S"
-          + "ecuritySettings.RedactionStrategy\022\\\n\017red"
-          + "action_scope\030\004 \001(\0162C.google.cloud.dialog"
-          + "flow.cx.v3beta1.SecuritySettings.Redacti"
-          + "onScope\022A\n\020inspect_template\030\t \001(\tB\'\372A$\n\""
-          + "dlp.googleapis.com/InspectTemplate\022G\n\023de"
-          + "identify_template\030\021 \001(\tB*\372A\'\n%dlp.google"
-          + "apis.com/DeidentifyTemplate\022\037\n\025retention"
-          + "_window_days\030\006 \001(\005H\000\022\\\n\020purge_data_types"
-          + "\030\010 \003(\0162B.google.cloud.dialogflow.cx.v3be"
-          + "ta1.SecuritySettings.PurgeDataType\022m\n\030in"
-          + "sights_export_settings\030\r \001(\0132K.google.cl"
-          + "oud.dialogflow.cx.v3beta1.SecuritySettin"
-          + "gs.InsightsExportSettings\0328\n\026InsightsExp"
-          + "ortSettings\022\036\n\026enable_insights_export\030\001 "
-          + "\001(\010\"P\n\021RedactionStrategy\022\"\n\036REDACTION_ST"
-          + "RATEGY_UNSPECIFIED\020\000\022\027\n\023REDACT_WITH_SERV"
-          + "ICE\020\001\"J\n\016RedactionScope\022\037\n\033REDACTION_SCO"
-          + "PE_UNSPECIFIED\020\000\022\027\n\023REDACT_DISK_STORAGE\020"
-          + "\002\"H\n\rPurgeDataType\022\037\n\033PURGE_DATA_TYPE_UN"
-          + "SPECIFIED\020\000\022\026\n\022DIALOGFLOW_HISTORY\020\001:}\352Az"
-          + "\n*dialogflow.googleapis.com/SecuritySett"
-          + "ings\022Lprojects/{project}/locations/{loca"
-          + "tion}/securitySettings/{security_setting"
-          + "s}B\020\n\016data_retention2\265\n\n\027SecuritySetting"
-          + "sService\022\202\002\n\026CreateSecuritySettings\022A.go"
-          + "ogle.cloud.dialogflow.cx.v3beta1.CreateS"
-          + "ecuritySettingsRequest\0324.google.cloud.di"
-          + "alogflow.cx.v3beta1.SecuritySettings\"o\202\323"
-          + "\344\223\002N\"9/v3beta1/{parent=projects/*/locati"
-          + "ons/*}/securitySettings:\021security_settin"
-          + "gs\332A\030parent,security_settings\022\325\001\n\023GetSec"
-          + "uritySettings\022>.google.cloud.dialogflow."
-          + "cx.v3beta1.GetSecuritySettingsRequest\0324."
-          + "google.cloud.dialogflow.cx.v3beta1.Secur"
-          + "itySettings\"H\202\323\344\223\002;\0229/v3beta1/{name=proj"
-          + "ects/*/locations/*/securitySettings/*}\332A"
-          + "\004name\022\232\002\n\026UpdateSecuritySettings\022A.googl"
-          + "e.cloud.dialogflow.cx.v3beta1.UpdateSecu"
-          + "ritySettingsRequest\0324.google.cloud.dialo"
-          + "gflow.cx.v3beta1.SecuritySettings\"\206\001\202\323\344\223"
-          + "\002`2K/v3beta1/{security_settings.name=pro"
-          + "jects/*/locations/*/securitySettings/*}:"
-          + "\021security_settings\332A\035security_settings,u"
-          + "pdate_mask\022\345\001\n\024ListSecuritySettings\022?.go"
-          + "ogle.cloud.dialogflow.cx.v3beta1.ListSec"
-          + "uritySettingsRequest\032@.google.cloud.dial"
-          + "ogflow.cx.v3beta1.ListSecuritySettingsRe"
-          + "sponse\"J\202\323\344\223\002;\0229/v3beta1/{parent=project"
-          + "s/*/locations/*}/securitySettings\332A\006pare"
-          + "nt\022\275\001\n\026DeleteSecuritySettings\022A.google.c"
-          + "loud.dialogflow.cx.v3beta1.DeleteSecurit"
-          + "ySettingsRequest\032\026.google.protobuf.Empty"
-          + "\"H\202\323\344\223\002;*9/v3beta1/{name=projects/*/loca"
-          + "tions/*/securitySettings/*}\332A\004name\032x\312A\031d"
-          + "ialogflow.googleapis.com\322AYhttps://www.g"
-          + "oogleapis.com/auth/cloud-platform,https:"
-          + "//www.googleapis.com/auth/dialogflowB\204\005\n"
-          + "&com.google.cloud.dialogflow.cx.v3beta1B"
-          + "\025SecuritySettingsProtoP\001ZDgoogle.golang."
-          + "org/genproto/googleapis/cloud/dialogflow"
-          + "/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud.Di"
-          + "alogflow.Cx.V3Beta1\352\002&Google::Cloud::Dia"
-          + "logflow::CX::V3beta1\352A\310\001\n\"dlp.googleapis"
-          + ".com/InspectTemplate\022Uorganizations/{org"
-          + "anization}/locations/{location}/inspectT"
-          + "emplates/{inspect_template}\022Kprojects/{p"
-          + "roject}/locations/{location}/inspectTemp"
-          + "lates/{inspect_template}\352A\327\001\n%dlp.google"
-          + "apis.com/DeidentifyTemplate\022[organizatio"
-          + "ns/{organization}/locations/{location}/d"
-          + "eidentifyTemplates/{deidentify_template}"
-          + "\022Qprojects/{project}/locations/{location"
-          + "}/deidentifyTemplates/{deidentify_templa"
-          + "te}b\006proto3"
+          + "eapis.com/SecuritySettings\"\252\010\n\020SecurityS"
+          + "ettings\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 "
+          + "\001(\tB\003\340A\002\022b\n\022redaction_strategy\030\003 \001(\0162F.g"
+          + "oogle.cloud.dialogflow.cx.v3beta1.Securi"
+          + "tySettings.RedactionStrategy\022\\\n\017redactio"
+          + "n_scope\030\004 \001(\0162C.google.cloud.dialogflow."
+          + "cx.v3beta1.SecuritySettings.RedactionSco"
+          + "pe\022A\n\020inspect_template\030\t \001(\tB\'\372A$\n\"dlp.g"
+          + "oogleapis.com/InspectTemplate\022G\n\023deident"
+          + "ify_template\030\021 \001(\tB*\372A\'\n%dlp.googleapis."
+          + "com/DeidentifyTemplate\022\037\n\025retention_wind"
+          + "ow_days\030\006 \001(\005H\000\022\\\n\020purge_data_types\030\010 \003("
+          + "\0162B.google.cloud.dialogflow.cx.v3beta1.S"
+          + "ecuritySettings.PurgeDataType\022m\n\030insight"
+          + "s_export_settings\030\r \001(\0132K.google.cloud.d"
+          + "ialogflow.cx.v3beta1.SecuritySettings.In"
+          + "sightsExportSettings\0328\n\026InsightsExportSe"
+          + "ttings\022\036\n\026enable_insights_export\030\001 \001(\010\"P"
+          + "\n\021RedactionStrategy\022\"\n\036REDACTION_STRATEG"
+          + "Y_UNSPECIFIED\020\000\022\027\n\023REDACT_WITH_SERVICE\020\001"
+          + "\"J\n\016RedactionScope\022\037\n\033REDACTION_SCOPE_UN"
+          + "SPECIFIED\020\000\022\027\n\023REDACT_DISK_STORAGE\020\002\"H\n\r"
+          + "PurgeDataType\022\037\n\033PURGE_DATA_TYPE_UNSPECI"
+          + "FIED\020\000\022\026\n\022DIALOGFLOW_HISTORY\020\001:}\352Az\n*dia"
+          + "logflow.googleapis.com/SecuritySettings\022"
+          + "Lprojects/{project}/locations/{location}"
+          + "/securitySettings/{security_settings}B\020\n"
+          + "\016data_retention2\265\n\n\027SecuritySettingsServ"
+          + "ice\022\202\002\n\026CreateSecuritySettings\022A.google."
+          + "cloud.dialogflow.cx.v3beta1.CreateSecuri"
+          + "tySettingsRequest\0324.google.cloud.dialogf"
+          + "low.cx.v3beta1.SecuritySettings\"o\202\323\344\223\002N\""
+          + "9/v3beta1/{parent=projects/*/locations/*"
+          + "}/securitySettings:\021security_settings\332A\030"
+          + "parent,security_settings\022\325\001\n\023GetSecurity"
+          + "Settings\022>.google.cloud.dialogflow.cx.v3"
+          + "beta1.GetSecuritySettingsRequest\0324.googl"
+          + "e.cloud.dialogflow.cx.v3beta1.SecuritySe"
+          + "ttings\"H\202\323\344\223\002;\0229/v3beta1/{name=projects/"
+          + "*/locations/*/securitySettings/*}\332A\004name"
+          + "\022\232\002\n\026UpdateSecuritySettings\022A.google.clo"
+          + "ud.dialogflow.cx.v3beta1.UpdateSecurityS"
+          + "ettingsRequest\0324.google.cloud.dialogflow"
+          + ".cx.v3beta1.SecuritySettings\"\206\001\202\323\344\223\002`2K/"
+          + "v3beta1/{security_settings.name=projects"
+          + "/*/locations/*/securitySettings/*}:\021secu"
+          + "rity_settings\332A\035security_settings,update"
+          + "_mask\022\345\001\n\024ListSecuritySettings\022?.google."
+          + "cloud.dialogflow.cx.v3beta1.ListSecurity"
+          + "SettingsRequest\032@.google.cloud.dialogflo"
+          + "w.cx.v3beta1.ListSecuritySettingsRespons"
+          + "e\"J\202\323\344\223\002;\0229/v3beta1/{parent=projects/*/l"
+          + "ocations/*}/securitySettings\332A\006parent\022\275\001"
+          + "\n\026DeleteSecuritySettings\022A.google.cloud."
+          + "dialogflow.cx.v3beta1.DeleteSecuritySett"
+          + "ingsRequest\032\026.google.protobuf.Empty\"H\202\323\344"
+          + "\223\002;*9/v3beta1/{name=projects/*/locations"
+          + "/*/securitySettings/*}\332A\004name\032x\312A\031dialog"
+          + "flow.googleapis.com\322AYhttps://www.google"
+          + "apis.com/auth/cloud-platform,https://www"
+          + ".googleapis.com/auth/dialogflowB\204\005\n&com."
+          + "google.cloud.dialogflow.cx.v3beta1B\025Secu"
+          + "ritySettingsProtoP\001ZDgoogle.golang.org/g"
+          + "enproto/googleapis/cloud/dialogflow/cx/v"
+          + "3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogf"
+          + "low.Cx.V3Beta1\352\002&Google::Cloud::Dialogfl"
+          + "ow::CX::V3beta1\352A\310\001\n\"dlp.googleapis.com/"
+          + "InspectTemplate\022Uorganizations/{organiza"
+          + "tion}/locations/{location}/inspectTempla"
+          + "tes/{inspect_template}\022Kprojects/{projec"
+          + "t}/locations/{location}/inspectTemplates"
+          + "/{inspect_template}\352A\327\001\n%dlp.googleapis."
+          + "com/DeidentifyTemplate\022[organizations/{o"
+          + "rganization}/locations/{location}/deiden"
+          + "tifyTemplates/{deidentify_template}\022Qpro"
+          + "jects/{project}/locations/{location}/dei"
+          + "dentifyTemplates/{deidentify_template}b\006"
+          + "proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityType.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityType.java
index 464dcdcfe..8e95e6212 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityType.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityType.java
@@ -532,7 +532,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     if (entityOverrideMode_
@@ -553,7 +553,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (entityOverrideMode_
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfo.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfo.java
index 32368d157..c82a98b31 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfo.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfo.java
@@ -338,7 +338,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getSessionBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_);
     }
     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
@@ -352,7 +352,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getSessionBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_);
     }
     for (java.util.Map.Entry entry :
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java
index 3e30a63c0..677dfc8ac 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java
@@ -201,113 +201,115 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "(\0132..google.cloud.dialogflow.cx.v3beta1."
           + "EventInputH\000\022=\n\004dtmf\030\007 \001(\0132-.google.clou"
           + "d.dialogflow.cx.v3beta1.DtmfInputH\000\022\032\n\rl"
-          + "anguage_code\030\004 \001(\tB\003\340A\002B\007\n\005input\"\200\006\n\013Que"
+          + "anguage_code\030\004 \001(\tB\003\340A\002B\007\n\005input\"\277\006\n\013Que"
           + "ryResult\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigger_inte"
           + "nt\030\013 \001(\tB%\372A\"\n dialogflow.googleapis.com"
           + "/IntentH\000\022\024\n\ntranscript\030\014 \001(\tH\000\022\027\n\rtrigg"
-          + "er_event\030\016 \001(\tH\000\022\025\n\rlanguage_code\030\002 \001(\t\022"
-          + "+\n\nparameters\030\003 \001(\0132\027.google.protobuf.St"
-          + "ruct\022N\n\021response_messages\030\004 \003(\01323.google"
-          + ".cloud.dialogflow.cx.v3beta1.ResponseMes"
-          + "sage\022,\n\020webhook_statuses\030\r \003(\0132\022.google."
-          + "rpc.Status\0221\n\020webhook_payloads\030\006 \003(\0132\027.g"
-          + "oogle.protobuf.Struct\022>\n\014current_page\030\007 "
+          + "er_event\030\016 \001(\tH\000\022=\n\004dtmf\030\027 \001(\0132-.google."
+          + "cloud.dialogflow.cx.v3beta1.DtmfInputH\000\022"
+          + "\025\n\rlanguage_code\030\002 \001(\t\022+\n\nparameters\030\003 \001"
+          + "(\0132\027.google.protobuf.Struct\022N\n\021response_"
+          + "messages\030\004 \003(\01323.google.cloud.dialogflow"
+          + ".cx.v3beta1.ResponseMessage\022,\n\020webhook_s"
+          + "tatuses\030\r \003(\0132\022.google.rpc.Status\0221\n\020web"
+          + "hook_payloads\030\006 \003(\0132\027.google.protobuf.St"
+          + "ruct\022>\n\014current_page\030\007 \001(\0132(.google.clou"
+          + "d.dialogflow.cx.v3beta1.Page\022>\n\006intent\030\010"
+          + " \001(\0132*.google.cloud.dialogflow.cx.v3beta"
+          + "1.IntentB\002\030\001\022\'\n\033intent_detection_confide"
+          + "nce\030\t \001(\002B\002\030\001\0228\n\005match\030\017 \001(\0132).google.cl"
+          + "oud.dialogflow.cx.v3beta1.Match\0220\n\017diagn"
+          + "ostic_info\030\n \001(\0132\027.google.protobuf.Struc"
+          + "t\022^\n\031sentiment_analysis_result\030\021 \001(\0132;.g"
+          + "oogle.cloud.dialogflow.cx.v3beta1.Sentim"
+          + "entAnalysisResultB\007\n\005query\"\036\n\tTextInput\022"
+          + "\021\n\004text\030\001 \001(\tB\003\340A\002\"G\n\013IntentInput\0228\n\006int"
+          + "ent\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.googleapis"
+          + ".com/Intent\"f\n\nAudioInput\022I\n\006config\030\001 \001("
+          + "\01324.google.cloud.dialogflow.cx.v3beta1.I"
+          + "nputAudioConfigB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033\n\nE"
+          + "ventInput\022\r\n\005event\030\001 \001(\t\"1\n\tDtmfInput\022\016\n"
+          + "\006digits\030\001 \001(\t\022\024\n\014finish_digit\030\002 \001(\t\"\373\002\n\005"
+          + "Match\022:\n\006intent\030\001 \001(\0132*.google.cloud.dia"
+          + "logflow.cx.v3beta1.Intent\022\r\n\005event\030\006 \001(\t"
+          + "\022+\n\nparameters\030\002 \001(\0132\027.google.protobuf.S"
+          + "truct\022\026\n\016resolved_input\030\003 \001(\t\022G\n\nmatch_t"
+          + "ype\030\004 \001(\01623.google.cloud.dialogflow.cx.v"
+          + "3beta1.Match.MatchType\022\022\n\nconfidence\030\005 \001"
+          + "(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TYPE_UNSPECIFI"
+          + "ED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021P"
+          + "ARAMETER_FILLING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_I"
+          + "NPUT\020\005\022\t\n\005EVENT\020\006\"\345\001\n\022MatchIntentRequest"
+          + "\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.go"
+          + "ogleapis.com/Session\022I\n\014query_params\030\002 \001"
+          + "(\01323.google.cloud.dialogflow.cx.v3beta1."
+          + "QueryParameters\022H\n\013query_input\030\003 \001(\0132..g"
+          + "oogle.cloud.dialogflow.cx.v3beta1.QueryI"
+          + "nputB\003\340A\002\"\232\002\n\023MatchIntentResponse\022\016\n\004tex"
+          + "t\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(\tB%\372A\"\n "
+          + "dialogflow.googleapis.com/IntentH\000\022\024\n\ntr"
+          + "anscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006 \001(\tH"
+          + "\000\022:\n\007matches\030\004 \003(\0132).google.cloud.dialog"
+          + "flow.cx.v3beta1.Match\022>\n\014current_page\030\005 "
           + "\001(\0132(.google.cloud.dialogflow.cx.v3beta1"
-          + ".Page\022>\n\006intent\030\010 \001(\0132*.google.cloud.dia"
-          + "logflow.cx.v3beta1.IntentB\002\030\001\022\'\n\033intent_"
-          + "detection_confidence\030\t \001(\002B\002\030\001\0228\n\005match\030"
-          + "\017 \001(\0132).google.cloud.dialogflow.cx.v3bet"
-          + "a1.Match\0220\n\017diagnostic_info\030\n \001(\0132\027.goog"
-          + "le.protobuf.Struct\022^\n\031sentiment_analysis"
-          + "_result\030\021 \001(\0132;.google.cloud.dialogflow."
-          + "cx.v3beta1.SentimentAnalysisResultB\007\n\005qu"
-          + "ery\"\036\n\tTextInput\022\021\n\004text\030\001 \001(\tB\003\340A\002\"G\n\013I"
-          + "ntentInput\0228\n\006intent\030\001 \001(\tB(\340A\002\372A\"\n dial"
-          + "ogflow.googleapis.com/Intent\"f\n\nAudioInp"
-          + "ut\022I\n\006config\030\001 \001(\01324.google.cloud.dialog"
-          + "flow.cx.v3beta1.InputAudioConfigB\003\340A\002\022\r\n"
-          + "\005audio\030\002 \001(\014\"\033\n\nEventInput\022\r\n\005event\030\001 \001("
-          + "\t\"1\n\tDtmfInput\022\016\n\006digits\030\001 \001(\t\022\024\n\014finish"
-          + "_digit\030\002 \001(\t\"\373\002\n\005Match\022:\n\006intent\030\001 \001(\0132*"
-          + ".google.cloud.dialogflow.cx.v3beta1.Inte"
-          + "nt\022\r\n\005event\030\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027."
-          + "google.protobuf.Struct\022\026\n\016resolved_input"
-          + "\030\003 \001(\t\022G\n\nmatch_type\030\004 \001(\01623.google.clou"
-          + "d.dialogflow.cx.v3beta1.Match.MatchType\022"
-          + "\022\n\nconfidence\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MAT"
-          + "CH_TYPE_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIR"
-          + "ECT_INTENT\020\002\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010N"
-          + "O_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\345\001\n\022M"
-          + "atchIntentRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372"
-          + "A#\n!dialogflow.googleapis.com/Session\022I\n"
-          + "\014query_params\030\002 \001(\01323.google.cloud.dialo"
-          + "gflow.cx.v3beta1.QueryParameters\022H\n\013quer"
-          + "y_input\030\003 \001(\0132..google.cloud.dialogflow."
-          + "cx.v3beta1.QueryInputB\003\340A\002\"\232\002\n\023MatchInte"
-          + "ntResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigger_in"
-          + "tent\030\002 \001(\tB%\372A\"\n dialogflow.googleapis.c"
-          + "om/IntentH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022\027\n\rtri"
-          + "gger_event\030\006 \001(\tH\000\022:\n\007matches\030\004 \003(\0132).go"
-          + "ogle.cloud.dialogflow.cx.v3beta1.Match\022>"
-          + "\n\014current_page\030\005 \001(\0132(.google.cloud.dial"
-          + "ogflow.cx.v3beta1.PageB\007\n\005query\"\372\001\n\024Fulf"
-          + "illIntentRequest\022T\n\024match_intent_request"
-          + "\030\001 \001(\01326.google.cloud.dialogflow.cx.v3be"
-          + "ta1.MatchIntentRequest\0228\n\005match\030\002 \001(\0132)."
-          + "google.cloud.dialogflow.cx.v3beta1.Match"
-          + "\022R\n\023output_audio_config\030\003 \001(\01325.google.c"
-          + "loud.dialogflow.cx.v3beta1.OutputAudioCo"
-          + "nfig\"\335\001\n\025FulfillIntentResponse\022\023\n\013respon"
-          + "se_id\030\001 \001(\t\022E\n\014query_result\030\002 \001(\0132/.goog"
-          + "le.cloud.dialogflow.cx.v3beta1.QueryResu"
-          + "lt\022\024\n\014output_audio\030\003 \001(\014\022R\n\023output_audio"
-          + "_config\030\004 \001(\01325.google.cloud.dialogflow."
-          + "cx.v3beta1.OutputAudioConfig\";\n\027Sentimen"
-          + "tAnalysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnit"
-          + "ude\030\002 \001(\0022\212\n\n\010Sessions\022\272\002\n\014DetectIntent\022"
-          + "7.google.cloud.dialogflow.cx.v3beta1.Det"
-          + "ectIntentRequest\0328.google.cloud.dialogfl"
-          + "ow.cx.v3beta1.DetectIntentResponse\"\266\001\202\323\344"
-          + "\223\002\257\001\"J/v3beta1/{session=projects/*/locat"
-          + "ions/*/agents/*/sessions/*}:detectIntent"
-          + ":\001*Z^\"Y/v3beta1/{session=projects/*/loca"
-          + "tions/*/agents/*/environments/*/sessions"
-          + "/*}:detectIntent:\001*\022\242\001\n\025StreamingDetectI"
-          + "ntent\022@.google.cloud.dialogflow.cx.v3bet"
-          + "a1.StreamingDetectIntentRequest\032A.google"
-          + ".cloud.dialogflow.cx.v3beta1.StreamingDe"
-          + "tectIntentResponse\"\000(\0010\001\022\265\002\n\013MatchIntent"
-          + "\0226.google.cloud.dialogflow.cx.v3beta1.Ma"
-          + "tchIntentRequest\0327.google.cloud.dialogfl"
-          + "ow.cx.v3beta1.MatchIntentResponse\"\264\001\202\323\344\223"
-          + "\002\255\001\"I/v3beta1/{session=projects/*/locati"
-          + "ons/*/agents/*/sessions/*}:matchIntent:\001"
-          + "*Z]\"X/v3beta1/{session=projects/*/locati"
-          + "ons/*/agents/*/environments/*/sessions/*"
-          + "}:matchIntent:\001*\022\351\002\n\rFulfillIntent\0228.goo"
-          + "gle.cloud.dialogflow.cx.v3beta1.FulfillI"
-          + "ntentRequest\0329.google.cloud.dialogflow.c"
-          + "x.v3beta1.FulfillIntentResponse\"\342\001\202\323\344\223\002\333"
-          + "\001\"`/v3beta1/{match_intent_request.sessio"
-          + "n=projects/*/locations/*/agents/*/sessio"
-          + "ns/*}:fulfillIntent:\001*Zt\"o/v3beta1/{matc"
+          + ".PageB\007\n\005query\"\372\001\n\024FulfillIntentRequest\022"
+          + "T\n\024match_intent_request\030\001 \001(\01326.google.c"
+          + "loud.dialogflow.cx.v3beta1.MatchIntentRe"
+          + "quest\0228\n\005match\030\002 \001(\0132).google.cloud.dial"
+          + "ogflow.cx.v3beta1.Match\022R\n\023output_audio_"
+          + "config\030\003 \001(\01325.google.cloud.dialogflow.c"
+          + "x.v3beta1.OutputAudioConfig\"\335\001\n\025FulfillI"
+          + "ntentResponse\022\023\n\013response_id\030\001 \001(\t\022E\n\014qu"
+          + "ery_result\030\002 \001(\0132/.google.cloud.dialogfl"
+          + "ow.cx.v3beta1.QueryResult\022\024\n\014output_audi"
+          + "o\030\003 \001(\014\022R\n\023output_audio_config\030\004 \001(\01325.g"
+          + "oogle.cloud.dialogflow.cx.v3beta1.Output"
+          + "AudioConfig\";\n\027SentimentAnalysisResult\022\r"
+          + "\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\212\n\n\010Ses"
+          + "sions\022\272\002\n\014DetectIntent\0227.google.cloud.di"
+          + "alogflow.cx.v3beta1.DetectIntentRequest\032"
+          + "8.google.cloud.dialogflow.cx.v3beta1.Det"
+          + "ectIntentResponse\"\266\001\202\323\344\223\002\257\001\"J/v3beta1/{s"
+          + "ession=projects/*/locations/*/agents/*/s"
+          + "essions/*}:detectIntent:\001*Z^\"Y/v3beta1/{"
+          + "session=projects/*/locations/*/agents/*/"
+          + "environments/*/sessions/*}:detectIntent:"
+          + "\001*\022\242\001\n\025StreamingDetectIntent\022@.google.cl"
+          + "oud.dialogflow.cx.v3beta1.StreamingDetec"
+          + "tIntentRequest\032A.google.cloud.dialogflow"
+          + ".cx.v3beta1.StreamingDetectIntentRespons"
+          + "e\"\000(\0010\001\022\265\002\n\013MatchIntent\0226.google.cloud.d"
+          + "ialogflow.cx.v3beta1.MatchIntentRequest\032"
+          + "7.google.cloud.dialogflow.cx.v3beta1.Mat"
+          + "chIntentResponse\"\264\001\202\323\344\223\002\255\001\"I/v3beta1/{se"
+          + "ssion=projects/*/locations/*/agents/*/se"
+          + "ssions/*}:matchIntent:\001*Z]\"X/v3beta1/{se"
+          + "ssion=projects/*/locations/*/agents/*/en"
+          + "vironments/*/sessions/*}:matchIntent:\001*\022"
+          + "\351\002\n\rFulfillIntent\0228.google.cloud.dialogf"
+          + "low.cx.v3beta1.FulfillIntentRequest\0329.go"
+          + "ogle.cloud.dialogflow.cx.v3beta1.Fulfill"
+          + "IntentResponse\"\342\001\202\323\344\223\002\333\001\"`/v3beta1/{matc"
           + "h_intent_request.session=projects/*/loca"
-          + "tions/*/agents/*/environments/*/sessions"
-          + "/*}:fulfillIntent:\001*\032x\312A\031dialogflow.goog"
-          + "leapis.com\322AYhttps://www.googleapis.com/"
-          + "auth/cloud-platform,https://www.googleap"
-          + "is.com/auth/dialogflowB\254\003\n&com.google.cl"
-          + "oud.dialogflow.cx.v3beta1B\014SessionProtoP"
-          + "\001ZDgoogle.golang.org/genproto/googleapis"
-          + "/cloud/dialogflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252"
-          + "\002\"Google.Cloud.Dialogflow.Cx.V3Beta1\352\002&G"
-          + "oogle::Cloud::Dialogflow::CX::V3beta1\352A\324"
-          + "\001\n!dialogflow.googleapis.com/Session\022Ipr"
-          + "ojects/{project}/locations/{location}/ag"
-          + "ents/{agent}/sessions/{session}\022dproject"
-          + "s/{project}/locations/{location}/agents/"
-          + "{agent}/environments/{environment}/sessi"
-          + "ons/{session}b\006proto3"
+          + "tions/*/agents/*/sessions/*}:fulfillInte"
+          + "nt:\001*Zt\"o/v3beta1/{match_intent_request."
+          + "session=projects/*/locations/*/agents/*/"
+          + "environments/*/sessions/*}:fulfillIntent"
+          + ":\001*\032x\312A\031dialogflow.googleapis.com\322AYhttp"
+          + "s://www.googleapis.com/auth/cloud-platfo"
+          + "rm,https://www.googleapis.com/auth/dialo"
+          + "gflowB\254\003\n&com.google.cloud.dialogflow.cx"
+          + ".v3beta1B\014SessionProtoP\001ZDgoogle.golang."
+          + "org/genproto/googleapis/cloud/dialogflow"
+          + "/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud.Di"
+          + "alogflow.Cx.V3Beta1\352\002&Google::Cloud::Dia"
+          + "logflow::CX::V3beta1\352A\324\001\n!dialogflow.goo"
+          + "gleapis.com/Session\022Iprojects/{project}/"
+          + "locations/{location}/agents/{agent}/sess"
+          + "ions/{session}\022dprojects/{project}/locat"
+          + "ions/{location}/agents/{agent}/environme"
+          + "nts/{environment}/sessions/{session}b\006pr"
+          + "oto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -426,6 +428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "TriggerIntent",
               "Transcript",
               "TriggerEvent",
+              "Dtmf",
               "LanguageCode",
               "Parameters",
               "ResponseMessages",
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechWordInfo.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechWordInfo.java
index 16c8bca28..d33080f41 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechWordInfo.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechWordInfo.java
@@ -342,7 +342,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (endOffset_ != null) {
       output.writeMessage(2, getEndOffset());
     }
-    if (!getWordBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(word_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, word_);
     }
     if (confidence_ != 0F) {
@@ -363,7 +363,7 @@ public int getSerializedSize() {
     if (endOffset_ != null) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset());
     }
-    if (!getWordBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(word_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, word_);
     }
     if (confidence_ != 0F) {
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StartExperimentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StartExperimentRequest.java
index 0f926fe27..8b4db6668 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StartExperimentRequest.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StartExperimentRequest.java
@@ -182,7 +182,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     unknownFields.writeTo(output);
@@ -194,7 +194,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StopExperimentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StopExperimentRequest.java
index 8036a1c27..3362af478 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StopExperimentRequest.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StopExperimentRequest.java
@@ -182,7 +182,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     unknownFields.writeTo(output);
@@ -194,7 +194,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java
index 715452505..092ad8c7b 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java
@@ -26,7 +26,7 @@
  * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent] method.
  * Multiple request messages should be sent in order:
  * 1.  The first message must contain
- * [session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session],
+ *     [session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session],
  *     [query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input] plus optionally
  *     [query_params][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_params]. If the client
  *     wants to receive an audio response, it should also contain
@@ -451,7 +451,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getSessionBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_);
     }
     if (queryParams_ != null) {
@@ -475,7 +475,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getSessionBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_);
     }
     if (queryParams_ != null) {
@@ -657,7 +657,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent] method.
    * Multiple request messages should be sent in order:
    * 1.  The first message must contain
-   * [session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session],
+   *     [session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session],
    *     [query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input] plus optionally
    *     [query_params][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_params]. If the client
    *     wants to receive an audio response, it should also contain
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentResponse.java
index 478e3cc39..97de6f248 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentResponse.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentResponse.java
@@ -22,18 +22,24 @@
  *
  *
  * 
- * The top-level message returned from the `StreamingDetectIntent` method.
- * Multiple response messages can be returned in order:
- * 1.  If the input was set to streaming audio, the first one or more messages
- *     contain `recognition_result`. Each `recognition_result` represents a more
- *     complete transcript of what the user said. The last `recognition_result`
- *     has `is_final` set to `true`.
- * 2.  If `enable_partial_response` is true, the following N messages
- *     (currently 1 <= N <= 4) contain `detect_intent_response`. The first (N-1)
- *     `detect_intent_response`s will have `response_type` set to `PARTIAL`.
- *     The last `detect_intent_response` has `response_type` set to `FINAL`.
- *     If `response_type` is false, response stream only contains
- *     the final `detect_intent_response`.
+ * The top-level message returned from the
+ * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent] method.
+ * Multiple response messages (N) can be returned in order.
+ * The first (N-1) responses set either the `recognition_result` or
+ * `detect_intent_response` field, depending on the request:
+ * *   If the `StreamingDetectIntentRequest.query_input.audio` field was
+ *     set, and the `StreamingDetectIntentRequest.enable_partial_response`
+ *     field was false, the `recognition_result` field is populated for each
+ *     of the (N-1) responses.
+ *     See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult] message for details
+ *     about the result message sequence.
+ * *   If the `StreamingDetectIntentRequest.enable_partial_response` field was
+ *     true, the `detect_intent_response` field is populated for each
+ *     of the (N-1) responses, where 1 <= N <= 4.
+ *     These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.response_type] field
+ *     to `PARTIAL`.
+ * For the final Nth response message, the `detect_intent_response` is fully
+ * populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.response_type] is set to `FINAL`.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} @@ -508,18 +514,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The top-level message returned from the `StreamingDetectIntent` method.
-   * Multiple response messages can be returned in order:
-   * 1.  If the input was set to streaming audio, the first one or more messages
-   *     contain `recognition_result`. Each `recognition_result` represents a more
-   *     complete transcript of what the user said. The last `recognition_result`
-   *     has `is_final` set to `true`.
-   * 2.  If `enable_partial_response` is true, the following N messages
-   *     (currently 1 <= N <= 4) contain `detect_intent_response`. The first (N-1)
-   *     `detect_intent_response`s will have `response_type` set to `PARTIAL`.
-   *     The last `detect_intent_response` has `response_type` set to `FINAL`.
-   *     If `response_type` is false, response stream only contains
-   *     the final `detect_intent_response`.
+   * The top-level message returned from the
+   * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent] method.
+   * Multiple response messages (N) can be returned in order.
+   * The first (N-1) responses set either the `recognition_result` or
+   * `detect_intent_response` field, depending on the request:
+   * *   If the `StreamingDetectIntentRequest.query_input.audio` field was
+   *     set, and the `StreamingDetectIntentRequest.enable_partial_response`
+   *     field was false, the `recognition_result` field is populated for each
+   *     of the (N-1) responses.
+   *     See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult] message for details
+   *     about the result message sequence.
+   * *   If the `StreamingDetectIntentRequest.enable_partial_response` field was
+   *     true, the `detect_intent_response` field is populated for each
+   *     of the (N-1) responses, where 1 <= N <= 4.
+   *     These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.response_type] field
+   *     to `PARTIAL`.
+   * For the final Nth response message, the `detect_intent_response` is fully
+   * populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.response_type] is set to `FINAL`.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingRecognitionResult.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingRecognitionResult.java index b1fb9c647..3f94e9984 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingRecognitionResult.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingRecognitionResult.java @@ -25,23 +25,34 @@ * Contains a speech recognition result corresponding to a portion of the audio * that is currently being processed or an indication that this is the end * of the single requested utterance. - * Example: - * 1. transcript: "tube" - * 2. transcript: "to be a" - * 3. transcript: "to be" - * 4. transcript: "to be or not to be" - * is_final: true - * 5. transcript: " that's" - * 6. transcript: " that is" - * 7. message_type: `END_OF_SINGLE_UTTERANCE` - * 8. transcript: " that is the question" - * is_final: true - * Only two of the responses contain final results (#4 and #8 indicated by - * `is_final: true`). Concatenating these generates the full transcript: "to be - * or not to be that is the question". - * In each response we populate: - * * for `TRANSCRIPT`: `transcript` and possibly `is_final`. - * * for `END_OF_SINGLE_UTTERANCE`: only `message_type`. + * While end-user audio is being processed, Dialogflow sends a series of + * results. Each result may contain a `transcript` value. A transcript + * represents a portion of the utterance. While the recognizer is processing + * audio, transcript values may be interim values or finalized values. + * Once a transcript is finalized, the `is_final` value is set to true and + * processing continues for the next transcript. + * If `StreamingDetectIntentRequest.query_input.audio.config.single_utterance` + * was true, and the recognizer has completed processing audio, + * the `message_type` value is set to `END_OF_SINGLE_UTTERANCE and the + * following (last) result contains the last finalized transcript. + * The complete end-user utterance is determined by concatenating the + * finalized transcript values received for the series of results. + * In the following example, single utterance is enabled. In the case where + * single utterance is not enabled, result 7 would not occur. + * ``` + * Num | transcript | message_type | is_final + * --- | ----------------------- | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | unset | END_OF_SINGLE_UTTERANCE | unset + * 8 | " that is the question" | TRANSCRIPT | true + * ``` + * Concatenating the finalized transcripts with `is_final` set to true, + * the complete utterance becomes "to be or not to be that is the question". *
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} @@ -735,7 +746,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, messageType_); } - if (!getTranscriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, transcript_); } if (isFinal_ != false) { @@ -753,7 +764,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (speechEndOffset_ != null) { output.writeMessage(8, getSpeechEndOffset()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, languageCode_); } unknownFields.writeTo(output); @@ -771,7 +782,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, messageType_); } - if (!getTranscriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, transcript_); } if (isFinal_ != false) { @@ -789,7 +800,7 @@ public int getSerializedSize() { if (speechEndOffset_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSpeechEndOffset()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, languageCode_); } size += unknownFields.getSerializedSize(); @@ -961,23 +972,34 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Contains a speech recognition result corresponding to a portion of the audio * that is currently being processed or an indication that this is the end * of the single requested utterance. - * Example: - * 1. transcript: "tube" - * 2. transcript: "to be a" - * 3. transcript: "to be" - * 4. transcript: "to be or not to be" - * is_final: true - * 5. transcript: " that's" - * 6. transcript: " that is" - * 7. message_type: `END_OF_SINGLE_UTTERANCE` - * 8. transcript: " that is the question" - * is_final: true - * Only two of the responses contain final results (#4 and #8 indicated by - * `is_final: true`). Concatenating these generates the full transcript: "to be - * or not to be that is the question". - * In each response we populate: - * * for `TRANSCRIPT`: `transcript` and possibly `is_final`. - * * for `END_OF_SINGLE_UTTERANCE`: only `message_type`. + * While end-user audio is being processed, Dialogflow sends a series of + * results. Each result may contain a `transcript` value. A transcript + * represents a portion of the utterance. While the recognizer is processing + * audio, transcript values may be interim values or finalized values. + * Once a transcript is finalized, the `is_final` value is set to true and + * processing continues for the next transcript. + * If `StreamingDetectIntentRequest.query_input.audio.config.single_utterance` + * was true, and the recognizer has completed processing audio, + * the `message_type` value is set to `END_OF_SINGLE_UTTERANCE and the + * following (last) result contains the last finalized transcript. + * The complete end-user utterance is determined by concatenating the + * finalized transcript values received for the series of results. + * In the following example, single utterance is enabled. In the case where + * single utterance is not enabled, result 7 would not occur. + * ``` + * Num | transcript | message_type | is_final + * --- | ----------------------- | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | unset | END_OF_SINGLE_UTTERANCE | unset + * 8 | " that is the question" | TRANSCRIPT | true + * ``` + * Concatenating the finalized transcripts with `is_final` set to true, + * the complete utterance becomes "to be or not to be that is the question". *
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCase.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCase.java index 24d6e05fb..9ca726c33 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCase.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCase.java @@ -692,16 +692,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tags_.getRaw(i)); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } - if (!getNotesBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, notes_); } for (int i = 0; i < testCaseConversationTurns_.size(); i++) { @@ -725,7 +725,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } { @@ -736,10 +736,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTagsList().size(); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } - if (!getNotesBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, notes_); } for (int i = 0; i < testCaseConversationTurns_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResult.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResult.java index ceddde35f..7bef8c655 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResult.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResult.java @@ -443,10 +443,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environment_); } for (int i = 0; i < conversationTurns_.size(); i++) { @@ -468,10 +468,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getEnvironmentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environment_); } for (int i = 0; i < conversationTurns_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java index c2439ae4e..31a366f8c 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java @@ -257,7 +257,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < trackingParameters_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trackingParameters_.getRaw(i)); } - if (!getFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flow_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flow_); } unknownFields.writeTo(output); @@ -277,7 +277,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTrackingParametersList().size(); } - if (!getFlowBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flow_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flow_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestError.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestError.java index 06f2209ce..77d7c9ca8 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestError.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestError.java @@ -295,7 +295,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTestCaseBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(testCase_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, testCase_); } if (status_ != null) { @@ -313,7 +313,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTestCaseBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(testCase_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, testCase_); } if (status_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestRunDifference.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestRunDifference.java index e8e74d57b..6fe527a24 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestRunDifference.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestRunDifference.java @@ -428,7 +428,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, type_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } unknownFields.writeTo(output); @@ -445,7 +445,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TextInput.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TextInput.java index b009a8614..50c337f43 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TextInput.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TextInput.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTextBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTextBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TrainFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TrainFlowRequest.java index e66662a01..0c6a6b7ff 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TrainFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TrainFlowRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRoute.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRoute.java index f01c543c7..cbd4607ea 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRoute.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRoute.java @@ -608,10 +608,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intent_); } - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, condition_); } if (triggerFulfillment_ != null) { @@ -623,7 +623,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (targetCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, target_); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } unknownFields.writeTo(output); @@ -635,10 +635,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, intent_); } - if (!getConditionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, condition_); } if (triggerFulfillment_ != null) { @@ -650,7 +650,7 @@ public int getSerializedSize() { if (targetCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroup.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroup.java index 7da4ff878..f6613e46b 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroup.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroup.java @@ -337,10 +337,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } for (int i = 0; i < transitionRoutes_.size(); i++) { @@ -355,10 +355,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < transitionRoutes_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEntityTypeRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEntityTypeRequest.java index ae2d6105a..ce1739e98 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEntityTypeRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEntityTypeRequest.java @@ -325,7 +325,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (entityType_ != null) { output.writeMessage(1, getEntityType()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (updateMask_ != null) { @@ -343,7 +343,7 @@ public int getSerializedSize() { if (entityType_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntityType()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (updateMask_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateFlowRequest.java index 96a56059d..31d1de8b3 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateFlowRequest.java @@ -330,7 +330,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -348,7 +348,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateIntentRequest.java index 882c54da6..00c8de493 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateIntentRequest.java @@ -323,7 +323,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (intent_ != null) { output.writeMessage(1, getIntent()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (updateMask_ != null) { @@ -341,7 +341,7 @@ public int getSerializedSize() { if (intent_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIntent()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (updateMask_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdatePageRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdatePageRequest.java index 67119bf26..691786d2a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdatePageRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdatePageRequest.java @@ -343,7 +343,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (page_ != null) { output.writeMessage(1, getPage()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } if (updateMask_ != null) { @@ -361,7 +361,7 @@ public int getSerializedSize() { if (page_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPage()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } if (updateMask_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTransitionRouteGroupRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTransitionRouteGroupRequest.java index 36bad2851..52ab688af 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTransitionRouteGroupRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTransitionRouteGroupRequest.java @@ -330,7 +330,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } unknownFields.writeTo(output); @@ -349,7 +349,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateAgentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateAgentRequest.java index d00ac2e96..251a80584 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateAgentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateAgentRequest.java @@ -237,10 +237,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -252,10 +252,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateFlowRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateFlowRequest.java index 79362d65f..cd2bdccdc 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateFlowRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateFlowRequest.java @@ -239,10 +239,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } unknownFields.writeTo(output); @@ -254,10 +254,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidationMessage.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidationMessage.java index 1251d3987..135de9d0d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidationMessage.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidationMessage.java @@ -1033,7 +1033,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, severity_); } - if (!getDetailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, detail_); } for (int i = 0; i < resourceNames_.size(); i++) { @@ -1067,7 +1067,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, severity_); } - if (!getDetailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detail_); } for (int i = 0; i < resourceNames_.size(); i++) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Version.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Version.java index f36e7f86d..229728533 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Version.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Version.java @@ -660,13 +660,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (nluSettings_ != null) { @@ -688,13 +688,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (nluSettings_ != null) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionProto.java index 3a0f9f4c5..b616bc13b 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionProto.java @@ -63,6 +63,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_LoadVersionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_LoadVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -122,49 +130,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogleapis.com/Version\"u\n\022LoadVersionRequ" + "est\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.go" + "ogleapis.com/Version\022&\n\036allow_override_a" - + "gent_resources\030\002 \001(\0102\271\013\n\010Versions\022\326\001\n\014Li" - + "stVersions\0227.google.cloud.dialogflow.cx." - + "v3beta1.ListVersionsRequest\0328.google.clo" - + "ud.dialogflow.cx.v3beta1.ListVersionsRes" - + "ponse\"S\202\323\344\223\002D\022B/v3beta1/{parent=projects" - + "/*/locations/*/agents/*/flows/*}/version" - + "s\332A\006parent\022\303\001\n\nGetVersion\0225.google.cloud" - + ".dialogflow.cx.v3beta1.GetVersionRequest" - + "\032+.google.cloud.dialogflow.cx.v3beta1.Ve" - + "rsion\"Q\202\323\344\223\002D\022B/v3beta1/{name=projects/*" - + "/locations/*/agents/*/flows/*/versions/*" - + "}\332A\004name\022\373\001\n\rCreateVersion\0228.google.clou" - + "d.dialogflow.cx.v3beta1.CreateVersionReq" - + "uest\032\035.google.longrunning.Operation\"\220\001\202\323" - + "\344\223\002M\"B/v3beta1/{parent=projects/*/locati" - + "ons/*/agents/*/flows/*}/versions:\007versio" - + "n\332A\016parent,version\312A)\n\007Version\022\036CreateVe" - + "rsionOperationMetadata\022\351\001\n\rUpdateVersion" - + "\0228.google.cloud.dialogflow.cx.v3beta1.Up" - + "dateVersionRequest\032+.google.cloud.dialog" - + "flow.cx.v3beta1.Version\"q\202\323\344\223\002U2J/v3beta" - + "1/{version.name=projects/*/locations/*/a" - + "gents/*/flows/*/versions/*}:\007version\332A\023v" - + "ersion,update_mask\022\264\001\n\rDeleteVersion\0228.g" - + "oogle.cloud.dialogflow.cx.v3beta1.Delete" - + "VersionRequest\032\026.google.protobuf.Empty\"Q" - + "\202\323\344\223\002D*B/v3beta1/{name=projects/*/locati" - + "ons/*/agents/*/flows/*/versions/*}\332A\004nam" - + "e\022\362\001\n\013LoadVersion\0226.google.cloud.dialogf" - + "low.cx.v3beta1.LoadVersionRequest\032\035.goog" - + "le.longrunning.Operation\"\213\001\202\323\344\223\002L\"G/v3be" - + "ta1/{name=projects/*/locations/*/agents/" - + "*/flows/*/versions/*}:load:\001*\332A\004name\312A/\n" - + "\025google.protobuf.Empty\022\026google.protobuf." - + "Struct\032x\312A\031dialogflow.googleapis.com\322AYh" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform,https://www.googleapis.com/auth/di" - + "alogflowB\324\001\n&com.google.cloud.dialogflow" - + ".cx.v3beta1B\014VersionProtoP\001ZDgoogle.gola" - + "ng.org/genproto/googleapis/cloud/dialogf" - + "low/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud" - + ".Dialogflow.Cx.V3Beta1\352\002&Google::Cloud::" - + "Dialogflow::CX::V3beta1b\006proto3" + + "gent_resources\030\002 \001(\010\"\263\001\n\026CompareVersions" + + "Request\022?\n\014base_version\030\001 \001(\tB)\340A\002\372A#\n!d" + + "ialogflow.googleapis.com/Version\022A\n\016targ" + + "et_version\030\002 \001(\tB)\340A\002\372A#\n!dialogflow.goo" + + "gleapis.com/Version\022\025\n\rlanguage_code\030\003 \001" + + "(\t\"\223\001\n\027CompareVersionsResponse\022!\n\031base_v" + + "ersion_content_json\030\001 \001(\t\022#\n\033target_vers" + + "ion_content_json\030\002 \001(\t\0220\n\014compare_time\030\003" + + " \001(\0132\032.google.protobuf.Timestamp2\274\r\n\010Ver" + + "sions\022\326\001\n\014ListVersions\0227.google.cloud.di" + + "alogflow.cx.v3beta1.ListVersionsRequest\032" + + "8.google.cloud.dialogflow.cx.v3beta1.Lis" + + "tVersionsResponse\"S\202\323\344\223\002D\022B/v3beta1/{par" + + "ent=projects/*/locations/*/agents/*/flow" + + "s/*}/versions\332A\006parent\022\303\001\n\nGetVersion\0225." + + "google.cloud.dialogflow.cx.v3beta1.GetVe" + + "rsionRequest\032+.google.cloud.dialogflow.c" + + "x.v3beta1.Version\"Q\202\323\344\223\002D\022B/v3beta1/{nam" + + "e=projects/*/locations/*/agents/*/flows/" + + "*/versions/*}\332A\004name\022\373\001\n\rCreateVersion\0228" + + ".google.cloud.dialogflow.cx.v3beta1.Crea" + + "teVersionRequest\032\035.google.longrunning.Op" + + "eration\"\220\001\202\323\344\223\002M\"B/v3beta1/{parent=proje" + + "cts/*/locations/*/agents/*/flows/*}/vers" + + "ions:\007version\332A\016parent,version\312A)\n\007Versi" + + "on\022\036CreateVersionOperationMetadata\022\351\001\n\rU" + + "pdateVersion\0228.google.cloud.dialogflow.c" + + "x.v3beta1.UpdateVersionRequest\032+.google." + + "cloud.dialogflow.cx.v3beta1.Version\"q\202\323\344" + + "\223\002U2J/v3beta1/{version.name=projects/*/l" + + "ocations/*/agents/*/flows/*/versions/*}:" + + "\007version\332A\023version,update_mask\022\264\001\n\rDelet" + + "eVersion\0228.google.cloud.dialogflow.cx.v3" + + "beta1.DeleteVersionRequest\032\026.google.prot" + + "obuf.Empty\"Q\202\323\344\223\002D*B/v3beta1/{name=proje" + + "cts/*/locations/*/agents/*/flows/*/versi" + + "ons/*}\332A\004name\022\362\001\n\013LoadVersion\0226.google.c" + + "loud.dialogflow.cx.v3beta1.LoadVersionRe" + + "quest\032\035.google.longrunning.Operation\"\213\001\202" + + "\323\344\223\002L\"G/v3beta1/{name=projects/*/locatio" + + "ns/*/agents/*/flows/*/versions/*}:load:\001" + + "*\332A\004name\312A/\n\025google.protobuf.Empty\022\026goog" + + "le.protobuf.Struct\022\200\002\n\017CompareVersions\022:" + + ".google.cloud.dialogflow.cx.v3beta1.Comp" + + "areVersionsRequest\032;.google.cloud.dialog" + + "flow.cx.v3beta1.CompareVersionsResponse\"" + + "t\202\323\344\223\002_\"Z/v3beta1/{base_version=projects" + + "/*/locations/*/agents/*/flows/*/versions" + + "/*}:compareVersions:\001*\332A\014base_version\032x\312" + + "A\031dialogflow.googleapis.com\322AYhttps://ww" + + "w.googleapis.com/auth/cloud-platform,htt" + + "ps://www.googleapis.com/auth/dialogflowB" + + "\324\001\n&com.google.cloud.dialogflow.cx.v3bet" + + "a1B\014VersionProtoP\001ZDgoogle.golang.org/ge" + + "nproto/googleapis/cloud/dialogflow/cx/v3" + + "beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogfl" + + "ow.Cx.V3Beta1\352\002&Google::Cloud::Dialogflo" + + "w::CX::V3beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -257,6 +280,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "AllowOverrideAgentResources", }); + internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsRequest_descriptor, + new java.lang.String[] { + "BaseVersion", "TargetVersion", "LanguageCode", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_CompareVersionsResponse_descriptor, + new java.lang.String[] { + "BaseVersionContentJson", "TargetVersionContentJson", "CompareTime", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionVariants.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionVariants.java index 2cf87f7bd..29f315ac9 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionVariants.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionVariants.java @@ -390,7 +390,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } if (trafficAllocation_ != 0F) { @@ -408,7 +408,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } if (trafficAllocation_ != 0F) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VoiceSelectionParams.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VoiceSelectionParams.java index 58d0eae52..6cb8d0396 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VoiceSelectionParams.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VoiceSelectionParams.java @@ -236,7 +236,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (ssmlGender_ @@ -253,7 +253,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (ssmlGender_ diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java index badb7c01d..0db5fc9db 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java @@ -330,6 +330,74 @@ java.lang.String getRequestHeadersOrDefault( * map<string, string> request_headers = 4; */ java.lang.String getRequestHeadersOrThrow(java.lang.String key); + + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedCaCerts. + */ + java.util.List getAllowedCaCertsList(); + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedCaCerts. + */ + int getAllowedCaCertsCount(); + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedCaCerts at the given index. + */ + com.google.protobuf.ByteString getAllowedCaCerts(int index); } /** * @@ -354,6 +422,7 @@ private GenericWebService() { uri_ = ""; username_ = ""; password_ = ""; + allowedCaCerts_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -424,6 +493,15 @@ private GenericWebService( .put(requestHeaders__.getKey(), requestHeaders__.getValue()); break; } + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + allowedCaCerts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + allowedCaCerts_.add(input.readBytes()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -438,6 +516,9 @@ private GenericWebService( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + allowedCaCerts_ = java.util.Collections.unmodifiableList(allowedCaCerts_); // C + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -725,6 +806,83 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) { return map.get(key); } + public static final int ALLOWED_CA_CERTS_FIELD_NUMBER = 5; + private java.util.List allowedCaCerts_; + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedCaCerts. + */ + @java.lang.Override + public java.util.List getAllowedCaCertsList() { + return allowedCaCerts_; + } + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedCaCerts. + */ + public int getAllowedCaCertsCount() { + return allowedCaCerts_.size(); + } + /** + * + * + *
+     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+     * HTTPS verification. This overrides the default SSL trust store. If this
+     * is empty or unspecified, Dialogflow 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'")
+     * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedCaCerts at the given index. + */ + public com.google.protobuf.ByteString getAllowedCaCerts(int index) { + return allowedCaCerts_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -739,17 +897,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } - if (!getUsernameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } - if (!getPasswordBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, password_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetRequestHeaders(), RequestHeadersDefaultEntryHolder.defaultEntry, 4); + for (int i = 0; i < allowedCaCerts_.size(); i++) { + output.writeBytes(5, allowedCaCerts_.get(i)); + } unknownFields.writeTo(output); } @@ -759,13 +920,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } - if (!getUsernameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } - if (!getPasswordBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, password_); } for (java.util.Map.Entry entry : @@ -778,6 +939,15 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, requestHeaders__); } + { + int dataSize = 0; + for (int i = 0; i < allowedCaCerts_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(allowedCaCerts_.get(i)); + } + size += dataSize; + size += 1 * getAllowedCaCertsList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -798,6 +968,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; if (!internalGetRequestHeaders().equals(other.internalGetRequestHeaders())) return false; + if (!getAllowedCaCertsList().equals(other.getAllowedCaCertsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -819,6 +990,10 @@ public int hashCode() { hash = (37 * hash) + REQUEST_HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetRequestHeaders().hashCode(); } + if (getAllowedCaCertsCount() > 0) { + hash = (37 * hash) + ALLOWED_CA_CERTS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedCaCertsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -996,6 +1171,8 @@ public Builder clear() { password_ = ""; internalGetMutableRequestHeaders().clear(); + allowedCaCerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1031,6 +1208,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService buildPar result.password_ = password_; result.requestHeaders_ = internalGetRequestHeaders(); result.requestHeaders_.makeImmutable(); + if (((bitField0_ & 0x00000002) != 0)) { + allowedCaCerts_ = java.util.Collections.unmodifiableList(allowedCaCerts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.allowedCaCerts_ = allowedCaCerts_; onBuilt(); return result; } @@ -1099,6 +1281,16 @@ public Builder mergeFrom( onChanged(); } internalGetMutableRequestHeaders().mergeFrom(other.internalGetRequestHeaders()); + if (!other.allowedCaCerts_.isEmpty()) { + if (allowedCaCerts_.isEmpty()) { + allowedCaCerts_ = other.allowedCaCerts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAllowedCaCertsIsMutable(); + allowedCaCerts_.addAll(other.allowedCaCerts_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1631,6 +1823,211 @@ public Builder putAllRequestHeaders( return this; } + private java.util.List allowedCaCerts_ = + java.util.Collections.emptyList(); + + private void ensureAllowedCaCertsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + allowedCaCerts_ = + new java.util.ArrayList(allowedCaCerts_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedCaCerts. + */ + public java.util.List getAllowedCaCertsList() { + return ((bitField0_ & 0x00000002) != 0) + ? java.util.Collections.unmodifiableList(allowedCaCerts_) + : allowedCaCerts_; + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedCaCerts. + */ + public int getAllowedCaCertsCount() { + return allowedCaCerts_.size(); + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedCaCerts at the given index. + */ + public com.google.protobuf.ByteString getAllowedCaCerts(int index) { + return allowedCaCerts_.get(index); + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The allowedCaCerts to set. + * @return This builder for chaining. + */ + public Builder setAllowedCaCerts(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedCaCertsIsMutable(); + allowedCaCerts_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowedCaCerts to add. + * @return This builder for chaining. + */ + public Builder addAllowedCaCerts(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedCaCertsIsMutable(); + allowedCaCerts_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The allowedCaCerts to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedCaCerts( + java.lang.Iterable values) { + ensureAllowedCaCertsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedCaCerts_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
+       * HTTPS verification. This overrides the default SSL trust store. If this
+       * is empty or unspecified, Dialogflow 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'")
+       * 
+ * + * repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowedCaCerts() { + allowedCaCerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2010,7 +2407,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (genericWebService_ != null) { @@ -2025,7 +2422,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (genericWebService_ != null) { @@ -3122,10 +3519,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (webhookCase_ == 4) { @@ -3151,10 +3548,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (webhookCase_ == 4) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java index 33d93f266..a998137f9 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java @@ -137,7 +137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "sponse_message.proto\032\036google/protobuf/du" + "ration.proto\032\033google/protobuf/empty.prot" + "o\032 google/protobuf/field_mask.proto\032\034goo" - + "gle/protobuf/struct.proto\"\335\006\n\007Webhook\022\014\n" + + "gle/protobuf/struct.proto\"\374\006\n\007Webhook\022\014\n" + "\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\\" + "\n\023generic_web_service\030\004 \001(\0132=.google.clo" + "ud.dialogflow.cx.v3beta1.Webhook.Generic" @@ -145,146 +145,147 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B.google.cloud.dialogflow.cx.v3beta1.Web" + "hook.ServiceDirectoryConfigH\000\022*\n\007timeout" + "\030\006 \001(\0132\031.google.protobuf.Duration\022\020\n\010dis" - + "abled\030\005 \001(\010\032\364\001\n\021GenericWebService\022\020\n\003uri" + + "abled\030\005 \001(\010\032\223\002\n\021GenericWebService\022\020\n\003uri" + "\030\001 \001(\tB\003\340A\002\022\024\n\010username\030\002 \001(\tB\002\030\001\022\024\n\010pas" + "sword\030\003 \001(\tB\002\030\001\022j\n\017request_headers\030\004 \003(\013" + "2Q.google.cloud.dialogflow.cx.v3beta1.We" + "bhook.GenericWebService.RequestHeadersEn" - + "try\0325\n\023RequestHeadersEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\032\266\001\n\026ServiceDirectoryC" - + "onfig\022@\n\007service\030\001 \001(\tB/\340A\002\372A)\n\'serviced" - + "irectory.googleapis.com/Service\022Z\n\023gener" - + "ic_web_service\030\002 \001(\0132=.google.cloud.dial" - + "ogflow.cx.v3beta1.Webhook.GenericWebServ" - + "ice:q\352An\n!dialogflow.googleapis.com/Webh" - + "ook\022Iprojects/{project}/locations/{locat" - + "ion}/agents/{agent}/webhooks/{webhook}B\t" - + "\n\007webhook\"w\n\023ListWebhooksRequest\0229\n\006pare" - + "nt\030\001 \001(\tB)\340A\002\372A#\022!dialogflow.googleapis." - + "com/Webhook\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"n\n\024ListWebhooksResponse\022=\n\010we" - + "bhooks\030\001 \003(\0132+.google.cloud.dialogflow.c" - + "x.v3beta1.Webhook\022\027\n\017next_page_token\030\002 \001" - + "(\t\"L\n\021GetWebhookRequest\0227\n\004name\030\001 \001(\tB)\340" - + "A\002\372A#\n!dialogflow.googleapis.com/Webhook" - + "\"\224\001\n\024CreateWebhookRequest\0229\n\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\022!dialogflow.googleapis.com/Web" - + "hook\022A\n\007webhook\030\002 \001(\0132+.google.cloud.dia" - + "logflow.cx.v3beta1.WebhookB\003\340A\002\"\212\001\n\024Upda" - + "teWebhookRequest\022A\n\007webhook\030\001 \001(\0132+.goog" - + "le.cloud.dialogflow.cx.v3beta1.WebhookB\003" - + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMask\"^\n\024DeleteWebhookRequest\0227\n\004" - + "name\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapi" - + "s.com/Webhook\022\r\n\005force\030\002 \001(\010\"\222\n\n\016Webhook" - + "Request\022!\n\031detect_intent_response_id\030\001 \001" - + "(\t\022\016\n\004text\030\n \001(\tH\000\022?\n\016trigger_intent\030\013 \001" - + "(\tB%\372A\"\n dialogflow.googleapis.com/Inten" - + "tH\000\022\024\n\ntranscript\030\014 \001(\tH\000\022\027\n\rtrigger_eve" - + "nt\030\016 \001(\tH\000\022\025\n\rlanguage_code\030\017 \001(\t\022\\\n\020ful" - + "fillment_info\030\006 \001(\0132B.google.cloud.dialo" - + "gflow.cx.v3beta1.WebhookRequest.Fulfillm" - + "entInfo\022R\n\013intent_info\030\003 \001(\0132=.google.cl" - + "oud.dialogflow.cx.v3beta1.WebhookRequest" - + ".IntentInfo\022?\n\tpage_info\030\004 \001(\0132,.google." - + "cloud.dialogflow.cx.v3beta1.PageInfo\022E\n\014" - + "session_info\030\005 \001(\0132/.google.cloud.dialog" - + "flow.cx.v3beta1.SessionInfo\022E\n\010messages\030" - + "\007 \003(\01323.google.cloud.dialogflow.cx.v3bet" - + "a1.ResponseMessage\022(\n\007payload\030\010 \001(\0132\027.go" - + "ogle.protobuf.Struct\022m\n\031sentiment_analys" - + "is_result\030\t \001(\0132J.google.cloud.dialogflo" - + "w.cx.v3beta1.WebhookRequest.SentimentAna" - + "lysisResult\032\036\n\017FulfillmentInfo\022\013\n\003tag\030\001 " - + "\001(\t\032\305\003\n\nIntentInfo\022B\n\023last_matched_inten" - + "t\030\001 \001(\tB%\372A\"\n dialogflow.googleapis.com/" - + "Intent\022\024\n\014display_name\030\003 \001(\t\022a\n\nparamete" - + "rs\030\002 \003(\0132M.google.cloud.dialogflow.cx.v3" - + "beta1.WebhookRequest.IntentInfo.Paramete" - + "rsEntry\022\022\n\nconfidence\030\004 \001(\002\032^\n\024IntentPar" - + "ameterValue\022\026\n\016original_value\030\001 \001(\t\022.\n\016r" - + "esolved_value\030\002 \001(\0132\026.google.protobuf.Va" - + "lue\032\205\001\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022a\n\005" - + "value\030\002 \001(\0132R.google.cloud.dialogflow.cx" - + ".v3beta1.WebhookRequest.IntentInfo.Inten" - + "tParameterValue:\0028\001\032;\n\027SentimentAnalysis" - + "Result\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\002" - + "B\007\n\005query\"\310\005\n\017WebhookResponse\022e\n\024fulfill" - + "ment_response\030\001 \001(\0132G.google.cloud.dialo" - + "gflow.cx.v3beta1.WebhookResponse.Fulfill" - + "mentResponse\022?\n\tpage_info\030\002 \001(\0132,.google" - + ".cloud.dialogflow.cx.v3beta1.PageInfo\022E\n" - + "\014session_info\030\003 \001(\0132/.google.cloud.dialo" - + "gflow.cx.v3beta1.SessionInfo\022(\n\007payload\030" - + "\004 \001(\0132\027.google.protobuf.Struct\022:\n\013target" - + "_page\030\005 \001(\tB#\372A \n\036dialogflow.googleapis." - + "com/PageH\000\022:\n\013target_flow\030\006 \001(\tB#\372A \n\036di" - + "alogflow.googleapis.com/FlowH\000\032\225\002\n\023Fulfi" - + "llmentResponse\022E\n\010messages\030\001 \003(\01323.googl" - + "e.cloud.dialogflow.cx.v3beta1.ResponseMe" - + "ssage\022m\n\016merge_behavior\030\002 \001(\0162U.google.c" - + "loud.dialogflow.cx.v3beta1.WebhookRespon" - + "se.FulfillmentResponse.MergeBehavior\"H\n\r" - + "MergeBehavior\022\036\n\032MERGE_BEHAVIOR_UNSPECIF" - + "IED\020\000\022\n\n\006APPEND\020\001\022\013\n\007REPLACE\020\002B\014\n\ntransi" - + "tion\"\254\004\n\010PageInfo\0229\n\014current_page\030\001 \001(\tB" - + "#\372A \n\036dialogflow.googleapis.com/Page\022H\n\t" - + "form_info\030\003 \001(\01325.google.cloud.dialogflo" - + "w.cx.v3beta1.PageInfo.FormInfo\032\232\003\n\010FormI" - + "nfo\022[\n\016parameter_info\030\002 \003(\0132C.google.clo" - + "ud.dialogflow.cx.v3beta1.PageInfo.FormIn" - + "fo.ParameterInfo\032\260\002\n\rParameterInfo\022\024\n\014di" - + "splay_name\030\001 \001(\t\022\020\n\010required\030\002 \001(\010\022a\n\005st" - + "ate\030\003 \001(\0162R.google.cloud.dialogflow.cx.v" - + "3beta1.PageInfo.FormInfo.ParameterInfo.P" - + "arameterState\022%\n\005value\030\004 \001(\0132\026.google.pr" - + "otobuf.Value\022\026\n\016just_collected\030\005 \001(\010\"U\n\016" - + "ParameterState\022\037\n\033PARAMETER_STATE_UNSPEC" - + "IFIED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INVALID\020\002\022\n\n\006FILLE" - + "D\020\003\"\346\001\n\013SessionInfo\0227\n\007session\030\001 \001(\tB&\372A" - + "#\n!dialogflow.googleapis.com/Session\022S\n\n" - + "parameters\030\002 \003(\0132?.google.cloud.dialogfl" - + "ow.cx.v3beta1.SessionInfo.ParametersEntr" - + "y\032I\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022%\n\005val" - + "ue\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\375\010\n" - + "\010Webhooks\022\316\001\n\014ListWebhooks\0227.google.clou" - + "d.dialogflow.cx.v3beta1.ListWebhooksRequ" - + "est\0328.google.cloud.dialogflow.cx.v3beta1" - + ".ListWebhooksResponse\"K\202\323\344\223\002<\022:/v3beta1/" - + "{parent=projects/*/locations/*/agents/*}" - + "/webhooks\332A\006parent\022\273\001\n\nGetWebhook\0225.goog" - + "le.cloud.dialogflow.cx.v3beta1.GetWebhoo" - + "kRequest\032+.google.cloud.dialogflow.cx.v3" - + "beta1.Webhook\"I\202\323\344\223\002<\022:/v3beta1/{name=pr" - + "ojects/*/locations/*/agents/*/webhooks/*" - + "}\332A\004name\022\324\001\n\rCreateWebhook\0228.google.clou" - + "d.dialogflow.cx.v3beta1.CreateWebhookReq" - + "uest\032+.google.cloud.dialogflow.cx.v3beta" - + "1.Webhook\"\\\202\323\344\223\002E\":/v3beta1/{parent=proj" - + "ects/*/locations/*/agents/*}/webhooks:\007w" - + "ebhook\332A\016parent,webhook\022\341\001\n\rUpdateWebhoo" - + "k\0228.google.cloud.dialogflow.cx.v3beta1.U" - + "pdateWebhookRequest\032+.google.cloud.dialo" - + "gflow.cx.v3beta1.Webhook\"i\202\323\344\223\002M2B/v3bet" - + "a1/{webhook.name=projects/*/locations/*/" - + "agents/*/webhooks/*}:\007webhook\332A\023webhook," - + "update_mask\022\254\001\n\rDeleteWebhook\0228.google.c" - + "loud.dialogflow.cx.v3beta1.DeleteWebhook" - + "Request\032\026.google.protobuf.Empty\"I\202\323\344\223\002<*" - + ":/v3beta1/{name=projects/*/locations/*/a" - + "gents/*/webhooks/*}\332A\004name\032x\312A\031dialogflo" - + "w.googleapis.com\322AYhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/dialogflowB\323\002\n&com.goo" - + "gle.cloud.dialogflow.cx.v3beta1B\014Webhook" - + "ProtoP\001ZDgoogle.golang.org/genproto/goog" - + "leapis/cloud/dialogflow/cx/v3beta1;cx\370\001\001" - + "\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Bet" - + "a1\352\002&Google::Cloud::Dialogflow::CX::V3be" - + "ta1\352A|\n\'servicedirectory.googleapis.com/" - + "Service\022Qprojects/{project}/locations/{l" - + "ocation}/namespaces/{namespace}/services" - + "/{service}b\006proto3" + + "try\022\035\n\020allowed_ca_certs\030\005 \003(\014B\003\340A\001\0325\n\023Re" + + "questHeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\032\266\001\n\026ServiceDirectoryConfig\022@\n\007" + + "service\030\001 \001(\tB/\340A\002\372A)\n\'servicedirectory." + + "googleapis.com/Service\022Z\n\023generic_web_se" + + "rvice\030\002 \001(\0132=.google.cloud.dialogflow.cx" + + ".v3beta1.Webhook.GenericWebService:q\352An\n" + + "!dialogflow.googleapis.com/Webhook\022Iproj" + + "ects/{project}/locations/{location}/agen" + + "ts/{agent}/webhooks/{webhook}B\t\n\007webhook" + + "\"w\n\023ListWebhooksRequest\0229\n\006parent\030\001 \001(\tB" + + ")\340A\002\372A#\022!dialogflow.googleapis.com/Webho" + + "ok\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"n\n\024ListWebhooksResponse\022=\n\010webhooks\030\001 " + + "\003(\0132+.google.cloud.dialogflow.cx.v3beta1" + + ".Webhook\022\027\n\017next_page_token\030\002 \001(\t\"L\n\021Get" + + "WebhookRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!di" + + "alogflow.googleapis.com/Webhook\"\224\001\n\024Crea" + + "teWebhookRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\022!dialogflow.googleapis.com/Webhook\022A\n\007w" + + "ebhook\030\002 \001(\0132+.google.cloud.dialogflow.c" + + "x.v3beta1.WebhookB\003\340A\002\"\212\001\n\024UpdateWebhook" + + "Request\022A\n\007webhook\030\001 \001(\0132+.google.cloud." + + "dialogflow.cx.v3beta1.WebhookB\003\340A\002\022/\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"^\n\024DeleteWebhookRequest\0227\n\004name\030\001 \001(" + + "\tB)\340A\002\372A#\n!dialogflow.googleapis.com/Web" + + "hook\022\r\n\005force\030\002 \001(\010\"\222\n\n\016WebhookRequest\022!" + + "\n\031detect_intent_response_id\030\001 \001(\t\022\016\n\004tex" + + "t\030\n \001(\tH\000\022?\n\016trigger_intent\030\013 \001(\tB%\372A\"\n " + + "dialogflow.googleapis.com/IntentH\000\022\024\n\ntr" + + "anscript\030\014 \001(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH" + + "\000\022\025\n\rlanguage_code\030\017 \001(\t\022\\\n\020fulfillment_" + + "info\030\006 \001(\0132B.google.cloud.dialogflow.cx." + + "v3beta1.WebhookRequest.FulfillmentInfo\022R" + + "\n\013intent_info\030\003 \001(\0132=.google.cloud.dialo" + + "gflow.cx.v3beta1.WebhookRequest.IntentIn" + + "fo\022?\n\tpage_info\030\004 \001(\0132,.google.cloud.dia" + + "logflow.cx.v3beta1.PageInfo\022E\n\014session_i" + + "nfo\030\005 \001(\0132/.google.cloud.dialogflow.cx.v" + + "3beta1.SessionInfo\022E\n\010messages\030\007 \003(\01323.g" + + "oogle.cloud.dialogflow.cx.v3beta1.Respon" + + "seMessage\022(\n\007payload\030\010 \001(\0132\027.google.prot" + + "obuf.Struct\022m\n\031sentiment_analysis_result" + + "\030\t \001(\0132J.google.cloud.dialogflow.cx.v3be" + + "ta1.WebhookRequest.SentimentAnalysisResu" + + "lt\032\036\n\017FulfillmentInfo\022\013\n\003tag\030\001 \001(\t\032\305\003\n\nI" + + "ntentInfo\022B\n\023last_matched_intent\030\001 \001(\tB%" + + "\372A\"\n dialogflow.googleapis.com/Intent\022\024\n" + + "\014display_name\030\003 \001(\t\022a\n\nparameters\030\002 \003(\0132" + + "M.google.cloud.dialogflow.cx.v3beta1.Web" + + "hookRequest.IntentInfo.ParametersEntry\022\022" + + "\n\nconfidence\030\004 \001(\002\032^\n\024IntentParameterVal" + + "ue\022\026\n\016original_value\030\001 \001(\t\022.\n\016resolved_v" + + "alue\030\002 \001(\0132\026.google.protobuf.Value\032\205\001\n\017P" + + "arametersEntry\022\013\n\003key\030\001 \001(\t\022a\n\005value\030\002 \001" + + "(\0132R.google.cloud.dialogflow.cx.v3beta1." + + "WebhookRequest.IntentInfo.IntentParamete" + + "rValue:\0028\001\032;\n\027SentimentAnalysisResult\022\r\n" + + "\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\002B\007\n\005query" + + "\"\310\005\n\017WebhookResponse\022e\n\024fulfillment_resp" + + "onse\030\001 \001(\0132G.google.cloud.dialogflow.cx." + + "v3beta1.WebhookResponse.FulfillmentRespo" + + "nse\022?\n\tpage_info\030\002 \001(\0132,.google.cloud.di" + + "alogflow.cx.v3beta1.PageInfo\022E\n\014session_" + + "info\030\003 \001(\0132/.google.cloud.dialogflow.cx." + + "v3beta1.SessionInfo\022(\n\007payload\030\004 \001(\0132\027.g" + + "oogle.protobuf.Struct\022:\n\013target_page\030\005 \001" + + "(\tB#\372A \n\036dialogflow.googleapis.com/PageH" + + "\000\022:\n\013target_flow\030\006 \001(\tB#\372A \n\036dialogflow." + + "googleapis.com/FlowH\000\032\225\002\n\023FulfillmentRes" + + "ponse\022E\n\010messages\030\001 \003(\01323.google.cloud.d" + + "ialogflow.cx.v3beta1.ResponseMessage\022m\n\016" + + "merge_behavior\030\002 \001(\0162U.google.cloud.dial" + + "ogflow.cx.v3beta1.WebhookResponse.Fulfil" + + "lmentResponse.MergeBehavior\"H\n\rMergeBeha" + + "vior\022\036\n\032MERGE_BEHAVIOR_UNSPECIFIED\020\000\022\n\n\006" + + "APPEND\020\001\022\013\n\007REPLACE\020\002B\014\n\ntransition\"\302\004\n\010" + + "PageInfo\0229\n\014current_page\030\001 \001(\tB#\372A \n\036dia" + + "logflow.googleapis.com/Page\022\024\n\014display_n" + + "ame\030\004 \001(\t\022H\n\tform_info\030\003 \001(\01325.google.cl" + + "oud.dialogflow.cx.v3beta1.PageInfo.FormI" + + "nfo\032\232\003\n\010FormInfo\022[\n\016parameter_info\030\002 \003(\013" + + "2C.google.cloud.dialogflow.cx.v3beta1.Pa" + + "geInfo.FormInfo.ParameterInfo\032\260\002\n\rParame" + + "terInfo\022\024\n\014display_name\030\001 \001(\t\022\020\n\010require" + + "d\030\002 \001(\010\022a\n\005state\030\003 \001(\0162R.google.cloud.di" + + "alogflow.cx.v3beta1.PageInfo.FormInfo.Pa" + + "rameterInfo.ParameterState\022%\n\005value\030\004 \001(" + + "\0132\026.google.protobuf.Value\022\026\n\016just_collec" + + "ted\030\005 \001(\010\"U\n\016ParameterState\022\037\n\033PARAMETER" + + "_STATE_UNSPECIFIED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INVAL" + + "ID\020\002\022\n\n\006FILLED\020\003\"\346\001\n\013SessionInfo\0227\n\007sess" + + "ion\030\001 \001(\tB&\372A#\n!dialogflow.googleapis.co" + + "m/Session\022S\n\nparameters\030\002 \003(\0132?.google.c" + + "loud.dialogflow.cx.v3beta1.SessionInfo.P" + + "arametersEntry\032I\n\017ParametersEntry\022\013\n\003key" + + "\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf." + + "Value:\0028\0012\375\010\n\010Webhooks\022\316\001\n\014ListWebhooks\022" + + "7.google.cloud.dialogflow.cx.v3beta1.Lis" + + "tWebhooksRequest\0328.google.cloud.dialogfl" + + "ow.cx.v3beta1.ListWebhooksResponse\"K\202\323\344\223" + + "\002<\022:/v3beta1/{parent=projects/*/location" + + "s/*/agents/*}/webhooks\332A\006parent\022\273\001\n\nGetW" + + "ebhook\0225.google.cloud.dialogflow.cx.v3be" + + "ta1.GetWebhookRequest\032+.google.cloud.dia" + + "logflow.cx.v3beta1.Webhook\"I\202\323\344\223\002<\022:/v3b" + + "eta1/{name=projects/*/locations/*/agents" + + "/*/webhooks/*}\332A\004name\022\324\001\n\rCreateWebhook\022" + + "8.google.cloud.dialogflow.cx.v3beta1.Cre" + + "ateWebhookRequest\032+.google.cloud.dialogf" + + "low.cx.v3beta1.Webhook\"\\\202\323\344\223\002E\":/v3beta1" + + "/{parent=projects/*/locations/*/agents/*" + + "}/webhooks:\007webhook\332A\016parent,webhook\022\341\001\n" + + "\rUpdateWebhook\0228.google.cloud.dialogflow" + + ".cx.v3beta1.UpdateWebhookRequest\032+.googl" + + "e.cloud.dialogflow.cx.v3beta1.Webhook\"i\202" + + "\323\344\223\002M2B/v3beta1/{webhook.name=projects/*" + + "/locations/*/agents/*/webhooks/*}:\007webho" + + "ok\332A\023webhook,update_mask\022\254\001\n\rDeleteWebho" + + "ok\0228.google.cloud.dialogflow.cx.v3beta1." + + "DeleteWebhookRequest\032\026.google.protobuf.E" + + "mpty\"I\202\323\344\223\002<*:/v3beta1/{name=projects/*/" + + "locations/*/agents/*/webhooks/*}\332A\004name\032" + + "x\312A\031dialogflow.googleapis.com\322AYhttps://" + + "www.googleapis.com/auth/cloud-platform,h" + + "ttps://www.googleapis.com/auth/dialogflo" + + "wB\323\002\n&com.google.cloud.dialogflow.cx.v3b" + + "eta1B\014WebhookProtoP\001ZDgoogle.golang.org/" + + "genproto/googleapis/cloud/dialogflow/cx/" + + "v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialog" + + "flow.Cx.V3Beta1\352\002&Google::Cloud::Dialogf" + + "low::CX::V3beta1\352A|\n\'servicedirectory.go" + + "ogleapis.com/Service\022Qprojects/{project}" + + "/locations/{location}/namespaces/{namesp" + + "ace}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -322,7 +323,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_descriptor, new java.lang.String[] { - "Uri", "Username", "Password", "RequestHeaders", + "Uri", "Username", "Password", "RequestHeaders", "AllowedCaCerts", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_RequestHeadersEntry_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_Webhook_GenericWebService_descriptor @@ -493,7 +494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_PageInfo_descriptor, new java.lang.String[] { - "CurrentPage", "FormInfo", + "CurrentPage", "DisplayName", "FormInfo", }); internal_static_google_cloud_dialogflow_cx_v3beta1_PageInfo_FormInfo_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_PageInfo_descriptor diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java index 50639052a..eb6120fb4 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java @@ -460,7 +460,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_); } unknownFields.writeTo(output); @@ -472,7 +472,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tag_); } size += unknownFields.getSerializedSize(); @@ -1543,7 +1543,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getOriginalValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, originalValue_); } if (resolvedValue_ != null) { @@ -1558,7 +1558,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOriginalValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, originalValue_); } if (resolvedValue_ != null) { @@ -2577,12 +2577,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getLastMatchedIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastMatchedIntent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lastMatchedIntent_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 2); - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } if (confidence_ != 0F) { @@ -2597,7 +2597,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getLastMatchedIntentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastMatchedIntent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lastMatchedIntent_); } for (java.util.Map.Entry< @@ -2616,7 +2616,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters__); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (confidence_ != 0F) { @@ -5099,7 +5099,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDetectIntentResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectIntentResponseId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, detectIntentResponseId_); } if (intentInfo_ != null) { @@ -5135,7 +5135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queryCase_ == 14) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, query_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, languageCode_); } unknownFields.writeTo(output); @@ -5147,7 +5147,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDetectIntentResponseIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectIntentResponseId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, detectIntentResponseId_); } if (intentInfo_ != null) { @@ -5184,7 +5184,7 @@ public int getSerializedSize() { if (queryCase_ == 14) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, query_); } - if (!getLanguageCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, languageCode_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java deleted file mode 100644 index 3a3f39a7f..000000000 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public interface ListLocationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The standard list filter.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * The standard list filter.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * The standard list page size.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * The standard list page token.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * The standard list page token.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java deleted file mode 100644 index 8e7553c0c..000000000 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java +++ /dev/null @@ -1,1126 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -/** - * - * - *
- * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
- * 
- * - * Protobuf type {@code google.cloud.location.ListLocationsResponse} - */ -public final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsResponse) - ListLocationsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListLocationsResponse.newBuilder() to construct. - private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListLocationsResponse() { - locations_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListLocationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListLocationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add( - input.readMessage( - com.google.cloud.location.Location.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, - com.google.cloud.location.ListLocationsResponse.Builder.class); - } - - public static final int LOCATIONS_FIELD_NUMBER = 1; - private java.util.List locations_; - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public java.util.List getLocationsList() { - return locations_; - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public java.util.List - getLocationsOrBuilderList() { - return locations_; - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public com.google.cloud.location.Location getLocations(int index) { - return locations_.get(index); - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { - return locations_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < locations_.size(); i++) { - output.writeMessage(1, locations_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < locations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.location.ListLocationsResponse)) { - return super.equals(obj); - } - com.google.cloud.location.ListLocationsResponse other = - (com.google.cloud.location.ListLocationsResponse) obj; - - if (!getLocationsList().equals(other.getLocationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.location.ListLocationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * Protobuf type {@code google.cloud.location.ListLocationsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.ListLocationsResponse) - com.google.cloud.location.ListLocationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, - com.google.cloud.location.ListLocationsResponse.Builder.class); - } - - // Construct using com.google.cloud.location.ListLocationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLocationsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - locationsBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse getDefaultInstanceForType() { - return com.google.cloud.location.ListLocationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse build() { - com.google.cloud.location.ListLocationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse buildPartial() { - com.google.cloud.location.ListLocationsResponse result = - new com.google.cloud.location.ListLocationsResponse(this); - int from_bitField0_ = bitField0_; - if (locationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - } else { - result.locations_ = locationsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.ListLocationsResponse) { - return mergeFrom((com.google.cloud.location.ListLocationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) { - if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) - return this; - if (locationsBuilder_ == null) { - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - } else { - if (!other.locations_.isEmpty()) { - if (locationsBuilder_.isEmpty()) { - locationsBuilder_.dispose(); - locationsBuilder_ = null; - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; - } else { - locationsBuilder_.addAllMessages(other.locations_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.location.ListLocationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.ListLocationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List locations_ = - java.util.Collections.emptyList(); - - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder> - locationsBuilder_; - - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public java.util.List getLocationsList() { - if (locationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(locations_); - } else { - return locationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public int getLocationsCount() { - if (locationsBuilder_ == null) { - return locations_.size(); - } else { - return locationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location getLocations(int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); - } else { - return locationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder setLocations(int index, com.google.cloud.location.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - } else { - locationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder setLocations( - int index, com.google.cloud.location.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.set(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations(com.google.cloud.location.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - } else { - locationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations(int index, com.google.cloud.location.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(index, value); - onChanged(); - } else { - locationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations(com.google.cloud.location.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations( - int index, com.google.cloud.location.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addAllLocations( - java.lang.Iterable values) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); - onChanged(); - } else { - locationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder clearLocations() { - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - locationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder removeLocations(int index) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.remove(index); - onChanged(); - } else { - locationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location.Builder getLocationsBuilder(int index) { - return getLocationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); - } else { - return locationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public java.util.List - getLocationsOrBuilderList() { - if (locationsBuilder_ != null) { - return locationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(locations_); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location.Builder addLocationsBuilder() { - return getLocationsFieldBuilder() - .addBuilder(com.google.cloud.location.Location.getDefaultInstance()); - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location.Builder addLocationsBuilder(int index) { - return getLocationsFieldBuilder() - .addBuilder(index, com.google.cloud.location.Location.getDefaultInstance()); - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public java.util.List getLocationsBuilderList() { - return getLocationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder> - getLocationsFieldBuilder() { - if (locationsBuilder_ == null) { - locationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder>( - locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - locations_ = null; - } - return locationsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsResponse) - private static final com.google.cloud.location.ListLocationsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsResponse(); - } - - public static com.google.cloud.location.ListLocationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java deleted file mode 100644 index 704771cc4..000000000 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public interface ListLocationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - java.util.List getLocationsList(); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - com.google.cloud.location.Location getLocations(int index); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - int getLocationsCount(); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - java.util.List getLocationsOrBuilderList(); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index); - - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/Location.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/Location.java deleted file mode 100644 index 7b7bfc864..000000000 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/Location.java +++ /dev/null @@ -1,1615 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -/** - * - * - *
- * A resource that represents Google Cloud Platform location.
- * 
- * - * Protobuf type {@code google.cloud.location.Location} - */ -public final class Location extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.location.Location) - LocationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Location.newBuilder() to construct. - private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Location() { - name_ = ""; - locationId_ = ""; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Location(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Location( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 26: - { - com.google.protobuf.Any.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - locationId_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, - com.google.cloud.location.Location.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object locationId_; - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The locationId. - */ - @java.lang.Override - public java.lang.String getLocationId() { - java.lang.Object ref = locationId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - locationId_ = s; - return s; - } - } - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The bytes for locationId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationIdBytes() { - java.lang.Object ref = locationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - locationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 2; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private com.google.protobuf.Any metadata_; - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Any getMetadata() { - return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; - } - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - if (!getLocationIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_); - } - if (!getDisplayNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); - } - if (!getLocationIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_); - } - if (!getDisplayNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.location.Location)) { - return super.equals(obj); - } - com.google.cloud.location.Location other = (com.google.cloud.location.Location) obj; - - if (!getName().equals(other.getName())) return false; - if (!getLocationId().equals(other.getLocationId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getLocationId().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.location.Location parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.Location parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.Location parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.Location parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.Location parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.Location parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.Location parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.Location parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.location.Location parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.location.Location parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.location.Location parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.Location parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.location.Location prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A resource that represents Google Cloud Platform location.
-   * 
- * - * Protobuf type {@code google.cloud.location.Location} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.Location) - com.google.cloud.location.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, - com.google.cloud.location.Location.Builder.class); - } - - // Construct using com.google.cloud.location.Location.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - locationId_ = ""; - - displayName_ = ""; - - internalGetMutableLabels().clear(); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; - } - - @java.lang.Override - public com.google.cloud.location.Location getDefaultInstanceForType() { - return com.google.cloud.location.Location.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.location.Location build() { - com.google.cloud.location.Location result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.location.Location buildPartial() { - com.google.cloud.location.Location result = new com.google.cloud.location.Location(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.locationId_ = locationId_; - result.displayName_ = displayName_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.Location) { - return mergeFrom((com.google.cloud.location.Location) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.location.Location other) { - if (other == com.google.cloud.location.Location.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getLocationId().isEmpty()) { - locationId_ = other.locationId_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.location.Location parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.Location) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object locationId_ = ""; - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @return The locationId. - */ - public java.lang.String getLocationId() { - java.lang.Object ref = locationId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - locationId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @return The bytes for locationId. - */ - public com.google.protobuf.ByteString getLocationIdBytes() { - java.lang.Object ref = locationId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - locationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @param value The locationId to set. - * @return This builder for chaining. - */ - public Builder setLocationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - locationId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @return This builder for chaining. - */ - public Builder clearLocationId() { - - locationId_ = getDefaultInstance().getLocationId(); - onChanged(); - return this; - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @param value The bytes for locationId to set. - * @return This builder for chaining. - */ - public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - locationId_ = value; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.Any metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return The metadata. - */ - public com.google.protobuf.Any getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder setMetadata(com.google.protobuf.Any value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder mergeMetadata(com.google.protobuf.Any value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public com.google.protobuf.Any.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; - } - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder>(getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.location.Location) - } - - // @@protoc_insertion_point(class_scope:google.cloud.location.Location) - private static final com.google.cloud.location.Location DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.location.Location(); - } - - public static com.google.cloud.location.Location getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Location(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.location.Location getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java deleted file mode 100644 index 98ab25deb..000000000 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public interface LocationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.Location) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The locationId. - */ - java.lang.String getLocationId(); - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The bytes for locationId. - */ - com.google.protobuf.ByteString getLocationIdBytes(); - - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - int getLabelsCount(); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return The metadata. - */ - com.google.protobuf.Any getMetadata(); - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - */ - com.google.protobuf.AnyOrBuilder getMetadataOrBuilder(); -} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java deleted file mode 100644 index d2b6da306..000000000 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public final class LocationsProto { - private LocationsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_ListLocationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_ListLocationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_GetLocationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n%google/cloud/location/locations.proto\022" - + "\025google.cloud.location\032\034google/api/annot" - + "ations.proto\032\031google/protobuf/any.proto\032" - + "\027google/api/client.proto\"[\n\024ListLocation" - + "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n" - + "\025ListLocationsResponse\0222\n\tlocations\030\001 \003(" - + "\0132\037.google.cloud.location.Location\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques" - + "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001" - + "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030" - + "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc" - + "ation.Location.LabelsEntry\022&\n\010metadata\030\003" - + " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo" - + "cations\022\253\001\n\rListLocations\022+.google.cloud" - + ".location.ListLocationsRequest\032,.google." - + "cloud.location.ListLocationsResponse\"?\202\323" - + "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name=" - + "projects/*}/locations\022\236\001\n\013GetLocation\022)." - + "google.cloud.location.GetLocationRequest" - + "\032\037.google.cloud.location.Location\"C\202\323\344\223\002" - + "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p" - + "rojects/*/locations/*}\032H\312A\024cloud.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformBo\n\031com.google.cloud.loc" - + "ationB\016LocationsProtoP\001Z=google.golang.o" - + "rg/genproto/googleapis/cloud/location;lo" - + "cation\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_location_ListLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsRequest_descriptor, - new java.lang.String[] { - "Name", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_location_ListLocationsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsResponse_descriptor, - new java.lang.String[] { - "Locations", "NextPageToken", - }); - internal_static_google_cloud_location_GetLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_GetLocationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_location_Location_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_location_Location_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_descriptor, - new java.lang.String[] { - "Name", "LocationId", "DisplayName", "Labels", "Metadata", - }); - internal_static_google_cloud_location_Location_LabelsEntry_descriptor = - internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto index d3e30db02..0322519c6 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto @@ -94,6 +94,7 @@ service Agents { } // Exports the specified agent to a binary file. + // // This method is a [long-running // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). // The returned `Operation` type has the following method-specific fields: @@ -117,6 +118,15 @@ service Agents { // Replaces the current agent with a new one. Note that all existing resources // in agent (e.g. intents, entity types, flows) will be removed. // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: An [Empty + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + // // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/changelog.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/changelog.proto new file mode 100644 index 000000000..55a75a861 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/changelog.proto @@ -0,0 +1,154 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option java_multiple_files = true; +option java_outer_classname = "ChangelogProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1"; + +// Service for managing [Changelogs][google.cloud.dialogflow.cx.v3beta1.Changelog]. +service Changelogs { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of Changelogs. + rpc ListChangelogs(ListChangelogsRequest) returns (ListChangelogsResponse) { + option (google.api.http) = { + get: "/v3beta1/{parent=projects/*/locations/*/agents/*}/changelogs" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified Changelog. + rpc GetChangelog(GetChangelogRequest) returns (Changelog) { + option (google.api.http) = { + get: "/v3beta1/{name=projects/*/locations/*/agents/*/changelogs/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogs]. +message ListChangelogsRequest { + // Required. The agent containing the changelogs. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Changelog" + } + ]; + + // The filter string. Supports filter by user_email, resource, type and + // create_time. Some examples: + // 1. By user email: + // user_email = "someone@google.com" + // 2. By resource name: + // resource = "projects/123/locations/global/agents/456/flows/789" + // 3. By resource display name: + // display_name = "my agent" + // 4. By action: + // action = "Create" + // 5. By type: + // type = "flows" + // 6. By create time. Currently predicates on `create_time` and + // `create_time_epoch_seconds` are supported: + // create_time_epoch_seconds > 1551790877 AND create_time <= + // 2017-01-15T01:30:15.01Z + // 7. Combination of above filters: + // resource = "projects/123/locations/global/agents/456/flows/789" + // AND user_email = "someone@google.com" + // AND create_time <= 2017-01-15T01:30:15.01Z + string filter = 2; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 3; + + // The next_page_token value returned from a previous list request. + string page_token = 4; +} + +// The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogs]. +message ListChangelogsResponse { + // The list of changelogs. There will be a maximum number of items returned + // based on the page_size field in the request. The changelogs will be ordered + // by timestamp. + repeated Changelog changelogs = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelog]. +message GetChangelogRequest { + // Required. The name of the changelog to get. + // Format: `projects//locations//agents//changelogs/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Changelog" + } + ]; +} + +// Changelogs represents a change made to a given agent. +message Changelog { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Changelog" + pattern: "projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}" + }; + + // The unique identifier of the changelog. + // Format: `projects//locations//agents//changelogs/`. + string name = 1; + + // Email address of the authenticated user. + string user_email = 2; + + // The affected resource display name of the change. + string display_name = 7; + + // The action of the change. + string action = 11; + + // The affected resource type. + string type = 8; + + // The affected resource name of the change. + string resource = 3; + + // The timestamp of the change. + google.protobuf.Timestamp create_time = 4; +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/deployment.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/deployment.proto new file mode 100644 index 000000000..6a4cb162a --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/deployment.proto @@ -0,0 +1,171 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option java_multiple_files = true; +option java_outer_classname = "DeploymentProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1"; + +// Service for managing [Deployments][google.cloud.dialogflow.cx.v3beta1.Deployment]. +service Deployments { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + rpc ListDeployments(ListDeploymentsRequest) returns (ListDeploymentsResponse) { + option (google.api.http) = { + get: "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/deployments" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment]. + rpc GetDeployment(GetDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + get: "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Represents an deployment in an environment. A deployment happens when a flow +// version configured to be active in the environment. You can configure running +// pre-deployment steps, e.g. running validation test cases, experiment +// auto-rollout, etc. +message Deployment { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Deployment" + pattern: "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}" + }; + + // Result of the deployment. + message Result { + // Results of test cases running before the deployment. + // Format: `projects//locations//agents//testCases//results/`. + repeated string deployment_test_results = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCaseResult" + }]; + + // The name of the experiment triggered by this deployment. + // Format: projects//locations//agents//environments//experiments/. + string experiment = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Experiment" + }]; + } + + // The state of the deployment. + enum State { + // State unspecified. + STATE_UNSPECIFIED = 0; + + // The deployment is running. + RUNNING = 1; + + // The deployment succeeded. + SUCCEEDED = 2; + + // The deployment failed. + FAILED = 3; + } + + // The name of the deployment. + // Format: projects//locations//agents//environments//deployments/. + string name = 1; + + // The name of the flow version for this deployment. + // Format: projects//locations//agents//flows//versions/. + string flow_version = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + }]; + + // The current state of the deployment. + State state = 3; + + // Result of the deployment. + Result result = 4; + + // Start time of this deployment. + google.protobuf.Timestamp start_time = 5; + + // End time of this deployment. + google.protobuf.Timestamp end_time = 6; +} + +// The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeployments]. +message ListDeploymentsRequest { + // Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for. + // Format: `projects//locations//agents//environments/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Deployment" + } + ]; + + // The maximum number of items to return in a single page. By default 20 and + // at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeployments]. +message ListDeploymentsResponse { + // The list of deployments. There will be a maximum number of items + // returned based on the page_size field in the request. The list may in some + // cases be empty or contain fewer entries than page_size even if this isn't + // the last page. + repeated Deployment deployments = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeployment]. +message GetDeploymentRequest { + // Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment]. + // Format: `projects//locations//agents//environments//deployments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Deployment" + } + ]; +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/environment.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/environment.proto index 73c22ca70..a53460eae 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/environment.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/environment.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3beta1/test_case.proto"; +import "google/cloud/dialogflow/cx/v3beta1/webhook.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -59,6 +60,14 @@ service Environments { } // Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent]. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] rpc CreateEnvironment(CreateEnvironmentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/environments" @@ -72,6 +81,14 @@ service Environments { } // Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] rpc UpdateEnvironment(UpdateEnvironmentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v3beta1/{environment.name=projects/*/locations/*/agents/*/environments/*}" @@ -101,6 +118,13 @@ service Environments { } // Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata] + // - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse] rpc RunContinuousTest(RunContinuousTestRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3beta1/{environment=projects/*/locations/*/agents/*/environments/*}:runContinuousTest" @@ -119,6 +143,25 @@ service Environments { }; option (google.api.method_signature) = "parent"; } + + // Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata] + // - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse] + rpc DeployFlow(DeployFlowRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3beta1/{environment=projects/*/locations/*/agents/*/environments/*}:deployFlow" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "DeployFlowResponse" + metadata_type: "DeployFlowMetadata" + }; + } } // Represents an environment for an agent. You can create multiple versions @@ -147,6 +190,24 @@ message Environment { ]; } + // The configuration for continuous tests. + message TestCasesConfig { + // A list of test case names to run. They should be under the same agent. + // Format of each test case name: `projects//locations/ + // /agents//testCases/` + repeated string test_cases = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + }]; + + // Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] periodically. + // Default false. If set to true, run once a day. + bool enable_continuous_run = 2; + + // Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] before + // deploying a flow version to the environment. Default false. + bool enable_predeployment_run = 3; + } + // The name of the environment. // Format: `projects//locations//agents//environments/`. @@ -168,6 +229,9 @@ message Environment { // Output only. Update time of this environment. google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The test cases config for continuous tests of this environment. + TestCasesConfig test_cases_config = 7; } // The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironments]. @@ -375,3 +439,44 @@ message ListContinuousTestResultsResponse { // results in the list. string next_page_token = 2; } + +// The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow]. +message DeployFlowRequest { + // Required. The environment to deploy the flow to. + // Format: `projects//locations//agents// + // environments/`. + string environment = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + } + ]; + + // Required. The flow version to deploy. + // Format: `projects//locations//agents// + // flows//versions/`. + string flow_version = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + } + ]; +} + +// The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow]. +message DeployFlowResponse { + // The updated environment where the flow is deployed. + Environment environment = 1; + + // The name of the flow version deployment. + // Format: `projects//locations//agents// + // environments//deployments/`. + string deployment = 2; +} + +// Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow] long running +// operation. +message DeployFlowMetadata { + // Errors of running deployment tests. + repeated TestError test_errors = 1; +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/flow.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/flow.proto index b6a66ca62..1d8e6c88c 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/flow.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/flow.proto @@ -97,6 +97,15 @@ service Flows { // Trains the specified flow. Note that only the flow in 'draft' environment // is trained. // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: An [Empty + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) + // // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -133,6 +142,14 @@ service Flows { // Imports the specified flow to the specified agent from a binary file. // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse] + // // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -149,6 +166,14 @@ service Flows { // Exports the specified flow to a binary file. // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse] + // // Note that resources (e.g. intents, entities, webhooks) that the flow // references will also be exported. rpc ExportFlow(ExportFlowRequest) returns (google.longrunning.Operation) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/response_message.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/response_message.proto index d9331eb42..f6b747f1d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/response_message.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/response_message.proto @@ -164,6 +164,17 @@ message ResponseMessage { repeated Segment segments = 1; } + // Represents the signal that telles the client to transfer the phone call + // connected to the agent to a third-party endpoint. + message TelephonyTransferCall { + // Endpoint to transfer the call to. + oneof endpoint { + // Transfer the call to a phone number + // in [E.164 format](https://en.wikipedia.org/wiki/E.164). + string phone_number = 1; + } + } + // Required. The rich response message. oneof message { // Returns a text response. @@ -202,5 +213,9 @@ message ResponseMessage { // This message is generated by Dialogflow only and not supposed to be // defined by the user. MixedAudio mixed_audio = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A signal that the client should transfer the phone call connected to + // this agent to a third-party endpoint. + TelephonyTransferCall telephony_transfer_call = 18; } } diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto index 95d1d60b2..119b64557 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto @@ -222,10 +222,13 @@ message SecuritySettings { DIALOGFLOW_HISTORY = 1; } - // Required. Resource name of the settings. + // Resource name of the settings. + // Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings] method. + // [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings] populates the name + // automatically. // Format: `projects//locations//securitySettings/`. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1; // Required. The human-readable name of the security settings, unique within the // location. @@ -242,6 +245,11 @@ message SecuritySettings { // [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this // template to define inspect base settings. // + // The `DLP Inspect Templates Reader` role is needed on the Dialogflow + // service identity service account (has the form + // `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`) + // for your agent's project. + // // If empty, we use the default DLP inspect config. // // The template name will have one of the following formats: @@ -258,6 +266,11 @@ message SecuritySettings { // [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this // template to define de-identification configuration for the content. // + // The `DLP De-identify Templates Reader` role is needed on the Dialogflow + // service identity service account (has the form + // `service-PROJECT_NUMBER@gcp-sa-dialogflow.iam.gserviceaccount.com`) + // for your agent's project. + // // If empty, Dialogflow replaces sensitive info with `[redacted]` text. // // The template name will have one of the following formats: @@ -278,7 +291,7 @@ message SecuritySettings { // Retains data in interaction logging for the specified number of days. // This does not apply to Cloud logging, which is owned by the user - not // Dialogflow. - // User must Set a value lower than Dialogflow's default 30d TTL. Setting a + // User must set a value lower than Dialogflow's default 365d TTL. Setting a // value higher than that has no effect. // A missing value or setting to 0 also means we use Dialogflow's default // TTL. diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto index 170eaa2f5..39ebb2a5d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -201,7 +201,7 @@ message DetectIntentResponse { // Multiple request messages should be sent in order: // // 1. The first message must contain -// [session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session], +// [session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session], // [query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input] plus optionally // [query_params][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_params]. If the client // wants to receive an audio response, it should also contain @@ -261,21 +261,29 @@ message StreamingDetectIntentRequest { bool enable_partial_response = 5; } -// The top-level message returned from the `StreamingDetectIntent` method. +// The top-level message returned from the +// [StreamingDetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent] method. // -// Multiple response messages can be returned in order: +// Multiple response messages (N) can be returned in order. // -// 1. If the input was set to streaming audio, the first one or more messages -// contain `recognition_result`. Each `recognition_result` represents a more -// complete transcript of what the user said. The last `recognition_result` -// has `is_final` set to `true`. +// The first (N-1) responses set either the `recognition_result` or +// `detect_intent_response` field, depending on the request: // -// 2. If `enable_partial_response` is true, the following N messages -// (currently 1 <= N <= 4) contain `detect_intent_response`. The first (N-1) -// `detect_intent_response`s will have `response_type` set to `PARTIAL`. -// The last `detect_intent_response` has `response_type` set to `FINAL`. -// If `response_type` is false, response stream only contains -// the final `detect_intent_response`. +// * If the `StreamingDetectIntentRequest.query_input.audio` field was +// set, and the `StreamingDetectIntentRequest.enable_partial_response` +// field was false, the `recognition_result` field is populated for each +// of the (N-1) responses. +// See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult] message for details +// about the result message sequence. +// +// * If the `StreamingDetectIntentRequest.enable_partial_response` field was +// true, the `detect_intent_response` field is populated for each +// of the (N-1) responses, where 1 <= N <= 4. +// These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.response_type] field +// to `PARTIAL`. +// +// For the final Nth response message, the `detect_intent_response` is fully +// populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.response_type] is set to `FINAL`. message StreamingDetectIntentResponse { // The output response. oneof response { @@ -291,35 +299,39 @@ message StreamingDetectIntentResponse { // that is currently being processed or an indication that this is the end // of the single requested utterance. // -// Example: -// -// 1. transcript: "tube" -// -// 2. transcript: "to be a" -// -// 3. transcript: "to be" +// While end-user audio is being processed, Dialogflow sends a series of +// results. Each result may contain a `transcript` value. A transcript +// represents a portion of the utterance. While the recognizer is processing +// audio, transcript values may be interim values or finalized values. +// Once a transcript is finalized, the `is_final` value is set to true and +// processing continues for the next transcript. // -// 4. transcript: "to be or not to be" -// is_final: true +// If `StreamingDetectIntentRequest.query_input.audio.config.single_utterance` +// was true, and the recognizer has completed processing audio, +// the `message_type` value is set to `END_OF_SINGLE_UTTERANCE and the +// following (last) result contains the last finalized transcript. // -// 5. transcript: " that's" +// The complete end-user utterance is determined by concatenating the +// finalized transcript values received for the series of results. // -// 6. transcript: " that is" +// In the following example, single utterance is enabled. In the case where +// single utterance is not enabled, result 7 would not occur. // -// 7. message_type: `END_OF_SINGLE_UTTERANCE` +// ``` +// Num | transcript | message_type | is_final +// --- | ----------------------- | ----------------------- | -------- +// 1 | "tube" | TRANSCRIPT | false +// 2 | "to be a" | TRANSCRIPT | false +// 3 | "to be" | TRANSCRIPT | false +// 4 | "to be or not to be" | TRANSCRIPT | true +// 5 | "that's" | TRANSCRIPT | false +// 6 | "that is | TRANSCRIPT | false +// 7 | unset | END_OF_SINGLE_UTTERANCE | unset +// 8 | " that is the question" | TRANSCRIPT | true +// ``` // -// 8. transcript: " that is the question" -// is_final: true -// -// Only two of the responses contain final results (#4 and #8 indicated by -// `is_final: true`). Concatenating these generates the full transcript: "to be -// or not to be that is the question". -// -// In each response we populate: -// -// * for `TRANSCRIPT`: `transcript` and possibly `is_final`. -// -// * for `END_OF_SINGLE_UTTERANCE`: only `message_type`. +// Concatenating the finalized transcripts with `is_final` set to true, +// the complete utterance becomes "to be or not to be that is the question". message StreamingRecognitionResult { // Type of the response message. enum MessageType { @@ -545,6 +557,10 @@ message QueryResult { // If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain // the name of the event. string trigger_event = 14; + + // If a [DTMF][DTMFInput] was provided as input, this field will contain + // a copy of the [DTMFInput][]. + DtmfInput dtmf = 23; } // The language that was triggered during intent detection. diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto index 729ea554b..d71656a2d 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto @@ -94,6 +94,7 @@ service TestCases { } // Kicks off a test case run. + // // This method is a [long-running // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). // The returned `Operation` type has the following method-specific fields: @@ -112,6 +113,13 @@ service TestCases { } // Kicks off a batch run of test cases. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata] + // - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse] rpc BatchRunTestCases(BatchRunTestCasesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchRun" @@ -133,6 +141,13 @@ service TestCases { // Imports the test cases from a Cloud Storage bucket or a local file. It // always creates new test cases and won't overwite any existing ones. The // provided ID in the imported test case is neglected. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata] + // - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse] rpc ImportTestCases(ImportTestCasesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:import" @@ -146,6 +161,13 @@ service TestCases { // Exports the test cases under the agent to a Cloud Storage bucket or a local // file. Filter can be applied to export a subset of test cases. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata] + // - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse] rpc ExportTestCases(ExportTestCasesRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:export" @@ -820,6 +842,7 @@ message ExportTestCasesResponse { // Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCases] long running // operation. +// This message currently has no fields. message ExportTestCasesMetadata { } diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/version.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/version.proto index d5b442310..8fd47f5ff 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/version.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/version.proto @@ -64,6 +64,13 @@ service Versions { } // Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata] + // - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version] rpc CreateVersion(CreateVersionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions" @@ -94,6 +101,15 @@ service Versions { } // Loads resources in the specified version to the draft flow. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: An empty [Struct + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) + // - `response`: An [Empty + // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) rpc LoadVersion(LoadVersionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load" @@ -105,6 +121,15 @@ service Versions { metadata_type: "google.protobuf.Struct" }; } + + // Compares the specified base version with target version. + rpc CompareVersions(CompareVersionsRequest) returns (CompareVersionsResponse) { + option (google.api.http) = { + post: "/v3beta1/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions" + body: "*" + }; + option (google.api.method_signature) = "base_version"; + } } // Metadata associated with the long running operation for @@ -265,3 +290,50 @@ message LoadVersionRequest { // will not be overridden (i.e. intents, entities, webhooks). bool allow_override_agent_resources = 2; } + +// The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions]. +message CompareVersionsRequest { + // Required. Name of the base flow version to compare with the target version. Use + // version ID `0` to indicate the draft version of the specified flow. + // + // Format: `projects//locations//agents/ + // /flows//versions/`. + string base_version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + } + ]; + + // Required. Name of the target flow version to compare with the + // base version. Use version ID `0` to indicate the draft version of the + // specified flow. Format: `projects//locations//agents//flows//versions/`. + string target_version = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + } + ]; + + // The language to compare the flow versions for. + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/docs/reference/language) are + // supported. Note: languages must be enabled in the agent before they can be + // used. + string language_code = 3; +} + +// The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions]. +message CompareVersionsResponse { + // JSON representation of the base version content. + string base_version_content_json = 1; + + // JSON representation of the target version content. + string target_version_content_json = 2; + + // The timestamp when the two version compares. + google.protobuf.Timestamp compare_time = 3; +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto index b5b0eaf6a..662a0458a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto @@ -113,6 +113,19 @@ message Webhook { // The HTTP request headers to send together with webhook // requests. map request_headers = 4; + + // Optional. Specifies a list of allowed custom CA certificates (in DER format) for + // HTTPS verification. This overrides the default SSL trust store. If this + // is empty or unspecified, Dialogflow 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'") + repeated bytes allowed_ca_certs = 5 [(google.api.field_behavior) = OPTIONAL]; } // Represents configuration for a [Service @@ -496,6 +509,10 @@ message PageInfo { type: "dialogflow.googleapis.com/Page" }]; + // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse]. + // The display name of the current page. + string display_name = 4; + // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse]. // Information about the form. FormInfo form_info = 3; diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/location/locations.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/location/locations.proto deleted file mode 100644 index a91766c9d..000000000 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/location/locations.proto +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.location; - -import "google/api/annotations.proto"; -import "google/protobuf/any.proto"; -import "google/api/client.proto"; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/location;location"; -option java_multiple_files = true; -option java_outer_classname = "LocationsProto"; -option java_package = "com.google.cloud.location"; - -// An abstract interface that provides location-related information for -// a service. Service-specific metadata is provided through the -// [Location.metadata][google.cloud.location.Location.metadata] field. -service Locations { - option (google.api.default_host) = "cloud.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists information about the supported locations for this service. - rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse) { - option (google.api.http) = { - get: "/v1/{name=locations}" - additional_bindings { - get: "/v1/{name=projects/*}/locations" - } - }; - } - - // Gets information about a location. - rpc GetLocation(GetLocationRequest) returns (Location) { - option (google.api.http) = { - get: "/v1/{name=locations/*}" - additional_bindings { - get: "/v1/{name=projects/*/locations/*}" - } - }; - } -} - -// The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. -message ListLocationsRequest { - // The resource that owns the locations collection, if applicable. - string name = 1; - - // The standard list filter. - string filter = 2; - - // The standard list page size. - int32 page_size = 3; - - // The standard list page token. - string page_token = 4; -} - -// The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. -message ListLocationsResponse { - // A list of locations that matches the specified filter in the request. - repeated Location locations = 1; - - // The standard List next-page token. - string next_page_token = 2; -} - -// The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation]. -message GetLocationRequest { - // Resource name for the location. - string name = 1; -} - -// A resource that represents Google Cloud Platform location. -message Location { - // Resource name for the location, which may vary between implementations. - // For example: `"projects/example-project/locations/us-east1"` - string name = 1; - - // The canonical id for this location. For example: `"us-east1"`. - string location_id = 4; - - // The friendly name for this location, typically a nearby city name. - // For example, "Tokyo". - string display_name = 5; - - // Cross-service attributes for the location. For example - // - // {"cloud.googleapis.com/region": "us-east1"} - map labels = 2; - - // Service-specific metadata. For example the available capacity at the given - // location. - google.protobuf.Any metadata = 3; -} diff --git a/renovate.json b/renovate.json index 81a890644..9dd5f79ac 100644 --- a/renovate.json +++ b/renovate.json @@ -70,8 +70,5 @@ } ], "semanticCommits": true, - "dependencyDashboard": true, - "dependencyDashboardLabels": [ - "type: process" - ] + "dependencyDashboard": true } diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e15c6a71c..9e374d916 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 @@ -29,10 +29,25 @@ com.google.cloud google-cloud-dialogflow-cx - 0.9.0 + 0.10.1 - + + com.google.cloud.functions + functions-framework-api + 1.0.4 + + + org.mockito + mockito-core + 4.1.0 + test + + + com.google.code.gson + gson + 2.8.9 + junit junit diff --git a/samples/pom.xml b/samples/pom.xml index fc4d3fefd..ea4ef61ab 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1c6cf9128..6b29e05dd 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 @@ -28,10 +28,25 @@ com.google.cloud google-cloud-dialogflow-cx - 0.10.1 + 0.11.0 - + + com.google.cloud.functions + functions-framework-api + 1.0.4 + + + org.mockito + mockito-core + 4.1.0 + test + + + com.google.code.gson + gson + 2.8.9 + junit junit @@ -80,4 +95,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 35e64564e..5a0a7a126 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 @@ -28,15 +28,36 @@ com.google.cloud google-cloud-dialogflow-cx - 0.9.0 + 0.10.1 + + + com.google.code.gson + gson + 2.8.9 + + + com.google.cloud.functions + functions-framework-api + 1.0.4 - junit junit 4.13.2 test + + com.google.cloud.functions + function-maven-plugin + 0.10.0 + test + + + org.mockito + mockito-core + 4.1.0 + test + com.google.truth truth diff --git a/samples/snippets/src/main/java/dialogflow/cx/DetectIntentStream.java b/samples/snippets/src/main/java/dialogflow/cx/DetectIntentStream.java index 125581c83..b09609aea 100644 --- a/samples/snippets/src/main/java/dialogflow/cx/DetectIntentStream.java +++ b/samples/snippets/src/main/java/dialogflow/cx/DetectIntentStream.java @@ -23,13 +23,18 @@ import com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding; import com.google.cloud.dialogflow.cx.v3beta1.AudioInput; import com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; +import com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; +import com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding; import com.google.cloud.dialogflow.cx.v3beta1.QueryInput; import com.google.cloud.dialogflow.cx.v3beta1.QueryResult; import com.google.cloud.dialogflow.cx.v3beta1.SessionName; import com.google.cloud.dialogflow.cx.v3beta1.SessionsClient; import com.google.cloud.dialogflow.cx.v3beta1.SessionsSettings; +import com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender; import com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; import com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; +import com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; +import com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; import com.google.protobuf.ByteString; import java.io.FileInputStream; import java.io.IOException; @@ -78,11 +83,33 @@ public static void detectIntentStream( BidiStream bidiStream = sessionsClient.streamingDetectIntentCallable().call(); + // Specify sssml name and gender + VoiceSelectionParams voiceSelection = + // Voices that are available https://cloud.google.com/text-to-speech/docs/voices + VoiceSelectionParams.newBuilder() + .setName("en-GB-Standard-A") + .setSsmlGender(SsmlVoiceGender.SSML_VOICE_GENDER_FEMALE) + .build(); + + SynthesizeSpeechConfig speechConfig = + SynthesizeSpeechConfig.newBuilder().setVoice(voiceSelection).build(); + + // Setup audio config + OutputAudioConfig audioConfig = + // Output enconding explanation + // https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#outputaudioencoding + OutputAudioConfig.newBuilder() + .setAudioEncoding(OutputAudioEncoding.OUTPUT_AUDIO_ENCODING_UNSPECIFIED) + .setAudioEncodingValue(1) + .setSynthesizeSpeechConfig(speechConfig) + .build(); + // The first request must **only** contain the audio configuration: bidiStream.send( StreamingDetectIntentRequest.newBuilder() .setSession(session.toString()) .setQueryInput(queryInput) + .setOutputAudioConfig(audioConfig) .build()); try (FileInputStream audioStream = new FileInputStream(audioFilePath)) { diff --git a/samples/snippets/src/main/java/dialogflow/cx/Example.java b/samples/snippets/src/main/java/dialogflow/cx/Example.java new file mode 100644 index 000000000..f91c8362a --- /dev/null +++ b/samples/snippets/src/main/java/dialogflow/cx/Example.java @@ -0,0 +1,67 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package dialogflow.cx; + +// [START dialogflow_webhook] + +// TODO: add GSON dependency to Pom file +// (https://mvnrepository.com/artifact/com.google.code.gson/gson/2.8.5) +// TODO: Uncomment the line bellow before running cloud function +// package com.example; + +import com.google.cloud.functions.HttpFunction; +import com.google.cloud.functions.HttpRequest; +import com.google.cloud.functions.HttpResponse; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; +import java.io.BufferedWriter; + +public class Example implements HttpFunction { + + public void service(HttpRequest request, HttpResponse response) throws Exception { + JsonParser parser = new JsonParser(); + Gson gson = new GsonBuilder().create(); + + JsonObject job = gson.fromJson(request.getReader(), JsonObject.class); + String str = job.getAsJsonObject("fulfillmentInfo").getAsJsonPrimitive("tag").toString(); + JsonObject o = null; + String a = '"' + "Default Welcome Intent" + '"'; + String b = '"' + "get-agent-name" + '"'; + String responseText = ""; + + if (str.equals(a)) { + responseText = '"' + "Hello from a Java GCF Webhook" + '"'; + } else if (str.equals(b)) { + responseText = '"' + "My name is Flowhook" + '"'; + } else { + responseText = '"' + "Sorry I didn't get that" + '"'; + } + + o = + parser + .parse( + "{ \"fulfillment_response\": { \"messages\": [ { \"text\": { \"text\": [" + + responseText + + "] } } ] } }") + .getAsJsonObject(); + BufferedWriter writer = response.getWriter(); + writer.write(o.toString()); + } +} +// [END dialogflow_webhook] diff --git a/samples/snippets/src/main/java/dialogflow/cx/ListTestCaseResults.java b/samples/snippets/src/main/java/dialogflow/cx/ListTestCaseResults.java new file mode 100644 index 000000000..3519c5c98 --- /dev/null +++ b/samples/snippets/src/main/java/dialogflow/cx/ListTestCaseResults.java @@ -0,0 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package dialogflow.cx; + +// [START dialogflow_cx_list_testcase_result_sample] + +import com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; +import com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.Builder; +import com.google.cloud.dialogflow.cx.v3.TestCaseResult; +import com.google.cloud.dialogflow.cx.v3.TestCasesClient; +import com.google.cloud.dialogflow.cx.v3.TestCasesSettings; +import java.io.IOException; + +public class ListTestCaseResults { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "my-project-id"; + String agentId = "my-agent-id"; + String testId = "my-test-id"; + String location = "my-location"; + listTestCaseResults(projectId, agentId, testId, location); + } + + public static void listTestCaseResults( + String projectId, String agentId, String testId, String location) throws IOException { + String parent = + "projects/" + + projectId + + "/locations/" + + location + + "/agents/" + + agentId + + "/testCases/" + + testId; + + Builder req = ListTestCaseResultsRequest.newBuilder(); + + req.setParent(parent); + req.setFilter("environment=draft"); + + TestCasesSettings testCasesSettings = + TestCasesSettings.newBuilder() + .setEndpoint(location + "-dialogflow.googleapis.com:443") + .build(); + TestCasesClient client = TestCasesClient.create(testCasesSettings); + + for (TestCaseResult element : client.listTestCaseResults(req.build()).iterateAll()) { + System.out.println(element); + } + } +} +// [END dialogflow_cx_list_testcase_result_sample] diff --git a/samples/snippets/src/main/java/dialogflow/cx/ListTrainingPhrases.java b/samples/snippets/src/main/java/dialogflow/cx/ListTrainingPhrases.java new file mode 100644 index 000000000..2bd0e73ae --- /dev/null +++ b/samples/snippets/src/main/java/dialogflow/cx/ListTrainingPhrases.java @@ -0,0 +1,62 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package dialogflow.cx; + +// [START dialogflow_list_training_phrases] +import com.google.cloud.dialogflow.cx.v3.GetIntentRequest; +import com.google.cloud.dialogflow.cx.v3.Intent; +import com.google.cloud.dialogflow.cx.v3.IntentName; +import com.google.cloud.dialogflow.cx.v3.IntentsClient; +import java.io.IOException; +import java.util.List; + +public class ListTrainingPhrases { + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "my-project-id"; + String location = "location"; + String agentId = "my-agent-id"; + String intentId = "my-intent-id"; + + listTrainingPhrases(projectId, location, agentId, intentId); + } + + // DialogFlow API List Training Phrases sample. + public static void listTrainingPhrases( + String projectId, String location, String agentId, String intentId) throws IOException { + try (IntentsClient client = IntentsClient.create()) { + // Set the intent name + IntentName name = IntentName.of(projectId, location, agentId, intentId); + + // Compose the get-intent request + GetIntentRequest request = GetIntentRequest.newBuilder().setName(name.toString()).build(); + + // Make API request to get intent + Intent response = client.getIntent(request); + + // Loop through the results + for (Intent.TrainingPhrase phrase : response.getTrainingPhrasesList()) { + System.out.println("***********************************************"); + List parts = phrase.getPartsList(); + for (Intent.TrainingPhrase.Part part : parts) { + System.out.println(String.format("Training Phrase: %s", part.getText())); + } + } + } + } +} +// [END dialogflow_list_training_phrases] diff --git a/samples/snippets/src/test/java/dialogflow/cx/ExampleIT.java b/samples/snippets/src/test/java/dialogflow/cx/ExampleIT.java new file mode 100644 index 000000000..a62338c17 --- /dev/null +++ b/samples/snippets/src/test/java/dialogflow/cx/ExampleIT.java @@ -0,0 +1,72 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package dialogflow.cx; + +import static com.google.common.truth.Truth.assertThat; +import static org.mockito.Mockito.when; + +import com.google.cloud.functions.HttpRequest; +import com.google.cloud.functions.HttpResponse; +import com.google.gson.Gson; +import java.io.BufferedReader; +import java.io.BufferedWriter; +import java.io.IOException; +import java.io.StringReader; +import java.io.StringWriter; +import org.junit.Before; +import org.junit.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +public class ExampleIT { + + @Mock private HttpRequest request; + @Mock private HttpResponse response; + + private BufferedWriter writerOut; + private StringWriter responseOut; + private static final Gson gson = new Gson(); + + @Before + public void beforeTest() throws IOException { + MockitoAnnotations.initMocks(this); + + // use an empty string as the default request content + BufferedReader reader = new BufferedReader(new StringReader("")); + when(request.getReader()).thenReturn(reader); + + responseOut = new StringWriter(); + writerOut = new BufferedWriter(responseOut); + when(response.getWriter()).thenReturn(writerOut); + } + + @Test + public void helloHttp_bodyParamsPost() throws IOException, Exception { + + String firstHalf = "{\fulfillmentInfo\": {\"tag\": \"Default Welcome Intent\",}"; + String secondHalf = ",\"text\": \"hi\",\"languageCode\": \"en\",}"; + + BufferedReader jsonReader = new BufferedReader(new StringReader(firstHalf + secondHalf)); + + when(request.getReader()).thenReturn(jsonReader); + + new Example().service(request, response); + writerOut.flush(); + + assertThat(responseOut.toString()).contains("Hello from a Java GCF Webhook"); + } +} diff --git a/samples/snippets/src/test/java/dialogflow/cx/ListTestCaseResultsIT.java b/samples/snippets/src/test/java/dialogflow/cx/ListTestCaseResultsIT.java new file mode 100644 index 000000000..57a7fd32c --- /dev/null +++ b/samples/snippets/src/test/java/dialogflow/cx/ListTestCaseResultsIT.java @@ -0,0 +1,55 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package dialogflow.cx; + +import static com.google.common.truth.Truth.assertThat; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class ListTestCaseResultsIT { + + private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); + private static String agentId = "1499b8e1-ab7d-43fd-9b08-30ee57194fc1"; + private static String testId = "694a5447-6c40-4752-944e-e3e70580b273"; + private static String location = "global"; + + private ByteArrayOutputStream stdOut; + private static PrintStream originalOut; + + @Before + public void setUp() throws IOException { + originalOut = System.out; + stdOut = new ByteArrayOutputStream(); + System.setOut(new PrintStream(stdOut)); + } + + @After + public void tearDown() throws IOException { + System.setOut(originalOut); + } + + @Test + public void testListTestCaseResults() throws IOException { + ListTestCaseResults.listTestCaseResults(PROJECT_ID, agentId, testId, location); + assertThat(stdOut.toString()).contains(testId); + } +} diff --git a/samples/snippets/src/test/java/dialogflow/cx/ListTrainingPhrasesTest.java b/samples/snippets/src/test/java/dialogflow/cx/ListTrainingPhrasesTest.java new file mode 100644 index 000000000..e3389ed16 --- /dev/null +++ b/samples/snippets/src/test/java/dialogflow/cx/ListTrainingPhrasesTest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package dialogflow.cx; + +import static com.google.common.truth.Truth.assertThat; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class ListTrainingPhrasesTest { + private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); + private static String LOCATION = "global"; + private static String AGENT_ID = "b8d0e85d-0741-4e6d-a66a-3671184b7b93"; + private static String INTENT_ID = "45974f75-9412-445a-9863-47bfdfa3d96d"; + + private ByteArrayOutputStream stdOut; + + @Before + public void setUp() throws IOException { + stdOut = new ByteArrayOutputStream(); + System.setOut(new PrintStream(stdOut)); + } + + @After + public void tearDown() throws IOException { + stdOut = null; + System.setOut(null); + } + + @Test + public void testListTrainingPhrases() throws IOException { + ListTrainingPhrases.listTrainingPhrases(PROJECT_ID, LOCATION, AGENT_ID, INTENT_ID); + assertThat(stdOut.toString()).contains("green"); + } +} diff --git a/versions.txt b/versions.txt index ee8320a34..adb4b6a01 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dialogflow-cx:0.10.1:0.10.1 -grpc-google-cloud-dialogflow-cx-v3beta1:0.10.1:0.10.1 -grpc-google-cloud-dialogflow-cx-v3:0.10.1:0.10.1 -proto-google-cloud-dialogflow-cx-v3beta1:0.10.1:0.10.1 -proto-google-cloud-dialogflow-cx-v3:0.10.1:0.10.1 +google-cloud-dialogflow-cx:0.11.0:0.11.0 +grpc-google-cloud-dialogflow-cx-v3beta1:0.11.0:0.11.0 +grpc-google-cloud-dialogflow-cx-v3:0.11.0:0.11.0 +proto-google-cloud-dialogflow-cx-v3beta1:0.11.0:0.11.0 +proto-google-cloud-dialogflow-cx-v3:0.11.0:0.11.0